From 2afe456a6b22dd5d1f7f3d13b419b3f6c1be8deb Mon Sep 17 00:00:00 2001 From: Junjie <xjj@123> Date: 星期五, 15 八月 2025 14:55:49 +0800 Subject: [PATCH] #申请入库时总任务数量上限(入库、出库) --- src/main/java/com/zy/asrs/service/impl/ReportToThirdServiceImpl.java | 25 +++++++++++++++++-------- 1 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/ReportToThirdServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/ReportToThirdServiceImpl.java index 7a5871e..ec8faa1 100644 --- a/src/main/java/com/zy/asrs/service/impl/ReportToThirdServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/ReportToThirdServiceImpl.java @@ -223,7 +223,7 @@ public boolean reportTkrk(WaitPakin waitPakin) { String matnr = waitPakin.getMatnr(); String batch = waitPakin.getBatch(); - String orderNo = waitPakin.getOrderNo(); + String orderNo = waitPakin.getTkFlag(); Double anfme = waitPakin.getAnfme(); Object process1 = null; @@ -294,13 +294,22 @@ String cwarehouseid = entry.getKey(); List<InventoryCheckOrderDetl> list = entry.getValue(); Object process1 = processInvcount(list, cwarehouseid); - //鍙戦�佽姹� - NcResultMessage response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, invcountAdd, JSONObject.toJSONString(process1)); - log.info("鐩樼偣鍗時esponse:{}", response); - if (!Cools.isEmpty(response) && response.isSuccess()) { + NcResultMessage response = null; + boolean success = false; + try { + //鍙戦�佽姹� + response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, invcountAdd, JSONObject.toJSONString(process1)); log.info("鐩樼偣鍗時esponse:{}", response); - } else { - result = false; + if (!Cools.isEmpty(response) && response.isSuccess()) { + log.info("鐩樼偣鍗時esponse:{}", response); + success = true; + } else { + result = false; + } + } catch (Exception e) { + e.printStackTrace(); + } finally { + reportApiLog(null, process1, null, response, "鐩樼偣涓婃姤", nyncIp, invcountAdd, success); } } @@ -482,7 +491,7 @@ invCountBodyVO.setVbatchcode(batch); invCountBodyVO.setNcountnum(checkOrderDetl.getCheckAnfme()); invCountBodyVO.setNcountastnum(checkOrderDetl.getWeight()); - invCountBodyVO.setCstateid(nccScPcdaWms.getPkStorestate()); + invCountBodyVO.setCstateid(checkOrderDetl.getCstateid()); invCountBodyVO.setPk_batchcode(nccScPcdaWms.getPkBatchcode()); invCountBodyVOList.add(invCountBodyVO); } -- Gitblit v1.9.1