From 135e1039d78e767536d91bcbce04d2efedb2f7b2 Mon Sep 17 00:00:00 2001 From: jiazx0107@163.com <jiazx0107@163.com> Date: 星期一, 29 五月 2023 20:37:18 +0800 Subject: [PATCH] 出入库优化-登记1 --- igds-inout/src/main/java/com/ld/igds/timer/InoutScheduled.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/igds-inout/src/main/java/com/ld/igds/timer/InoutScheduled.java b/igds-inout/src/main/java/com/ld/igds/timer/InoutScheduled.java index d147fda..511c9c9 100644 --- a/igds-inout/src/main/java/com/ld/igds/timer/InoutScheduled.java +++ b/igds-inout/src/main/java/com/ld/igds/timer/InoutScheduled.java @@ -139,11 +139,11 @@ //鍙湁鍑哄叆搴撶姸鎬佺殑浠撳簱鎵嶈繘琛岀粺璁★紝鍏朵粬鐘舵�佽〃绀哄嚭鍏ュ簱浣滀笟瀹屾垚锛屼笉鍦ㄦ墽琛岀粺璁� - if (DepotStatus.STATUS_03.getCode().equals(lastStore.getDepotStatus()) || - DepotStatus.STATUS_04.getCode().equals(lastStore.getDepotStatus())) { + if (DepotStatus.STATUS_2.getCode().equals(lastStore.getDepotStatus()) || + DepotStatus.STATUS_4.getCode().equals(lastStore.getDepotStatus())) { param = new InoutParam(); - param.setStart(lastStore.getCreateDate()); + //param.setStart(lastStore.getCreateDate()); param.setEnd(new Date()); param.setDeptId(data.getDeptId()); param.setDepotId(data.getDepotId()); @@ -158,7 +158,7 @@ lastStore.setId(ContextUtil.getUUID()); lastStore.setUpdateUser(null); lastStore.setUpdateDate(new Date()); - lastStore.setCreateDate(new Date()); + // lastStore.setCreateDate(new Date()); if (InoutConstant.TYPE_IN.equals(data.getType())) { lastStore.setStorageReal(lastStore.getStorageReal() + sumRecordWeight); -- Gitblit v1.9.3