he2802 2 лет назад
Родитель
Сommit
55212b7ae8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      zhongzheng-system/src/main/resources/mapper/modules/order/OrderMapper.xml

+ 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}
                 #{item}
             </foreach>
             </foreach>
         </if>
         </if>
-        <if test="orderFroms != null ">
+        <if test="orderFroms != null and orderFroms.size()!=0">
             AND o.order_from in
             AND o.order_from in
             <foreach collection="orderFroms" item="item" index="index" open="(" close=")" separator=",">
             <foreach collection="orderFroms" item="item" index="index" open="(" close=")" separator=",">
                 #{item}
                 #{item}