From e624b864d86ca451e56224cf50827b125965fe39 Mon Sep 17 00:00:00 2001 From: "XI_TENG\\xixi_" <971623072> Date: Wed, 17 Jul 2024 17:30:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=93=E9=85=8D=E5=85=A5=E5=BA=93=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E6=89=B9=E6=AC=A1=E5=8F=B7=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/WarehousingStorageServiceImpl.java | 10 ++++++ .../WarehousingStorageController.java | 33 +------------------ 2 files changed, 11 insertions(+), 32 deletions(-) diff --git a/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/impl/WarehousingStorageServiceImpl.java b/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/impl/WarehousingStorageServiceImpl.java index bdb16452..fd79d28f 100644 --- a/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/impl/WarehousingStorageServiceImpl.java +++ b/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/impl/WarehousingStorageServiceImpl.java @@ -602,6 +602,16 @@ public class WarehousingStorageServiceImpl extends ServiceImpl inventoryQueryWrapper = new QueryWrapper<>(); + inventoryQueryWrapper.lambda().eq(InventoryEntity::getWarehouseId, entity.getWarehouseId()); + inventoryQueryWrapper.lambda().eq(InventoryEntity::getProductId, entitys.getProductId()); + inventoryQueryWrapper.lambda().eq(InventoryEntity::getStorageAreaId, entitys.getWarehousingStorageId()); + List inventoryList = inventoryService.list(inventoryQueryWrapper); + if (inventoryList!=null&& inventoryList.size()>0){ + entitys.setBatchNumber( inventoryList.get(0).getBatchNumber()); + } // entitys.setBatchNumber(generaterSwapUtil.getBillNumber("picihao", false)); entitys.setOrdLn(String.valueOf(line)); line++; diff --git a/jnpf-java-boot/jnpf-scm/jnpf-scm-controller/src/main/java/jnpf/controller/WarehousingStorageController.java b/jnpf-java-boot/jnpf-scm/jnpf-scm-controller/src/main/java/jnpf/controller/WarehousingStorageController.java index ef2085dd..d6992006 100644 --- a/jnpf-java-boot/jnpf-scm/jnpf-scm-controller/src/main/java/jnpf/controller/WarehousingStorageController.java +++ b/jnpf-java-boot/jnpf-scm/jnpf-scm-controller/src/main/java/jnpf/controller/WarehousingStorageController.java @@ -532,38 +532,7 @@ public class WarehousingStorageController { flowTaskNodeEntityQueryWrapper.lambda().eq(FlowTaskNodeEntity::getTaskId, flowTaskEntity.getId()); List flowTaskNodeEntityList = flowTaskNodeService.list(flowTaskNodeEntityQueryWrapper); if (flowTaskNodeEntityList != null && flowTaskNodeEntityList.size() > 0 && "end".equals(flowTaskNodeEntityList.get(0).getNodeNext())) { -// if (warehousingNotificationEntity!=null){ -// BigDecimal maxNum = BigDecimal.ZERO; -// BigDecimal YNum = BigDecimal.ZERO; -// BigDecimal netWeightNum = BigDecimal.ZERO; -// for (WarehousingStorageProductModel warehousingStorageProductModel : warehousingStorageForm.getWarehousingStorageProductList()) { -// maxNum = maxNum.add( new BigDecimal(warehousingStorageProductModel.getStorageNumber())) ;//这次的入库数量 -// if (warehousingStorageProductModel.getReceivedQuantity()!=null){ -// maxNum = maxNum.add( new BigDecimal(warehousingStorageProductModel.getReceivedQuantity())) ; -// }else { -// maxNum = maxNum.add( new BigDecimal(0)) ; -// } -// -// } -// for (WarehousingStoragePoundlistModel warehousingStoragePoundlistModel : warehousingStorageForm.getWarehousingStoragePoundlistList()) { -// netWeightNum = netWeightNum.add( warehousingStoragePoundlistModel.getNetWeight()) ; -// } -// BigDecimal netWeightNumNot= netWeightNum; //这次的入库数量 -// if (warehousingNotificationEntity.getConfirmWarehousingNum()!=null){ -// YNum.add(new BigDecimal (warehousingNotificationEntity.getConfirmWarehousingNum())); -// } -// BigDecimal maxNums = maxNum; //暂存 -// BigDecimal result = maxNum.subtract(YNum); // -// result = result.subtract(netWeightNum); //最后结果 -// -// -// -// if (result.compareTo(BigDecimal.ZERO)==0){ -// warehousingNotificationEntity.setWarehousingStatus("4"); -// }else { -// warehousingNotificationEntity.setWarehousingStatus("3"); -//// warehousingNotificationEntity.setNotificationStorageNumber(); -// } + //上面注释是多次入库,现在先弄成一次性入库 //审核通过修改入库通知 WarehousingNotificationEntity warehousingNotificationEntity = warehousingNotificationService.getInfo(warehousingStorageForm.getWarehousingId());