|
|
@@ -10,6 +10,7 @@
|
|
|
<result column="open_room_send_switch_num" jdbcType="INTEGER" property="openRoomSendSwitchNum" />
|
|
|
<result column="primary_third_staff_id" jdbcType="BIGINT" property="primaryThirdStaffId" />
|
|
|
<result column="second_third_staff_id" jdbcType="BIGINT" property="secondThirdStaffId" />
|
|
|
+ <result column="config_sync" jdbcType="INTEGER" property="configSync" />
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
@@ -74,7 +75,7 @@
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, staff_id, put_scene, channel, switch_flag, open_room_send_switch_num, primary_third_staff_id,
|
|
|
- second_third_staff_id, `status`, create_time, update_time
|
|
|
+ second_third_staff_id, config_sync, `status`, create_time, update_time
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.wecom.thirdpart.ThirdPartWeComStaffConfigExample" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -113,13 +114,13 @@
|
|
|
insert into third_part_we_com_staff_config (id, staff_id, put_scene,
|
|
|
channel, switch_flag, open_room_send_switch_num,
|
|
|
primary_third_staff_id, second_third_staff_id,
|
|
|
- `status`, create_time, update_time
|
|
|
- )
|
|
|
+ config_sync, `status`, create_time,
|
|
|
+ update_time)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{staffId,jdbcType=BIGINT}, #{putScene,jdbcType=VARCHAR},
|
|
|
#{channel,jdbcType=VARCHAR}, #{switchFlag,jdbcType=INTEGER}, #{openRoomSendSwitchNum,jdbcType=INTEGER},
|
|
|
#{primaryThirdStaffId,jdbcType=BIGINT}, #{secondThirdStaffId,jdbcType=BIGINT},
|
|
|
- #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
|
|
- )
|
|
|
+ #{configSync,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.wecom.thirdpart.ThirdPartWeComStaffConfig">
|
|
|
insert into third_part_we_com_staff_config
|
|
|
@@ -148,6 +149,9 @@
|
|
|
<if test="secondThirdStaffId != null">
|
|
|
second_third_staff_id,
|
|
|
</if>
|
|
|
+ <if test="configSync != null">
|
|
|
+ config_sync,
|
|
|
+ </if>
|
|
|
<if test="status != null">
|
|
|
`status`,
|
|
|
</if>
|
|
|
@@ -183,6 +187,9 @@
|
|
|
<if test="secondThirdStaffId != null">
|
|
|
#{secondThirdStaffId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="configSync != null">
|
|
|
+ #{configSync,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="status != null">
|
|
|
#{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -227,6 +234,9 @@
|
|
|
<if test="record.secondThirdStaffId != null">
|
|
|
second_third_staff_id = #{record.secondThirdStaffId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="record.configSync != null">
|
|
|
+ config_sync = #{record.configSync,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="record.status != null">
|
|
|
`status` = #{record.status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -251,6 +261,7 @@
|
|
|
open_room_send_switch_num = #{record.openRoomSendSwitchNum,jdbcType=INTEGER},
|
|
|
primary_third_staff_id = #{record.primaryThirdStaffId,jdbcType=BIGINT},
|
|
|
second_third_staff_id = #{record.secondThirdStaffId,jdbcType=BIGINT},
|
|
|
+ config_sync = #{record.configSync,jdbcType=INTEGER},
|
|
|
`status` = #{record.status,jdbcType=INTEGER},
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
|
@@ -282,6 +293,9 @@
|
|
|
<if test="secondThirdStaffId != null">
|
|
|
second_third_staff_id = #{secondThirdStaffId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="configSync != null">
|
|
|
+ config_sync = #{configSync,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="status != null">
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -303,6 +317,7 @@
|
|
|
open_room_send_switch_num = #{openRoomSendSwitchNum,jdbcType=INTEGER},
|
|
|
primary_third_staff_id = #{primaryThirdStaffId,jdbcType=BIGINT},
|
|
|
second_third_staff_id = #{secondThirdStaffId,jdbcType=BIGINT},
|
|
|
+ config_sync = #{configSync,jdbcType=INTEGER},
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|