|
@@ -14,6 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="replyContent" column="reply_content" />
|
|
|
<result property="type" column="type" />
|
|
|
<result property="isPublic" column="is_public" />
|
|
|
+ <result property="isRead" column="is_read" />
|
|
|
<result property="userId" column="user_id" />
|
|
|
<result property="isDel" column="is_del" />
|
|
|
<result property="createBy" column="create_by" />
|
|
@@ -24,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectComplaintSuggestionVo">
|
|
|
- select suggestion_id, title, content, images, created_time, status, reply_content, type, is_public, user_id, is_del, create_by, create_time, update_by, update_time, remark from complaint_suggestion
|
|
|
+ select suggestion_id, title, content, images, created_time,is_read, status, reply_content, type, is_public, user_id, is_del, create_by, create_time, update_by, update_time, remark from complaint_suggestion
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectComplaintSuggestionList" parameterType="ComplaintSuggestion" resultMap="ComplaintSuggestionResult">
|
|
@@ -38,6 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="replyContent != null and replyContent != ''"> and reply_content = #{replyContent}</if>
|
|
|
<if test="type != null and type != ''"> and type = #{type}</if>
|
|
|
<if test="isPublic != null and isPublic != ''"> and is_public = #{isPublic}</if>
|
|
|
+ <if test="isRead != null and isRead != ''"> and is_read = #{isRead}</if>
|
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
|
|
|
</where>
|
|
@@ -60,6 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="replyContent != null">reply_content,</if>
|
|
|
<if test="type != null">type,</if>
|
|
|
<if test="isPublic != null">is_public,</if>
|
|
|
+ <if test="isRead != null">is_read,</if>
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
<if test="isDel != null">is_del,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
@@ -77,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="replyContent != null">#{replyContent},</if>
|
|
|
<if test="type != null">#{type},</if>
|
|
|
<if test="isPublic != null">#{isPublic},</if>
|
|
|
+ <if test="isRead != null">#{isRead},</if>
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
<if test="isDel != null">#{isDel},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
@@ -98,6 +102,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="replyContent != null">reply_content = #{replyContent},</if>
|
|
|
<if test="type != null">type = #{type},</if>
|
|
|
<if test="isPublic != null">is_public = #{isPublic},</if>
|
|
|
+ <if test="isRead != null">is_read = #{isRead},</if>
|
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
|
<if test="isDel != null">is_del = #{isDel},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|