From b10df09872f788e8ca75b9b3f3165265c8cf32c3 Mon Sep 17 00:00:00 2001 From: lty <876263681@qq.com> Date: 星期一, 19 五月 2025 15:00:15 +0800 Subject: [PATCH] #pda盘点入库开发 --- src/main/java/com/zy/third/erp/task/ERPInOrOutService.java | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/zy/third/erp/task/ERPInOrOutService.java b/src/main/java/com/zy/third/erp/task/ERPInOrOutService.java index aff3acf..95deee3 100644 --- a/src/main/java/com/zy/third/erp/task/ERPInOrOutService.java +++ b/src/main/java/com/zy/third/erp/task/ERPInOrOutService.java @@ -51,13 +51,13 @@ /** * @return */ - @Transactional(rollbackFor = Throwable.class) + @Transactional public boolean createInOrder(InHedTB inHedTB, List<InDetTB> inDetTBs) { Order order = orderService.selectByNo(inHedTB.getBillNo()); // 濡傛灉鍗曟嵁涓嶅瓨鍦ㄥ垯娣诲姞锛涘鏋滃崟鎹瓨鍦紝浣滀笟涓棤娉曚慨鏀癸紝鍙嶄箣鍒欎慨鏀瑰崟鎹� if (!Cools.isEmpty(order)) { if (order.getSettle() > 1L) { - throw new CoolException(inHedTB.getBillNo() + "姝e湪鍑哄簱锛屾棤娉曚慨鏀瑰崟鎹�"); + throw new CoolException(inHedTB.getBillNo() + "姝e湪鍏ュ簱锛屾棤娉曚慨鏀瑰崟鎹�"); } orderService.remove(order.getId()); } @@ -67,7 +67,7 @@ order = new Order( String.valueOf(snowflakeIdWorker.nextId()), // 缂栧彿[闈炵┖] inHedTB.getBillNo(), // 璁㈠崟缂栧彿 - DateUtils.convert(inHedTB.getMakeDate()), // 鍗曟嵁鏃ユ湡 + DateUtils.convert(inHedTB.getBillDate()), // 鍗曟嵁鏃ユ湡 docType.getDocId(), // 鍗曟嵁绫诲瀷 null, // 椤圭洰缂栧彿 null, // @@ -118,7 +118,7 @@ orderDetl.setOrderNo(outDetTB.getBillNo()); orderDetl.setOutOrderNo(outDetTB.getOrderNo()); orderDetl.setAutoId(outDetTB.getAutoId()); - orderDetl.setLuHao(outDetTB.getLuHao()); +// orderDetl.setLuHao(outDetTB.getLuHao()); orderDetl.setSpecs(outDetTB.getSPgNO()); orderDetl.setPacking(outDetTB.getPacking()); orderDetl.setWareId(outDetTB.getWareId()); @@ -143,6 +143,7 @@ if (!orderDetlService.insert(orderDetl)) { throw new CoolException("鐢熸垚鍗曟嵁鏄庣粏澶辫触锛岃鑱旂郴绠$悊鍛�"); } + log.info("鍏ュ簱鍗曟嵁鎴愬姛璇︽儏,{}", orderDetl); } return true; } @@ -151,7 +152,7 @@ /** * @return */ - @Transactional(rollbackFor = Throwable.class) + @Transactional public boolean createOutOrder(OutHedTB inHedTB, List<OutDetTB> inDetTBs) { Order order = orderService.selectByNo(inHedTB.getBillNo()); // 濡傛灉鍗曟嵁涓嶅瓨鍦ㄥ垯娣诲姞锛涘鏋滃崟鎹瓨鍦紝浣滀笟涓棤娉曚慨鏀癸紝鍙嶄箣鍒欎慨鏀瑰崟鎹� @@ -219,7 +220,7 @@ orderDetl.setOrderNo(outDetTB.getBillNo()); orderDetl.setOutOrderNo(outDetTB.getOrderNo()); orderDetl.setAutoId(outDetTB.getAutoId()); - orderDetl.setLuHao(outDetTB.getLuHao()); +// orderDetl.setLuHao(outDetTB.getLuHao()); orderDetl.setSpecs(outDetTB.getSPgNO()); orderDetl.setPacking(outDetTB.getPacking()); orderDetl.setWareId(outDetTB.getWareId()); @@ -244,6 +245,7 @@ if (!orderDetlService.insert(orderDetl)) { throw new CoolException("鐢熸垚鍗曟嵁鏄庣粏澶辫触锛岃鑱旂郴绠$悊鍛�"); } + log.info("鍑哄簱鍗曟嵁鎴愬姛璇︽儏,{}", orderDetl); } return true; } -- Gitblit v1.9.1