|
@@ -12,6 +12,8 @@
|
|
|
<result property="punishId" column="user_punishd"/>
|
|
|
<result property="punishFeedback" column="user_punishFeedback"/>
|
|
|
<result property="isDelete" column="user_isDelete"/>
|
|
|
+ <result property="isChoice" column="user_isChoice"/>
|
|
|
+ <result property="isReply" column="user_isReply"/>
|
|
|
<result property="createBy" column="user_createBy"/>
|
|
|
<result property="createTime" column="user_createTime"/>
|
|
|
<result property="updateBy" column="user_updateBy"/>
|
|
@@ -30,6 +32,8 @@
|
|
|
a.punish_id as user_punishd,
|
|
|
a.punish_feedback as user_punishFeedback,
|
|
|
a.is_delete as user_isDelete,
|
|
|
+ a.is_Choice as user_isChoice,
|
|
|
+ case when a.update_by is null then 0 else 1 end user_isReply,
|
|
|
a.create_by as user_createBy,
|
|
|
a.create_time as user_createTime,
|
|
|
a.update_by as user_updateBy,
|
|
@@ -95,6 +99,8 @@
|
|
|
<if test="userId != null and userId != ''">
|
|
|
AND a.user_id = #{userId}
|
|
|
</if>
|
|
|
+ AND IFNULL(a.is_choice, 0) = #{isChoice}
|
|
|
+ AND CASE WHEN a.update_by IS NOT NULL AND a.update_by != 0 THEN 1 ELSE 0 END = #{isReply}
|
|
|
</where>
|
|
|
<if test="searchType == 1">
|
|
|
order by a.create_time desc
|