From 276e91e441c00f29e94586b9ff1ba36d6f9ecd19 Mon Sep 17 00:00:00 2001 From: shenzhouyu Date: Tue, 2 Dec 2025 12:09:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E5=93=81=E9=94=80=E5=94=AE=E5=8F=91?= =?UTF-8?q?=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customer/service/impl/CustomerIssueServiceImpl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gaotao/modules/customer/service/impl/CustomerIssueServiceImpl.java b/src/main/java/com/gaotao/modules/customer/service/impl/CustomerIssueServiceImpl.java index 56bd6fe..49aba25 100644 --- a/src/main/java/com/gaotao/modules/customer/service/impl/CustomerIssueServiceImpl.java +++ b/src/main/java/com/gaotao/modules/customer/service/impl/CustomerIssueServiceImpl.java @@ -167,10 +167,10 @@ public class CustomerIssueServiceImpl implements CustomerIssueService { seqNo++; } - List ids = changeAndAddHandlingUnit(customerIssueDto); + //List ids = changeAndAddHandlingUnit(customerIssueDto); transCommonRequestDto.setSubList(subList); List out = transHeaderService.genTransAndChangeInventoryStock(transCommonRequestDto, "OUT"); - + List ids = new ArrayList<>(); //跟新HandlingUnit的长度和数量 BigDecimal issueQty = BigDecimal.ZERO; List handlingUnits = new ArrayList<>(); @@ -206,6 +206,9 @@ public class CustomerIssueServiceImpl implements CustomerIssueService { }else{ hu.setInStockFlag("N"); } + if(BigDecimal.ZERO.compareTo(hu.getQty()) != 0){ + ids.add(hu.getUnitId()); + } handlingUnits.add(hu); if (material.getIssueQty() != null) { issueQty = issueQty.add(material.getIssueQty());