Преглед на файлове

销售订单单证 时间范围查询

liuchaohui преди 3 години
родител
ревизия
8ef83b929e
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/documents/orderData/mapper/xml/SyOrderDataMapper.xml

+ 2 - 2
jeecg-boot-module-system/src/main/java/org/jeecg/modules/documents/orderData/mapper/xml/SyOrderDataMapper.xml

@@ -46,8 +46,8 @@
              <if test="sy.customerAbbreviation != null and sy.customerAbbreviation !=''">
                  AND customer_abbreviation = #{sy.customerAbbreviation}
              </if>
-             <if test="sy.date !=null and sy.date !=''">
-                 AND order_date = #{sy.date}
+             <if test="sy.dateStar !=null and sy.dateStar !='' and sy.dateEnd !=null and sy.dateEnd !='' ">
+                 AND order_date BETWEEN #{sy.dateStar} AND #{sy.dateEnd}
              </if>
              <if test="sy.account != null and sy.account !=''">
                  AND account = #{sy.account}