瀏覽代碼

搜索条件新增

change 3 年之前
父節點
當前提交
c903dd23a5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      zhongzheng-system/src/main/resources/mapper/modules/order/OrderMapper.xml

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

@@ -115,13 +115,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="majorId != null and majorId != ''">
             AND g.major_id = #{majorId}
         </if>
-        <if test="orderStatus != null and orderStatus.size()!=0 ">
+        <if test="orderStatus != null ">
             AND o.order_status in
             <foreach collection="orderStatus" item="item" index="index" open="(" close=")" separator=",">
                 #{item}
             </foreach>
         </if>
-        <if test="status != null and status.size()!=0 ">
+        <if test="status != null ">
             AND o.status in
             <foreach collection="status" item="item" index="index" open="(" close=")" separator=",">
                 #{item}