From 01538e928852cf2cf4745384e506941226913106 Mon Sep 17 00:00:00 2001 From: gongbx Date: Mon, 13 May 2024 15:52:58 +0800 Subject: [PATCH] =?UTF-8?q?opt:=E4=BF=AE=E6=94=B9=E6=AD=A3=E5=BC=8F?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/nl/common/utils/DateUtil.java | 2 +- .../eas/dao/xml/EasOutInBillDetailMapper.xml | 8 +-- .../service/impl/EasOutInBillServiceImpl.java | 42 ++++++------- .../org/nl/wms/schedule/EasBillSchedule.java | 4 +- .../main/resources/config/application-dev.yml | 61 ++++++++++++++----- 5 files changed, 73 insertions(+), 44 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 cfdc596..d06bb2b 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 @@ -458,7 +458,7 @@ public class DateUtil extends org.apache.commons.lang3.time.DateUtils { public static Date getDateFormat(String date) throws ParseException { - SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); + SimpleDateFormat dateFormat = new SimpleDateFormat(date.contains("-")?"yyyy-MM-dd":"yyyy/MM/dd"); return dateFormat.parse(date); } 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 7a9a6f7..802cf89 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 '8' DAY(3) + AND TO_DATE(cjsj, 'YYYY-MM-DD HH24:MI:SS') >= TRUNC(SYSDATE) - INTERVAL '30' DAY(3)