|
@@ -7,21 +7,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<resultMap type="QwSopTempContent" id="QwSopTempContentResult">
|
|
<resultMap type="QwSopTempContent" id="QwSopTempContentResult">
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
<result property="rulesId" column="rules_id" />
|
|
<result property="rulesId" column="rules_id" />
|
|
- <result property="sendType" column="send_type" />
|
|
|
|
|
|
+ <result property="contentType" column="content_type" />
|
|
<result property="content" column="content" />
|
|
<result property="content" column="content" />
|
|
<result property="isBindUrl" column="is_bind_url" />
|
|
<result property="isBindUrl" column="is_bind_url" />
|
|
<result property="expiresDays" column="expires_days" />
|
|
<result property="expiresDays" column="expires_days" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectQwSopTempContentVo">
|
|
<sql id="selectQwSopTempContentVo">
|
|
- select id, rules_id, send_type, content, is_bind_url, expires_days from qw_sop_temp_content
|
|
|
|
|
|
+ select id, rules_id, content_type, content, is_bind_url, expires_days from qw_sop_temp_content
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectQwSopTempContentList" parameterType="QwSopTempContent" resultMap="QwSopTempContentResult">
|
|
<select id="selectQwSopTempContentList" parameterType="QwSopTempContent" resultMap="QwSopTempContentResult">
|
|
<include refid="selectQwSopTempContentVo"/>
|
|
<include refid="selectQwSopTempContentVo"/>
|
|
<where>
|
|
<where>
|
|
<if test="rulesId != null and rulesId != ''"> and rules_id = #{rulesId}</if>
|
|
<if test="rulesId != null and rulesId != ''"> and rules_id = #{rulesId}</if>
|
|
- <if test="sendType != null "> and send_type = #{sendType}</if>
|
|
|
|
|
|
+ <if test="contentType != null "> and content_type = #{contentType}</if>
|
|
<if test="content != null and content != ''"> and content = #{content}</if>
|
|
<if test="content != null and content != ''"> and content = #{content}</if>
|
|
<if test="isBindUrl != null "> and is_bind_url = #{isBindUrl}</if>
|
|
<if test="isBindUrl != null "> and is_bind_url = #{isBindUrl}</if>
|
|
<if test="expiresDays != null and expiresDays != ''"> and expires_days = #{expiresDays}</if>
|
|
<if test="expiresDays != null and expiresDays != ''"> and expires_days = #{expiresDays}</if>
|
|
@@ -56,7 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">id,</if>
|
|
<if test="id != null">id,</if>
|
|
<if test="rulesId != null">rules_id,</if>
|
|
<if test="rulesId != null">rules_id,</if>
|
|
- <if test="sendType != null">send_type,</if>
|
|
|
|
|
|
+ <if test="contentType != null">content_type,</if>
|
|
<if test="content != null">content,</if>
|
|
<if test="content != null">content,</if>
|
|
<if test="isBindUrl != null">is_bind_url,</if>
|
|
<if test="isBindUrl != null">is_bind_url,</if>
|
|
<if test="expiresDays != null">expires_days,</if>
|
|
<if test="expiresDays != null">expires_days,</if>
|
|
@@ -64,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">#{id},</if>
|
|
<if test="id != null">#{id},</if>
|
|
<if test="rulesId != null">#{rulesId},</if>
|
|
<if test="rulesId != null">#{rulesId},</if>
|
|
- <if test="sendType != null">#{sendType},</if>
|
|
|
|
|
|
+ <if test="contentType != null">#{contentType},</if>
|
|
<if test="content != null">#{content},</if>
|
|
<if test="content != null">#{content},</if>
|
|
<if test="isBindUrl != null">#{isBindUrl},</if>
|
|
<if test="isBindUrl != null">#{isBindUrl},</if>
|
|
<if test="expiresDays != null">#{expiresDays},</if>
|
|
<if test="expiresDays != null">#{expiresDays},</if>
|