fangqing 3 долоо хоног өмнө
parent
commit
a73298af19

+ 7 - 2
ruoyi-generator/src/main/resources/mapper/community/CommunityFeedbackUserMapper.xml

@@ -99,8 +99,13 @@
             <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}
+            <if test="isChoice != null and isChoice != ''">
+                AND IFNULL(a.is_choice, 0) = #{isChoice}
+            </if>
+            <if test="isReply != null and isReply != ''">
+                AND CASE  WHEN a.update_by IS NOT NULL AND a.update_by != 0 THEN 1 ELSE 0 END   =   #{isReply}
+            </if>
+
         </where>
         <if test="searchType == 1">
             order by a.create_time desc