|
@@ -5,12 +5,14 @@
|
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
|
<result column="pre_send_date" jdbcType="VARCHAR" property="preSendDate" />
|
|
|
<result column="staff_id" jdbcType="BIGINT" property="staffId" />
|
|
|
+ <result column="status" jdbcType="INTEGER" property="status" />
|
|
|
<result column="content" jdbcType="VARCHAR" property="content" />
|
|
|
<result column="attachment_ids" jdbcType="VARCHAR" property="attachmentIds" />
|
|
|
<result column="group_msg_disabled" jdbcType="INTEGER" property="groupMsgDisabled" />
|
|
|
<result column="page_num" jdbcType="INTEGER" property="pageNum" />
|
|
|
<result column="page_size" jdbcType="INTEGER" property="pageSize" />
|
|
|
<result column="tag_id" jdbcType="BIGINT" property="tagId" />
|
|
|
+ <result column="gender" jdbcType="INTEGER" property="gender" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
</resultMap>
|
|
@@ -73,8 +75,8 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, pre_send_date, staff_id, content, attachment_ids, group_msg_disabled, page_num,
|
|
|
- page_size, tag_id, create_time, update_time
|
|
|
+ id, pre_send_date, staff_id, `status`, content, attachment_ids, group_msg_disabled,
|
|
|
+ page_num, page_size, tag_id, gender, create_time, update_time
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.growth.common.model.po.PreSpecialSendMessageExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -111,13 +113,15 @@
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.growth.common.model.po.PreSpecialSendMessage">
|
|
|
insert into we_com_special_pre_send_message (id, pre_send_date, staff_id,
|
|
|
- content, attachment_ids, group_msg_disabled,
|
|
|
- page_num, page_size, tag_id,
|
|
|
- create_time, update_time)
|
|
|
+ `status`, content, attachment_ids,
|
|
|
+ group_msg_disabled, page_num, page_size,
|
|
|
+ tag_id, gender, create_time,
|
|
|
+ update_time)
|
|
|
values (#{id,jdbcType=BIGINT}, #{preSendDate,jdbcType=VARCHAR}, #{staffId,jdbcType=BIGINT},
|
|
|
- #{content,jdbcType=VARCHAR}, #{attachmentIds,jdbcType=VARCHAR}, #{groupMsgDisabled,jdbcType=INTEGER},
|
|
|
- #{pageNum,jdbcType=INTEGER}, #{pageSize,jdbcType=INTEGER}, #{tagId,jdbcType=BIGINT},
|
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
|
|
+ #{status,jdbcType=INTEGER}, #{content,jdbcType=VARCHAR}, #{attachmentIds,jdbcType=VARCHAR},
|
|
|
+ #{groupMsgDisabled,jdbcType=INTEGER}, #{pageNum,jdbcType=INTEGER}, #{pageSize,jdbcType=INTEGER},
|
|
|
+ #{tagId,jdbcType=BIGINT}, #{gender,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.growth.common.model.po.PreSpecialSendMessage">
|
|
|
insert into we_com_special_pre_send_message
|
|
@@ -131,6 +135,9 @@
|
|
|
<if test="staffId != null">
|
|
|
staff_id,
|
|
|
</if>
|
|
|
+ <if test="status != null">
|
|
|
+ `status`,
|
|
|
+ </if>
|
|
|
<if test="content != null">
|
|
|
content,
|
|
|
</if>
|
|
@@ -149,6 +156,9 @@
|
|
|
<if test="tagId != null">
|
|
|
tag_id,
|
|
|
</if>
|
|
|
+ <if test="gender != null">
|
|
|
+ gender,
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
|
</if>
|
|
@@ -166,6 +176,9 @@
|
|
|
<if test="staffId != null">
|
|
|
#{staffId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="status != null">
|
|
|
+ #{status,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="content != null">
|
|
|
#{content,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -184,6 +197,9 @@
|
|
|
<if test="tagId != null">
|
|
|
#{tagId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="gender != null">
|
|
|
+ #{gender,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -210,6 +226,9 @@
|
|
|
<if test="record.staffId != null">
|
|
|
staff_id = #{record.staffId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="record.status != null">
|
|
|
+ `status` = #{record.status,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="record.content != null">
|
|
|
content = #{record.content,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -228,6 +247,9 @@
|
|
|
<if test="record.tagId != null">
|
|
|
tag_id = #{record.tagId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="record.gender != null">
|
|
|
+ gender = #{record.gender,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="record.createTime != null">
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -244,12 +266,14 @@
|
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
|
pre_send_date = #{record.preSendDate,jdbcType=VARCHAR},
|
|
|
staff_id = #{record.staffId,jdbcType=BIGINT},
|
|
|
+ `status` = #{record.status,jdbcType=INTEGER},
|
|
|
content = #{record.content,jdbcType=VARCHAR},
|
|
|
attachment_ids = #{record.attachmentIds,jdbcType=VARCHAR},
|
|
|
group_msg_disabled = #{record.groupMsgDisabled,jdbcType=INTEGER},
|
|
|
page_num = #{record.pageNum,jdbcType=INTEGER},
|
|
|
page_size = #{record.pageSize,jdbcType=INTEGER},
|
|
|
tag_id = #{record.tagId,jdbcType=BIGINT},
|
|
|
+ gender = #{record.gender,jdbcType=INTEGER},
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
|
<if test="_parameter != null">
|
|
@@ -265,6 +289,9 @@
|
|
|
<if test="staffId != null">
|
|
|
staff_id = #{staffId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="status != null">
|
|
|
+ `status` = #{status,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="content != null">
|
|
|
content = #{content,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -283,6 +310,9 @@
|
|
|
<if test="tagId != null">
|
|
|
tag_id = #{tagId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="gender != null">
|
|
|
+ gender = #{gender,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -296,12 +326,14 @@
|
|
|
update we_com_special_pre_send_message
|
|
|
set pre_send_date = #{preSendDate,jdbcType=VARCHAR},
|
|
|
staff_id = #{staffId,jdbcType=BIGINT},
|
|
|
+ `status` = #{status,jdbcType=INTEGER},
|
|
|
content = #{content,jdbcType=VARCHAR},
|
|
|
attachment_ids = #{attachmentIds,jdbcType=VARCHAR},
|
|
|
group_msg_disabled = #{groupMsgDisabled,jdbcType=INTEGER},
|
|
|
page_num = #{pageNum,jdbcType=INTEGER},
|
|
|
page_size = #{pageSize,jdbcType=INTEGER},
|
|
|
tag_id = #{tagId,jdbcType=BIGINT},
|
|
|
+ gender = #{gender,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=BIGINT}
|