Browse Source

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

liuchaohui 2 years ago
parent
commit
8ef83b929e

+ 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}