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());