From e9235a8f3fc1716fbec656ea121f135dee9db2ba Mon Sep 17 00:00:00 2001 From: baoge <751575283@qq.com> Date: Sun, 28 Apr 2024 19:43:09 +0800 Subject: [PATCH] =?UTF-8?q?opt:=20=E4=BC=98=E5=8C=96=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E6=B8=85=E7=90=86=E6=BA=90=E5=A4=B4=E5=B7=B2=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=8D=95=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dao/mapper/EasOutInBillDetailMapper.java | 4 +++ .../eas/dao/mapper/EasOutInBillMapper.java | 5 +++- .../eas/dao/xml/EasOutInBillDetailMapper.xml | 14 ++++++++++ .../eas/dao/xml/EasOutInBillMapper.xml | 13 +++++++-- .../eas/service/IeasOutInBillService.java | 9 ++++-- .../service/impl/EasOutInBillServiceImpl.java | 17 +++++++---- .../org/nl/wms/schedule/EasBillSchedule.java | 28 ++++++++++++++++++- 7 files changed, 78 insertions(+), 12 deletions(-) diff --git a/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillDetailMapper.java b/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillDetailMapper.java index 9d8f573..539f14e 100644 --- a/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillDetailMapper.java +++ b/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillDetailMapper.java @@ -34,6 +34,10 @@ public interface EasOutInBillDetailMapper extends BaseMapper @DS("oracle_eas") List selectPageWithInventory(); + @DS("oracle_eas") + Set selectEasIds(); + @DS("mysql_srm") + Set selectSrmIds(); @DS("mysql_srm") List selectSrmPageWithInventory(); diff --git a/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillMapper.java b/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillMapper.java index 776b5b6..8c1b57f 100644 --- a/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillMapper.java +++ b/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillMapper.java @@ -25,7 +25,10 @@ public interface EasOutInBillMapper extends BaseMapper { List getSrmBills(); //AND STR_TO_DATE( cjsj, '%Y-%m-%d' ) >= CURDATE() - INTERVAL 1 MONTH; - List queryExistBills(); + Set queryExistBills(); + Set queryLocalBills(); + + List queryBillList(@Param("ids") Set ids); 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 25a1770..105d9f7 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 @@ -9,12 +9,26 @@ WHERE DJZT = '提交' AND TO_DATE(cjsj, 'YYYY-MM-DD') >= TRUNC(SYSDATE) - INTERVAL '91' DAY(3) + + SELECT - djid + DJID FROM - eas_out_in_bill + EAS_OUT_IN_BILL + + +