|
@@ -5,9 +5,7 @@
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<result column="message_id" jdbcType="BIGINT" property="messageId" />
|
|
<result column="message_id" jdbcType="BIGINT" property="messageId" />
|
|
<result column="staff_name" jdbcType="VARCHAR" property="staffName" />
|
|
<result column="staff_name" jdbcType="VARCHAR" property="staffName" />
|
|
- <result column="video_id_1" jdbcType="BIGINT" property="videoId1" />
|
|
|
|
- <result column="video_id_2" jdbcType="BIGINT" property="videoId2" />
|
|
|
|
- <result column="video_id_3" jdbcType="BIGINT" property="videoId3" />
|
|
|
|
|
|
+ <result column="video_ids" jdbcType="VARCHAR" property="videoIds" />
|
|
<result column="status" jdbcType="VARCHAR" property="status" />
|
|
<result column="status" jdbcType="VARCHAR" property="status" />
|
|
<result column="send_time" jdbcType="TIMESTAMP" property="sendTime" />
|
|
<result column="send_time" jdbcType="TIMESTAMP" property="sendTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
@@ -71,8 +69,7 @@
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
- id, message_id, staff_name, video_id_1, video_id_2, video_id_3, `status`, send_time,
|
|
|
|
- create_time
|
|
|
|
|
|
+ id, message_id, staff_name, video_ids, `status`, send_time, create_time
|
|
</sql>
|
|
</sql>
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.wecom.model.po.AlertMessageExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.wecom.model.po.AlertMessageExample" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
@@ -109,13 +106,11 @@
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.wecom.model.po.AlertMessage">
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.wecom.model.po.AlertMessage">
|
|
insert into we_com_alert_message (id, message_id, staff_name,
|
|
insert into we_com_alert_message (id, message_id, staff_name,
|
|
- video_id_1, video_id_2, video_id_3,
|
|
|
|
- `status`, send_time, create_time
|
|
|
|
- )
|
|
|
|
|
|
+ video_ids, `status`, send_time,
|
|
|
|
+ create_time)
|
|
values (#{id,jdbcType=BIGINT}, #{messageId,jdbcType=BIGINT}, #{staffName,jdbcType=VARCHAR},
|
|
values (#{id,jdbcType=BIGINT}, #{messageId,jdbcType=BIGINT}, #{staffName,jdbcType=VARCHAR},
|
|
- #{videoId1,jdbcType=BIGINT}, #{videoId2,jdbcType=BIGINT}, #{videoId3,jdbcType=BIGINT},
|
|
|
|
- #{status,jdbcType=VARCHAR}, #{sendTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}
|
|
|
|
- )
|
|
|
|
|
|
+ #{videoIds,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{sendTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.wecom.model.po.AlertMessage">
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.wecom.model.po.AlertMessage">
|
|
insert into we_com_alert_message
|
|
insert into we_com_alert_message
|
|
@@ -129,14 +124,8 @@
|
|
<if test="staffName != null">
|
|
<if test="staffName != null">
|
|
staff_name,
|
|
staff_name,
|
|
</if>
|
|
</if>
|
|
- <if test="videoId1 != null">
|
|
|
|
- video_id_1,
|
|
|
|
- </if>
|
|
|
|
- <if test="videoId2 != null">
|
|
|
|
- video_id_2,
|
|
|
|
- </if>
|
|
|
|
- <if test="videoId3 != null">
|
|
|
|
- video_id_3,
|
|
|
|
|
|
+ <if test="videoIds != null">
|
|
|
|
+ video_ids,
|
|
</if>
|
|
</if>
|
|
<if test="status != null">
|
|
<if test="status != null">
|
|
`status`,
|
|
`status`,
|
|
@@ -158,14 +147,8 @@
|
|
<if test="staffName != null">
|
|
<if test="staffName != null">
|
|
#{staffName,jdbcType=VARCHAR},
|
|
#{staffName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="videoId1 != null">
|
|
|
|
- #{videoId1,jdbcType=BIGINT},
|
|
|
|
- </if>
|
|
|
|
- <if test="videoId2 != null">
|
|
|
|
- #{videoId2,jdbcType=BIGINT},
|
|
|
|
- </if>
|
|
|
|
- <if test="videoId3 != null">
|
|
|
|
- #{videoId3,jdbcType=BIGINT},
|
|
|
|
|
|
+ <if test="videoIds != null">
|
|
|
|
+ #{videoIds,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="status != null">
|
|
<if test="status != null">
|
|
#{status,jdbcType=VARCHAR},
|
|
#{status,jdbcType=VARCHAR},
|
|
@@ -196,14 +179,8 @@
|
|
<if test="record.staffName != null">
|
|
<if test="record.staffName != null">
|
|
staff_name = #{record.staffName,jdbcType=VARCHAR},
|
|
staff_name = #{record.staffName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="record.videoId1 != null">
|
|
|
|
- video_id_1 = #{record.videoId1,jdbcType=BIGINT},
|
|
|
|
- </if>
|
|
|
|
- <if test="record.videoId2 != null">
|
|
|
|
- video_id_2 = #{record.videoId2,jdbcType=BIGINT},
|
|
|
|
- </if>
|
|
|
|
- <if test="record.videoId3 != null">
|
|
|
|
- video_id_3 = #{record.videoId3,jdbcType=BIGINT},
|
|
|
|
|
|
+ <if test="record.videoIds != null">
|
|
|
|
+ video_ids = #{record.videoIds,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="record.status != null">
|
|
<if test="record.status != null">
|
|
`status` = #{record.status,jdbcType=VARCHAR},
|
|
`status` = #{record.status,jdbcType=VARCHAR},
|
|
@@ -224,9 +201,7 @@
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
message_id = #{record.messageId,jdbcType=BIGINT},
|
|
message_id = #{record.messageId,jdbcType=BIGINT},
|
|
staff_name = #{record.staffName,jdbcType=VARCHAR},
|
|
staff_name = #{record.staffName,jdbcType=VARCHAR},
|
|
- video_id_1 = #{record.videoId1,jdbcType=BIGINT},
|
|
|
|
- video_id_2 = #{record.videoId2,jdbcType=BIGINT},
|
|
|
|
- video_id_3 = #{record.videoId3,jdbcType=BIGINT},
|
|
|
|
|
|
+ video_ids = #{record.videoIds,jdbcType=VARCHAR},
|
|
`status` = #{record.status,jdbcType=VARCHAR},
|
|
`status` = #{record.status,jdbcType=VARCHAR},
|
|
send_time = #{record.sendTime,jdbcType=TIMESTAMP},
|
|
send_time = #{record.sendTime,jdbcType=TIMESTAMP},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}
|
|
@@ -243,14 +218,8 @@
|
|
<if test="staffName != null">
|
|
<if test="staffName != null">
|
|
staff_name = #{staffName,jdbcType=VARCHAR},
|
|
staff_name = #{staffName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="videoId1 != null">
|
|
|
|
- video_id_1 = #{videoId1,jdbcType=BIGINT},
|
|
|
|
- </if>
|
|
|
|
- <if test="videoId2 != null">
|
|
|
|
- video_id_2 = #{videoId2,jdbcType=BIGINT},
|
|
|
|
- </if>
|
|
|
|
- <if test="videoId3 != null">
|
|
|
|
- video_id_3 = #{videoId3,jdbcType=BIGINT},
|
|
|
|
|
|
+ <if test="videoIds != null">
|
|
|
|
+ video_ids = #{videoIds,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="status != null">
|
|
<if test="status != null">
|
|
`status` = #{status,jdbcType=VARCHAR},
|
|
`status` = #{status,jdbcType=VARCHAR},
|
|
@@ -268,9 +237,7 @@
|
|
update we_com_alert_message
|
|
update we_com_alert_message
|
|
set message_id = #{messageId,jdbcType=BIGINT},
|
|
set message_id = #{messageId,jdbcType=BIGINT},
|
|
staff_name = #{staffName,jdbcType=VARCHAR},
|
|
staff_name = #{staffName,jdbcType=VARCHAR},
|
|
- video_id_1 = #{videoId1,jdbcType=BIGINT},
|
|
|
|
- video_id_2 = #{videoId2,jdbcType=BIGINT},
|
|
|
|
- video_id_3 = #{videoId3,jdbcType=BIGINT},
|
|
|
|
|
|
+ video_ids = #{videoIds,jdbcType=VARCHAR},
|
|
`status` = #{status,jdbcType=VARCHAR},
|
|
`status` = #{status,jdbcType=VARCHAR},
|
|
send_time = #{sendTime,jdbcType=TIMESTAMP},
|
|
send_time = #{sendTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}
|