From 4a63093b70d42464e59c6838766d79ce6c0148d5 Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Fri, 17 May 2024 20:17:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E8=B4=A7BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/DistributionStockupServiceImpl.java | 72 +++++++++---------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java index ef3d9b1a1..26439c632 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java @@ -241,42 +241,42 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl distributionStockListSelfNumVOS = distributionStockupInfoService.selectStockListSelfNum(s); - - if (!distributionStockListSelfNumVOS.isEmpty()) { - List listDetailEntities = new ArrayList<>(); - - distributionStockListSelfNumVOS.forEach(i -> { - if (ObjectUtils.isNotNull(i)) { - Integer quantity = i.getQuantity(); - while (quantity > 0) { - DisStockListDetailEntity disStockListDetail = new DisStockListDetailEntity(); - disStockListDetail.setNum(1); - disStockListDetail.setSku(i.getSku()); - disStockListDetail.setWarehouseId(i.getWarehouseId()); - disStockListDetail.setWarehouseName(i.getWarehouseName()); - disStockListDetail.setReservationId(i.getBillLadingId()); - disStockListDetail.setStockPackageStatus("1"); - disStockListDetail.setStockListId(i.getStockListId()); - disStockListDetail.setStockLockingStatus(StockLockingStatusConstant.wuzhuangche.getValue()); - disStockListDetail.setStockStatus(StockStatusConstant.daibangding.getValue()); - disStockListDetail.setStockSignfoStatus(StockSignfoStatusConstant.daiqianshou.getValue()); - disStockListDetail.setStockType("10"); - listDetailEntities.add(disStockListDetail); - quantity--; - } - } - }); - if (!listDetailEntities.isEmpty()) { - disStockListDetailService.saveBatch(listDetailEntities); - } - - } - - } +// DistributionStockupEntity stockupEntity = distributionStockupService.selectById(s); +// if ("3".equals(stockupEntity.getTypeService())) { +// //自提 添加库存平信息 +// List distributionStockListSelfNumVOS = distributionStockupInfoService.selectStockListSelfNum(s); +// +// if (!distributionStockListSelfNumVOS.isEmpty()) { +// List listDetailEntities = new ArrayList<>(); +// +// distributionStockListSelfNumVOS.forEach(i -> { +// if (ObjectUtils.isNotNull(i)) { +// Integer quantity = i.getQuantity(); +// while (quantity > 0) { +// DisStockListDetailEntity disStockListDetail = new DisStockListDetailEntity(); +// disStockListDetail.setNum(1); +// disStockListDetail.setSku(i.getSku()); +// disStockListDetail.setWarehouseId(i.getWarehouseId()); +// disStockListDetail.setWarehouseName(i.getWarehouseName()); +// disStockListDetail.setReservationId(i.getBillLadingId()); +// disStockListDetail.setStockPackageStatus("1"); +// disStockListDetail.setStockListId(i.getStockListId()); +// disStockListDetail.setStockLockingStatus(StockLockingStatusConstant.wuzhuangche.getValue()); +// disStockListDetail.setStockStatus(StockStatusConstant.daibangding.getValue()); +// disStockListDetail.setStockSignfoStatus(StockSignfoStatusConstant.daiqianshou.getValue()); +// disStockListDetail.setStockType("10"); +// listDetailEntities.add(disStockListDetail); +// quantity--; +// } +// } +// }); +// if (!listDetailEntities.isEmpty()) { +// disStockListDetailService.saveBatch(listDetailEntities); +// } +// +// } +// +// } // else{ // //商 市 // distributionStockupInfoService.selectStockListNum(s);