yangdamao 2 lat temu
rodzic
commit
4e72866a17

+ 15 - 6
zhongzheng-system/src/main/resources/mapper/modules/top/TopOldOrderMapper.xml

@@ -88,8 +88,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="operationType != null">
             AND vto.operation_type = #{operationType}
         </if>
-        <if test="checkStatus != null">
-            AND vto.check_status = #{checkStatus}
+        <if test="checkStatus != null and checkStatus.size()!=0 ">
+            AND vto.check_status in
+            <foreach collection="checkStatus" item="item" index="index" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
         </if>
         <if test="refundStatus != null">
             AND vto.refund_status = #{refundStatus}
@@ -170,8 +173,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="userName != null and userName != ''">
             AND otg.user_name LIKE CONCAT( '%', #{userName}, '%' )
         </if>
-        <if test="checkStatus != null">
-            AND ot.check_status = #{checkStatus}
+        <if test="checkStatus != null and checkStatus.size()!=0 ">
+            AND ot.check_status in
+            <foreach collection="checkStatus" item="item" index="index" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
         </if>
         <if test="refundStatus != null">
             AND ot.refund_status = #{refundStatus}
@@ -260,8 +266,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="userName != null and userName != ''">
             AND u.realname LIKE CONCAT( '%', #{userName}, '%' )
         </if>
-        <if test="checkStatus != null">
-            AND o.check_status = #{checkStatus}
+        <if test="checkStatus != null and checkStatus.size()!=0 ">
+            AND o.check_status in
+            <foreach collection="checkStatus" item="item" index="index" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
         </if>
         <if test="operationType != null">
             AND o.operation_type = #{operationType}