|
|
|
|
@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<resultMap type="WxUserScriptLog" id="WxUserScriptLogResult">
|
|
|
|
|
<result property="id" column="id" />
|
|
|
|
|
<result property="wxUserId" column="wx_user_id" />
|
|
|
|
|
<result property="messageType" column="message_type" />
|
|
|
|
|
<result property="isRead" column="is_read" />
|
|
|
|
|
<result property="isCustom" column="is_custom" />
|
|
|
|
|
<result property="scriptTemplateId" column="script_template_id" />
|
|
|
|
|
@ -29,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectWxUserScriptLogVo">
|
|
|
|
|
select id, wx_user_id, is_read, is_custom, script_template_id, script_name, titile, content, tag_type, type, link, link_params, redirect_appid, redirect_url, video_no, feed_id, tag_names, tag_ids, status, create_by, create_time from wx_user_script_log
|
|
|
|
|
select id, wx_user_id, message_type, is_read, is_custom, script_template_id, script_name, titile, content, tag_type, type, link, link_params, redirect_appid, redirect_url, video_no, feed_id, tag_names, tag_ids, status, create_by, create_time from wx_user_script_log
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectWxUserScriptLogList" parameterType="WxUserScriptLog" resultMap="WxUserScriptLogResult">
|
|
|
|
|
@ -37,6 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<where>
|
|
|
|
|
<if test="wxUserId != null "> and wx_user_id = #{wxUserId}</if>
|
|
|
|
|
<if test="isRead != null "> and is_read = #{isRead}</if>
|
|
|
|
|
<if test="messageType != null "> and message_type = #{messageType}</if>
|
|
|
|
|
<if test="isCustom != null "> and is_custom = #{isCustom}</if>
|
|
|
|
|
<if test="scriptTemplateId != null "> and script_template_id = #{scriptTemplateId}</if>
|
|
|
|
|
<if test="scriptName != null and scriptName != ''"> and script_name like concat('%', #{scriptName}, '%')</if>
|
|
|
|
|
@ -66,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="wxUserId != null">wx_user_id,</if>
|
|
|
|
|
<if test="isRead != null">is_read,</if>
|
|
|
|
|
<if test="messageType != null">message_type,</if>
|
|
|
|
|
<if test="isCustom != null">is_custom,</if>
|
|
|
|
|
<if test="scriptTemplateId != null">script_template_id,</if>
|
|
|
|
|
<if test="scriptName != null">script_name,</if>
|
|
|
|
|
@ -88,6 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="wxUserId != null">#{wxUserId},</if>
|
|
|
|
|
<if test="isRead != null">#{isRead},</if>
|
|
|
|
|
<if test="messageType != null">#{messageType},</if>
|
|
|
|
|
<if test="isCustom != null">#{isCustom},</if>
|
|
|
|
|
<if test="scriptTemplateId != null">#{scriptTemplateId},</if>
|
|
|
|
|
<if test="scriptName != null">#{scriptName},</if>
|
|
|
|
|
@ -113,6 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
update wx_user_script_log
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="wxUserId != null">wx_user_id = #{wxUserId},</if>
|
|
|
|
|
<if test="messageType != null">message_type = #{messageType},</if>
|
|
|
|
|
<if test="isRead != null">is_read = #{isRead},</if>
|
|
|
|
|
<if test="isCustom != null">is_custom = #{isCustom},</if>
|
|
|
|
|
<if test="scriptTemplateId != null">script_template_id = #{scriptTemplateId},</if>
|
|
|
|
|
|