huangzhiguo 1 년 전
부모
커밋
3f0d8746ab
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/main/resources/mapper/KeyWordDao.xml

+ 3 - 0
src/main/resources/mapper/KeyWordDao.xml

@@ -66,6 +66,9 @@
         <if test="labelStatus == 1">
             AND cusf.dynamicStatus = 0
         </if>
+        <if test="labelStatus == null">
+            AND (cusf.dynamicStatus not in (0, 1) or (cusf.dynamicStatus IS NULL))
+        </if>
         <if test="labelStatus !=null">
             AND cusf.trueStatus = #{labelStatus}
         </if>