|
@@ -6,6 +6,7 @@
|
|
|
<result column="staff_id" jdbcType="BIGINT" property="staffId"/>
|
|
|
<result column="user_id" jdbcType="BIGINT" property="userId"/>
|
|
|
<result column="group" jdbcType="INTEGER" property="group"/>
|
|
|
+ <result column="content" jdbcType="VARCHAR" property="content"/>
|
|
|
<result column="attachment_ids" jdbcType="VARCHAR" property="attachmentIds"/>
|
|
|
<result column="is_send" jdbcType="INTEGER" property="isSend"/>
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
|
|
@@ -73,7 +74,7 @@
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
id
|
|
|
- , staff_id, user_id, `group`, attachment_ids, is_send, create_time, update_time
|
|
|
+ , staff_id, user_id, `group`, content, attachment_ids, is_send, create_time, update_time
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.growth.common.model.po.SpecialSendMessageExample"
|
|
|
resultMap="BaseResultMap">
|
|
@@ -112,11 +113,11 @@
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.growth.common.model.po.SpecialSendMessage">
|
|
|
insert into we_com_special_send_message (id, staff_id, user_id,
|
|
|
- `group`, attachment_ids, is_send,
|
|
|
- create_time, update_time)
|
|
|
+ `group`, content, attachment_ids,
|
|
|
+ is_send, create_time, update_time)
|
|
|
values (#{id,jdbcType=BIGINT}, #{staffId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT},
|
|
|
- #{group,jdbcType=INTEGER}, #{attachmentIds,jdbcType=VARCHAR}, #{isSend,jdbcType=INTEGER},
|
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
|
|
+ #{group,jdbcType=INTEGER}, #{content,jdbcType=VARCHAR}, #{attachmentIds,jdbcType=VARCHAR},
|
|
|
+ #{isSend,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.growth.common.model.po.SpecialSendMessage">
|
|
|
insert into we_com_special_send_message
|
|
@@ -133,6 +134,9 @@
|
|
|
<if test="group != null">
|
|
|
`group`,
|
|
|
</if>
|
|
|
+ <if test="content != null">
|
|
|
+ content,
|
|
|
+ </if>
|
|
|
<if test="attachmentIds != null">
|
|
|
attachment_ids,
|
|
|
</if>
|
|
@@ -159,6 +163,9 @@
|
|
|
<if test="group != null">
|
|
|
#{group,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="content != null">
|
|
|
+ #{content,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="attachmentIds != null">
|
|
|
#{attachmentIds,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -195,6 +202,9 @@
|
|
|
<if test="record.group != null">
|
|
|
`group` = #{record.group,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="record.content != null">
|
|
|
+ content = #{record.content,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.attachmentIds != null">
|
|
|
attachment_ids = #{record.attachmentIds,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -218,6 +228,7 @@
|
|
|
staff_id = #{record.staffId,jdbcType=BIGINT},
|
|
|
user_id = #{record.userId,jdbcType=BIGINT},
|
|
|
`group` = #{record.group,jdbcType=INTEGER},
|
|
|
+ content = #{record.content,jdbcType=VARCHAR},
|
|
|
attachment_ids = #{record.attachmentIds,jdbcType=VARCHAR},
|
|
|
is_send = #{record.isSend,jdbcType=INTEGER},
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
@@ -239,6 +250,9 @@
|
|
|
<if test="group != null">
|
|
|
`group` = #{group,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="content != null">
|
|
|
+ content = #{content,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="attachmentIds != null">
|
|
|
attachment_ids = #{attachmentIds,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -259,6 +273,7 @@
|
|
|
set staff_id = #{staffId,jdbcType=BIGINT},
|
|
|
user_id = #{userId,jdbcType=BIGINT},
|
|
|
`group` = #{group,jdbcType=INTEGER},
|
|
|
+ content = #{content,jdbcType=VARCHAR},
|
|
|
attachment_ids = #{attachmentIds,jdbcType=VARCHAR},
|
|
|
is_send = #{isSend,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
@@ -267,10 +282,10 @@
|
|
|
</update>
|
|
|
|
|
|
<select id="getGroupList" resultMap="BaseResultMap">
|
|
|
- select staff_id, `group`
|
|
|
+ select staff_id, `group`, content, attachment_ids
|
|
|
from we_com_special_send_message
|
|
|
where is_send = 0
|
|
|
- group by staff_id, `group`
|
|
|
+ group by staff_id, `group`, content, attachment_ids
|
|
|
</select>
|
|
|
|
|
|
<select id="selectExternalUserId" resultType="java.lang.String">
|