|
|
@@ -19,6 +19,8 @@
|
|
|
<result column="is_draft" jdbcType="BIT" property="isDraft" />
|
|
|
<result column="is_send" jdbcType="BIT" property="isSend" />
|
|
|
<result column="delete_sign" jdbcType="BIT" property="deleteSign" />
|
|
|
+ <result column="code" jdbcType="VARCHAR" property="code" />
|
|
|
+ <result column="resource_name" jdbcType="VARCHAR" property="resourceName" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
|
@@ -95,7 +97,7 @@
|
|
|
This element was generated on Wed Aug 29 09:46:33 CST 2018.
|
|
|
-->
|
|
|
id, creater, create_time, send_time, title, body, subject, resource_id, resource_type,
|
|
|
- is_draft, is_send, delete_sign
|
|
|
+ is_draft, is_send, delete_sign,code,resource_name
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.JtMessageProducerExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
@@ -156,11 +158,11 @@
|
|
|
insert into jt_message_producer (id, creater, create_time,
|
|
|
send_time, title, body,
|
|
|
subject, resource_id, resource_type,
|
|
|
- is_draft, is_send, delete_sign)
|
|
|
+ is_draft, is_send, delete_sign,code,resource_name)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{creater,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
#{sendTime,jdbcType=TIMESTAMP}, #{title,jdbcType=VARCHAR}, #{body,jdbcType=VARCHAR},
|
|
|
#{subject,jdbcType=INTEGER}, #{resourceId,jdbcType=VARCHAR}, #{resourceType,jdbcType=INTEGER},
|
|
|
- #{isDraft,jdbcType=BIT}, #{isSend,jdbcType=BIT}, #{deleteSign,jdbcType=BIT})
|
|
|
+ #{isDraft,jdbcType=BIT}, #{isSend,jdbcType=BIT}, #{deleteSign,jdbcType=BIT},#{code,jdbcType=VARCHAR},#{resourceName,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.JtMessageProducer">
|
|
|
<!--
|
|
|
@@ -206,6 +208,12 @@
|
|
|
<if test="deleteSign != null">
|
|
|
delete_sign,
|
|
|
</if>
|
|
|
+ <if test="code != null">
|
|
|
+ code,
|
|
|
+ </if>
|
|
|
+ <if test="resourceName != null">
|
|
|
+ resource_name,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -244,6 +252,12 @@
|
|
|
<if test="deleteSign != null">
|
|
|
#{deleteSign,jdbcType=BIT},
|
|
|
</if>
|
|
|
+ <if test="code != null">
|
|
|
+ #{code,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="resourceName != null">
|
|
|
+ #{resourceName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.goafanti.common.model.JtMessageProducerExample" resultType="java.lang.Integer">
|
|
|
@@ -370,6 +384,12 @@
|
|
|
<if test="deleteSign != null">
|
|
|
delete_sign = #{deleteSign,jdbcType=BIT},
|
|
|
</if>
|
|
|
+ <if test="code != null">
|
|
|
+ code = #{code,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="resourceName != null">
|
|
|
+ resource_name = #{resourceName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -390,7 +410,9 @@
|
|
|
resource_type = #{resourceType,jdbcType=INTEGER},
|
|
|
is_draft = #{isDraft,jdbcType=BIT},
|
|
|
is_send = #{isSend,jdbcType=BIT},
|
|
|
- delete_sign = #{deleteSign,jdbcType=BIT}
|
|
|
+ delete_sign = #{deleteSign,jdbcType=BIT},
|
|
|
+ code = #{code,jdbcType=VARCHAR},
|
|
|
+ resource_name = #{resourceName,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
@@ -399,7 +421,7 @@
|
|
|
select
|
|
|
id, creater, create_time as createTime, send_time as sendTime, title, body, subject,
|
|
|
resource_id as resourceId, resource_type as resourceType,
|
|
|
- is_draft as isDraft, is_send as isSend, delete_sign as deleteSign
|
|
|
+ is_draft as isDraft, is_send as isSend, delete_sign as deleteSign,code,resource_name as resourceName
|
|
|
from jt_message_producer
|
|
|
where delete_sign = 0
|
|
|
<if test="title != null">
|
|
|
@@ -421,6 +443,12 @@
|
|
|
<if test="sendStartTime != null and sendEndTime != null">
|
|
|
and send_time between #{sendStartTime,jdbcType=VARCHAR} and #{sendEndTime,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
+ <if test="code != null">
|
|
|
+ and code = #{code,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="subject != null">
|
|
|
+ and subject = #{subject,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
order by create_time desc
|
|
|
<if test="page_sql!=null">
|
|
|
${page_sql}
|
|
|
@@ -447,5 +475,11 @@
|
|
|
<if test="sendStartTime != null and sendEndTime != null">
|
|
|
and send_time between #{sendStartTime,jdbcType=VARCHAR} and #{sendEndTime,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
+ <if test="code != null">
|
|
|
+ and code = #{code,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="subject != null">
|
|
|
+ and subject = #{subject,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
</mapper>
|