he2802 1 년 전
부모
커밋
0510a971dd
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      zhongzheng-system/src/main/resources/mapper/modules/order/OrderBusinessConfigMapper.xml

+ 5 - 2
zhongzheng-system/src/main/resources/mapper/modules/order/OrderBusinessConfigMapper.xml

@@ -47,8 +47,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         1=1
         and cet.`status` = 1
         and cb.`status` = 1
-        <if test="status != null and status != ''">
-            and obc.`status` = #{status}
+        <if test="status != null and status.size()!=0 ">
+            AND obc.`status` in
+            <foreach collection="status" item="item" index="index" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
         </if>
         <if test="gradeType != null and gradeType != ''">
             and obc.grade_type = #{gradeType}