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>