|
|
|
@ -9,6 +9,7 @@ |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="company_id" jdbcType="BIGINT" property="companyId" /> |
|
|
|
<result column="salesforce_id" jdbcType="VARCHAR" property="salesforceId" /> |
|
|
|
<result column="building_id" jdbcType="BIGINT" property="buildingId" /> |
|
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|
|
|
<result column="flag" jdbcType="INTEGER" property="flag" /> |
|
|
|
<result column="create_time" jdbcType="BIGINT" property="createTime" /> |
|
|
|
@ -87,8 +88,8 @@ |
|
|
|
WARNING - @mbg.generated |
|
|
|
This element is automatically generated by MyBatis Generator, do not modify. |
|
|
|
--> |
|
|
|
id, company_id, salesforce_id, remark, flag, create_time, creator_id, modify_time, |
|
|
|
modifier_id |
|
|
|
id, company_id, salesforce_id, building_id, remark, flag, create_time, creator_id, |
|
|
|
modify_time, modifier_id |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.techsor.datacenter.business.model.BasicSalesforceExample" resultMap="BaseResultMap"> |
|
|
|
<!-- |
|
|
|
@ -145,12 +146,14 @@ |
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> |
|
|
|
SELECT LAST_INSERT_ID() |
|
|
|
</selectKey> |
|
|
|
insert into basic_salesforce (company_id, salesforce_id, remark, |
|
|
|
flag, create_time, creator_id, |
|
|
|
modify_time, modifier_id) |
|
|
|
values (#{companyId,jdbcType=BIGINT}, #{salesforceId,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, |
|
|
|
#{flag,jdbcType=INTEGER}, #{createTime,jdbcType=BIGINT}, #{creatorId,jdbcType=BIGINT}, |
|
|
|
#{modifyTime,jdbcType=BIGINT}, #{modifierId,jdbcType=BIGINT}) |
|
|
|
insert into basic_salesforce (company_id, salesforce_id, building_id, |
|
|
|
remark, flag, create_time, |
|
|
|
creator_id, modify_time, modifier_id |
|
|
|
) |
|
|
|
values (#{companyId,jdbcType=BIGINT}, #{salesforceId,jdbcType=VARCHAR}, #{buildingId,jdbcType=BIGINT}, |
|
|
|
#{remark,jdbcType=VARCHAR}, #{flag,jdbcType=INTEGER}, #{createTime,jdbcType=BIGINT}, |
|
|
|
#{creatorId,jdbcType=BIGINT}, #{modifyTime,jdbcType=BIGINT}, #{modifierId,jdbcType=BIGINT} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.techsor.datacenter.business.model.BasicSalesforce"> |
|
|
|
<!-- |
|
|
|
@ -168,6 +171,9 @@ |
|
|
|
<if test="salesforceId != null"> |
|
|
|
salesforce_id, |
|
|
|
</if> |
|
|
|
<if test="buildingId != null"> |
|
|
|
building_id, |
|
|
|
</if> |
|
|
|
<if test="remark != null"> |
|
|
|
remark, |
|
|
|
</if> |
|
|
|
@ -194,6 +200,9 @@ |
|
|
|
<if test="salesforceId != null"> |
|
|
|
#{salesforceId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="buildingId != null"> |
|
|
|
#{buildingId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="remark != null"> |
|
|
|
#{remark,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
@ -240,6 +249,9 @@ |
|
|
|
<if test="record.salesforceId != null"> |
|
|
|
salesforce_id = #{record.salesforceId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.buildingId != null"> |
|
|
|
building_id = #{record.buildingId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.remark != null"> |
|
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
@ -272,6 +284,7 @@ |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
company_id = #{record.companyId,jdbcType=BIGINT}, |
|
|
|
salesforce_id = #{record.salesforceId,jdbcType=VARCHAR}, |
|
|
|
building_id = #{record.buildingId,jdbcType=BIGINT}, |
|
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
|
flag = #{record.flag,jdbcType=INTEGER}, |
|
|
|
create_time = #{record.createTime,jdbcType=BIGINT}, |
|
|
|
@ -295,6 +308,9 @@ |
|
|
|
<if test="salesforceId != null"> |
|
|
|
salesforce_id = #{salesforceId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="buildingId != null"> |
|
|
|
building_id = #{buildingId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="remark != null"> |
|
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
@ -324,6 +340,7 @@ |
|
|
|
update basic_salesforce |
|
|
|
set company_id = #{companyId,jdbcType=BIGINT}, |
|
|
|
salesforce_id = #{salesforceId,jdbcType=VARCHAR}, |
|
|
|
building_id = #{buildingId,jdbcType=BIGINT}, |
|
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
|
flag = #{flag,jdbcType=INTEGER}, |
|
|
|
create_time = #{createTime,jdbcType=BIGINT}, |
|
|
|
|