he2802 1 жил өмнө
parent
commit
55212b7ae8

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/order/OrderMapper.xml

@@ -196,7 +196,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 #{item}
             </foreach>
         </if>
-        <if test="orderFroms != null ">
+        <if test="orderFroms != null and orderFroms.size()!=0">
             AND o.order_from in
             <foreach collection="orderFroms" item="item" index="index" open="(" close=")" separator=",">
                 #{item}