he2802 1 年之前
父節點
當前提交
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}
             </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}