From b34294d53c9628e801465d9d68cf478de35e5e5a Mon Sep 17 00:00:00 2001
From: baoge <751575283@qq.com>
Date: Mon, 13 May 2024 14:41:09 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=AF=95=E8=BF=90?=
=?UTF-8?q?=E8=A1=8C=E6=9C=9F=E9=97=B4bug=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../java/org/nl/common/utils/DateUtil.java | 15 +++-
.../eas/dao/xml/EasOutInBillDetailMapper.xml | 8 +-
.../eas/dao/xml/EasOutInBillMapper.xml | 2 +-
.../impl/EasOutInBillDetailServiceImpl.java | 3 +-
.../service/impl/EasOutInBillServiceImpl.java | 81 ++++++++++++-------
.../org/nl/wms/schedule/EasBillSchedule.java | 4 +-
6 files changed, 72 insertions(+), 41 deletions(-)
diff --git a/nlsso-server/src/main/java/org/nl/common/utils/DateUtil.java b/nlsso-server/src/main/java/org/nl/common/utils/DateUtil.java
index 7fbfcfa..cfdc596 100644
--- a/nlsso-server/src/main/java/org/nl/common/utils/DateUtil.java
+++ b/nlsso-server/src/main/java/org/nl/common/utils/DateUtil.java
@@ -446,13 +446,24 @@ public class DateUtil extends org.apache.commons.lang3.time.DateUtils {
return dateTime.format(DFY_MD);
}
+ /**
+ * date '2024/05/05 08:44:54'
+ * type 1 yyyy/MM/dd HH:mm:ss,2 yyyy-MM-dd HH:mm:ss
+ */
public static Date getDate(String date)
throws ParseException {
+ SimpleDateFormat dateFormat = new SimpleDateFormat(date.contains("-")?"yyyy-MM-dd HH:mm:ss":"yyyy/MM/dd HH:mm:ss");
+ return dateFormat.parse(date);
+ }
+
+ public static Date getDateFormat(String date)
+ throws ParseException {
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
- Date format = dateFormat.parse(date);
- return format;
+ return dateFormat.parse(date);
}
+
+
public static Date getDates(String date,String dateParseFormat )
throws ParseException {
SimpleDateFormat dateFormat = new SimpleDateFormat(dateParseFormat);
diff --git a/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/EasOutInBillDetailMapper.xml b/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/EasOutInBillDetailMapper.xml
index e7aed95..7a9a6f7 100644
--- a/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/EasOutInBillDetailMapper.xml
+++ b/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/EasOutInBillDetailMapper.xml
@@ -7,7 +7,7 @@
FROM
EAS_NOBLE.V_UC_OUTINBILL
WHERE DJZT = '提交'
- AND TO_DATE(cjsj, 'YYYY-MM-DD HH24:MI:SS') >= TRUNC(SYSDATE) - INTERVAL '15' DAY(3)
+ AND TO_DATE(cjsj, 'YYYY-MM-DD HH24:MI:SS') >= TRUNC(SYSDATE) - INTERVAL '8' DAY(3)