|
@@ -8,6 +8,7 @@
|
|
<result column="group" jdbcType="INTEGER" property="group"/>
|
|
<result column="group" jdbcType="INTEGER" property="group"/>
|
|
<result column="content" jdbcType="VARCHAR" property="content"/>
|
|
<result column="content" jdbcType="VARCHAR" property="content"/>
|
|
<result column="attachment_ids" jdbcType="VARCHAR" property="attachmentIds"/>
|
|
<result column="attachment_ids" jdbcType="VARCHAR" property="attachmentIds"/>
|
|
|
|
+ <result column="pre_send_date" jdbcType="VARCHAR" property="preSendDate"/>
|
|
<result column="is_send" jdbcType="INTEGER" property="isSend"/>
|
|
<result column="is_send" jdbcType="INTEGER" property="isSend"/>
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
@@ -74,7 +75,8 @@
|
|
</sql>
|
|
</sql>
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
id
|
|
id
|
|
- , staff_id, user_id, `group`, content, attachment_ids, is_send, create_time, update_time
|
|
|
|
|
|
+ , staff_id, user_id, `group`, content, attachment_ids, pre_send_date, is_send,
|
|
|
|
+ create_time, update_time
|
|
</sql>
|
|
</sql>
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.growth.common.model.po.SpecialSendMessageExample"
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.growth.common.model.po.SpecialSendMessageExample"
|
|
resultMap="BaseResultMap">
|
|
resultMap="BaseResultMap">
|
|
@@ -114,10 +116,12 @@
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.growth.common.model.po.SpecialSendMessage">
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.growth.common.model.po.SpecialSendMessage">
|
|
insert into we_com_special_send_message (id, staff_id, user_id,
|
|
insert into we_com_special_send_message (id, staff_id, user_id,
|
|
`group`, content, attachment_ids,
|
|
`group`, content, attachment_ids,
|
|
- is_send, create_time, update_time)
|
|
|
|
|
|
+ pre_send_date, is_send, create_time,
|
|
|
|
+ update_time)
|
|
values (#{id,jdbcType=BIGINT}, #{staffId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT},
|
|
values (#{id,jdbcType=BIGINT}, #{staffId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT},
|
|
#{group,jdbcType=INTEGER}, #{content,jdbcType=VARCHAR}, #{attachmentIds,jdbcType=VARCHAR},
|
|
#{group,jdbcType=INTEGER}, #{content,jdbcType=VARCHAR}, #{attachmentIds,jdbcType=VARCHAR},
|
|
- #{isSend,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
|
|
|
|
|
+ #{preSendDate,jdbcType=VARCHAR}, #{isSend,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.growth.common.model.po.SpecialSendMessage">
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.growth.common.model.po.SpecialSendMessage">
|
|
insert into we_com_special_send_message
|
|
insert into we_com_special_send_message
|
|
@@ -140,6 +144,9 @@
|
|
<if test="attachmentIds != null">
|
|
<if test="attachmentIds != null">
|
|
attachment_ids,
|
|
attachment_ids,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="preSendDate != null">
|
|
|
|
+ pre_send_date,
|
|
|
|
+ </if>
|
|
<if test="isSend != null">
|
|
<if test="isSend != null">
|
|
is_send,
|
|
is_send,
|
|
</if>
|
|
</if>
|
|
@@ -169,6 +176,9 @@
|
|
<if test="attachmentIds != null">
|
|
<if test="attachmentIds != null">
|
|
#{attachmentIds,jdbcType=VARCHAR},
|
|
#{attachmentIds,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="preSendDate != null">
|
|
|
|
+ #{preSendDate,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="isSend != null">
|
|
<if test="isSend != null">
|
|
#{isSend,jdbcType=INTEGER},
|
|
#{isSend,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
@@ -208,6 +218,9 @@
|
|
<if test="record.attachmentIds != null">
|
|
<if test="record.attachmentIds != null">
|
|
attachment_ids = #{record.attachmentIds,jdbcType=VARCHAR},
|
|
attachment_ids = #{record.attachmentIds,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.preSendDate != null">
|
|
|
|
+ pre_send_date = #{record.preSendDate,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="record.isSend != null">
|
|
<if test="record.isSend != null">
|
|
is_send = #{record.isSend,jdbcType=INTEGER},
|
|
is_send = #{record.isSend,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
@@ -230,6 +243,7 @@
|
|
`group` = #{record.group,jdbcType=INTEGER},
|
|
`group` = #{record.group,jdbcType=INTEGER},
|
|
content = #{record.content,jdbcType=VARCHAR},
|
|
content = #{record.content,jdbcType=VARCHAR},
|
|
attachment_ids = #{record.attachmentIds,jdbcType=VARCHAR},
|
|
attachment_ids = #{record.attachmentIds,jdbcType=VARCHAR},
|
|
|
|
+ pre_send_date = #{record.preSendDate,jdbcType=VARCHAR},
|
|
is_send = #{record.isSend,jdbcType=INTEGER},
|
|
is_send = #{record.isSend,jdbcType=INTEGER},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
@@ -256,6 +270,9 @@
|
|
<if test="attachmentIds != null">
|
|
<if test="attachmentIds != null">
|
|
attachment_ids = #{attachmentIds,jdbcType=VARCHAR},
|
|
attachment_ids = #{attachmentIds,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="preSendDate != null">
|
|
|
|
+ pre_send_date = #{preSendDate,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="isSend != null">
|
|
<if test="isSend != null">
|
|
is_send = #{isSend,jdbcType=INTEGER},
|
|
is_send = #{isSend,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
@@ -275,6 +292,7 @@
|
|
`group` = #{group,jdbcType=INTEGER},
|
|
`group` = #{group,jdbcType=INTEGER},
|
|
content = #{content,jdbcType=VARCHAR},
|
|
content = #{content,jdbcType=VARCHAR},
|
|
attachment_ids = #{attachmentIds,jdbcType=VARCHAR},
|
|
attachment_ids = #{attachmentIds,jdbcType=VARCHAR},
|
|
|
|
+ pre_send_date = #{preSendDate,jdbcType=VARCHAR},
|
|
is_send = #{isSend,jdbcType=INTEGER},
|
|
is_send = #{isSend,jdbcType=INTEGER},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
@@ -284,7 +302,7 @@
|
|
<select id="getGroupList" resultMap="BaseResultMap">
|
|
<select id="getGroupList" resultMap="BaseResultMap">
|
|
select staff_id, `group`, content, attachment_ids
|
|
select staff_id, `group`, content, attachment_ids
|
|
from we_com_special_send_message
|
|
from we_com_special_send_message
|
|
- where is_send = 0
|
|
|
|
|
|
+ where is_send = 0 and pre_send_date = #{preSendDate,jdbcType=VARCHAR}
|
|
group by staff_id, `group`, content, attachment_ids
|
|
group by staff_id, `group`, content, attachment_ids
|
|
</select>
|
|
</select>
|
|
|
|
|