|
@@ -8,10 +8,10 @@
|
|
|
<result column="staff_id" jdbcType="BIGINT" property="staffId" />
|
|
|
<result column="video_id" jdbcType="BIGINT" property="videoId" />
|
|
|
<result column="attachment_idx" jdbcType="INTEGER" property="attachmentIdx" />
|
|
|
- <result column="message_id" jdbcType="BIGINT" property="messageId" />
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
<result column="send_time" jdbcType="TIMESTAMP" property="sendTime" />
|
|
|
<result column="is_delete" jdbcType="INTEGER" property="isDelete" />
|
|
|
+ <result column="source" jdbcType="VARCHAR" property="source" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
@@ -73,8 +73,8 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, corp_id, user_id, staff_id, video_id, attachment_idx, message_id, `status`, send_time,
|
|
|
- is_delete, create_time
|
|
|
+ id, corp_id, user_id, staff_id, video_id, attachment_idx, `status`, send_time, is_delete,
|
|
|
+ `source`, create_time
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.wecom.model.po.HistoryMessageExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -112,12 +112,12 @@
|
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.wecom.model.po.HistoryMessage">
|
|
|
insert into we_com_history_message (id, corp_id, user_id,
|
|
|
staff_id, video_id, attachment_idx,
|
|
|
- message_id, `status`, send_time,
|
|
|
- is_delete, create_time)
|
|
|
+ `status`, send_time,
|
|
|
+ `source`, create_time)
|
|
|
values (#{id,jdbcType=BIGINT}, #{corpId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT},
|
|
|
#{staffId,jdbcType=BIGINT}, #{videoId,jdbcType=BIGINT}, #{attachmentIdx,jdbcType=INTEGER},
|
|
|
- #{messageId,jdbcType=BIGINT}, #{status,jdbcType=INTEGER}, #{sendTime,jdbcType=TIMESTAMP},
|
|
|
- #{isDelete,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP})
|
|
|
+ #{status,jdbcType=INTEGER}, #{sendTime,jdbcType=TIMESTAMP},
|
|
|
+ #{source,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.wecom.model.po.HistoryMessage">
|
|
|
insert into we_com_history_message
|
|
@@ -140,9 +140,6 @@
|
|
|
<if test="attachmentIdx != null">
|
|
|
attachment_idx,
|
|
|
</if>
|
|
|
- <if test="messageId != null">
|
|
|
- message_id,
|
|
|
- </if>
|
|
|
<if test="status != null">
|
|
|
`status`,
|
|
|
</if>
|
|
@@ -152,6 +149,9 @@
|
|
|
<if test="isDelete != null">
|
|
|
is_delete,
|
|
|
</if>
|
|
|
+ <if test="source != null">
|
|
|
+ `source`,
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
|
</if>
|
|
@@ -175,9 +175,6 @@
|
|
|
<if test="attachmentIdx != null">
|
|
|
#{attachmentIdx,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="messageId != null">
|
|
|
- #{messageId,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
<if test="status != null">
|
|
|
#{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -187,6 +184,9 @@
|
|
|
<if test="isDelete != null">
|
|
|
#{isDelete,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="source != null">
|
|
|
+ #{source,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -219,9 +219,6 @@
|
|
|
<if test="record.attachmentIdx != null">
|
|
|
attachment_idx = #{record.attachmentIdx,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="record.messageId != null">
|
|
|
- message_id = #{record.messageId,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
<if test="record.status != null">
|
|
|
`status` = #{record.status,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -231,6 +228,9 @@
|
|
|
<if test="record.isDelete != null">
|
|
|
is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="record.source != null">
|
|
|
+ `source` = #{record.source,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.createTime != null">
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -247,10 +247,10 @@
|
|
|
staff_id = #{record.staffId,jdbcType=BIGINT},
|
|
|
video_id = #{record.videoId,jdbcType=BIGINT},
|
|
|
attachment_idx = #{record.attachmentIdx,jdbcType=INTEGER},
|
|
|
- message_id = #{record.messageId,jdbcType=BIGINT},
|
|
|
`status` = #{record.status,jdbcType=INTEGER},
|
|
|
send_time = #{record.sendTime,jdbcType=TIMESTAMP},
|
|
|
is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
|
+ `source` = #{record.source,jdbcType=VARCHAR},
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -274,9 +274,6 @@
|
|
|
<if test="attachmentIdx != null">
|
|
|
attachment_idx = #{attachmentIdx,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="messageId != null">
|
|
|
- message_id = #{messageId,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
<if test="status != null">
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -286,6 +283,9 @@
|
|
|
<if test="isDelete != null">
|
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="source != null">
|
|
|
+ `source` = #{source,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -299,13 +299,14 @@
|
|
|
staff_id = #{staffId,jdbcType=BIGINT},
|
|
|
video_id = #{videoId,jdbcType=BIGINT},
|
|
|
attachment_idx = #{attachmentIdx,jdbcType=INTEGER},
|
|
|
- message_id = #{messageId,jdbcType=BIGINT},
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
send_time = #{sendTime,jdbcType=TIMESTAMP},
|
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|
|
|
+ `source` = #{source,jdbcType=VARCHAR},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
+
|
|
|
<insert id="insertList" parameterType="java.util.List">
|
|
|
insert into we_com_history_message
|
|
|
(
|
|
@@ -314,9 +315,9 @@
|
|
|
staff_id,
|
|
|
video_id,
|
|
|
attachment_idx,
|
|
|
- message_id,
|
|
|
`status`,
|
|
|
send_time,
|
|
|
+ `source`,
|
|
|
create_time
|
|
|
)
|
|
|
values
|
|
@@ -327,9 +328,9 @@
|
|
|
#{item.staffId,jdbcType=BIGINT},
|
|
|
#{item.videoId,jdbcType=BIGINT},
|
|
|
#{item.attachmentIdx,jdbcType=INTEGER},
|
|
|
- #{item.messageId,jdbcType=BIGINT},
|
|
|
#{item.status,jdbcType=INTEGER},
|
|
|
#{item.sendTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.source,jdbcType=VARCHAR},
|
|
|
#{item.createTime,jdbcType=TIMESTAMP}
|
|
|
)
|
|
|
</foreach>
|