|
|
|
@ -10,6 +10,7 @@ |
|
|
|
<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="alias" jdbcType="VARCHAR" property="alias" /> |
|
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|
|
|
<result column="flag" jdbcType="INTEGER" property="flag" /> |
|
|
|
<result column="create_time" jdbcType="BIGINT" property="createTime" /> |
|
|
|
@ -88,7 +89,7 @@ |
|
|
|
WARNING - @mbg.generated |
|
|
|
This element is automatically generated by MyBatis Generator, do not modify. |
|
|
|
--> |
|
|
|
id, company_id, salesforce_id, building_id, remark, flag, create_time, creator_id, |
|
|
|
id, company_id, salesforce_id, building_id, `alias`, remark, flag, create_time, creator_id, |
|
|
|
modify_time, modifier_id |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.techsor.datacenter.business.model.BasicSalesforceExample" resultMap="BaseResultMap"> |
|
|
|
@ -147,13 +148,13 @@ |
|
|
|
SELECT LAST_INSERT_ID() |
|
|
|
</selectKey> |
|
|
|
insert into basic_salesforce (company_id, salesforce_id, building_id, |
|
|
|
remark, flag, create_time, |
|
|
|
creator_id, modify_time, modifier_id |
|
|
|
) |
|
|
|
`alias`, 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} |
|
|
|
) |
|
|
|
#{alias,jdbcType=VARCHAR}, #{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"> |
|
|
|
<!-- |
|
|
|
@ -174,6 +175,9 @@ |
|
|
|
<if test="buildingId != null"> |
|
|
|
building_id, |
|
|
|
</if> |
|
|
|
<if test="alias != null"> |
|
|
|
`alias`, |
|
|
|
</if> |
|
|
|
<if test="remark != null"> |
|
|
|
remark, |
|
|
|
</if> |
|
|
|
@ -203,6 +207,9 @@ |
|
|
|
<if test="buildingId != null"> |
|
|
|
#{buildingId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="alias != null"> |
|
|
|
#{alias,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="remark != null"> |
|
|
|
#{remark,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
@ -252,6 +259,9 @@ |
|
|
|
<if test="record.buildingId != null"> |
|
|
|
building_id = #{record.buildingId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.alias != null"> |
|
|
|
`alias` = #{record.alias,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.remark != null"> |
|
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
@ -285,6 +295,7 @@ |
|
|
|
company_id = #{record.companyId,jdbcType=BIGINT}, |
|
|
|
salesforce_id = #{record.salesforceId,jdbcType=VARCHAR}, |
|
|
|
building_id = #{record.buildingId,jdbcType=BIGINT}, |
|
|
|
`alias` = #{record.alias,jdbcType=VARCHAR}, |
|
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
|
flag = #{record.flag,jdbcType=INTEGER}, |
|
|
|
create_time = #{record.createTime,jdbcType=BIGINT}, |
|
|
|
@ -311,6 +322,9 @@ |
|
|
|
<if test="buildingId != null"> |
|
|
|
building_id = #{buildingId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="alias != null"> |
|
|
|
`alias` = #{alias,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="remark != null"> |
|
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
@ -341,6 +355,7 @@ |
|
|
|
set company_id = #{companyId,jdbcType=BIGINT}, |
|
|
|
salesforce_id = #{salesforceId,jdbcType=VARCHAR}, |
|
|
|
building_id = #{buildingId,jdbcType=BIGINT}, |
|
|
|
`alias` = #{alias,jdbcType=VARCHAR}, |
|
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
|
flag = #{flag,jdbcType=INTEGER}, |
|
|
|
create_time = #{createTime,jdbcType=BIGINT}, |
|
|
|
|