소스 검색

补充查询条件

车车 4 달 전
부모
커밋
9b9f0c4366
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      ktg-system/src/main/resources/mapper/system/SysAutoCodeRuleMapper.xml

+ 3 - 1
ktg-system/src/main/resources/mapper/system/SysAutoCodeRuleMapper.xml

@@ -36,10 +36,12 @@
         <if test="ruleCode != null and ruleCode != ''">
             AND rule_code like concat('%', #{ruleCode}, '%')
         </if>
-
         <if test="ruleName != null and ruleName != ''">
             AND rule_name like concat('%', #{ruleName}, '%')
         </if>
+        <if test="enableFlag != null and enableFlag != ''">
+            AND enable_flag like concat('%', #{enableFlag}, '%')
+        </if>
         order by d.rule_id desc
     </select>