فهرست منبع

出库日期查询修改。

xiaosonghong 6 ماه پیش
والد
کامیت
0f7af561eb
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      src/main/resources/com/steerinfo/dil/mapper/StatisticalReportMapper.xml

+ 3 - 3
src/main/resources/com/steerinfo/dil/mapper/StatisticalReportMapper.xml

@@ -6841,11 +6841,11 @@
             and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >=  to_date(to_char(ASOM.SALE_DATE_OF_RECEIPT,'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')
         </if>
         <if test="oneDate != null and dateType != null and dateType == 2">
-            and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') &lt; = to_date(to_char(ASM.SALE_MAKE_DATE,'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')
+            and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') &lt; = to_date(to_char(OOR.INSERT_TIME,'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')
         </if>
         <if test="startDate != null and dateType != null and dateType == 2">
-            and to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') &lt;=  to_date(to_char(ASM.SALE_MAKE_DATE,'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')
-            and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >=  to_date(to_char(ASM.SALE_MAKE_DATE,'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')
+            and to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') &lt;=  to_date(to_char(OOR.INSERT_TIME,'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')
+            and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >=  to_date(to_char(OOR.INSERT_TIME,'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')
         </if>
         <if test="orderNoFlag == null">
             AND ASM.SALE_MAKE_DATE IS NOT NULL