From 048116706ef9d692e7307851fc219d733dbe9be8 Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Thu, 4 Apr 2024 03:22:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E6=8F=90=E7=BB=B4=E6=8A=A4=E9=9B=B6?= =?UTF-8?q?=E6=8B=85=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DistrilbutionBillLadingServiceImpl.java | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java index bc47719d8..5f0698bfc 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java @@ -340,19 +340,6 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl stockArticleList = distrilbutionBillLading.getStockArticleList(); - if (Func.isNotEmpty(stockArticleList)){ - String orderCodes = stockArticleList.stream().map(DistributionStockArticleEntity::getOrderCode).collect(Collectors.joining(",")); - List collect = stockArticleList.stream().map(DistributionStockArticleEntity::getWarehouseId).distinct().collect(Collectors.toList()); - if (!collect.isEmpty() && collect.size() == 1){ - distributionStockArticleService.maintenanceOrderInfo(orderCodes,collect.get(0)); - }else { - throw new ServiceException("修改失败!!"); - - } - } - - } /* else{ @@ -1229,6 +1216,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl list = distributionZeroPackageService.list(Wrappers.query().lambda() .eq(DistributionReservationZeroPackageEntity::getReservationId, distrilbutionBillLadingDTO.getId()) @@ -1291,6 +1279,12 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl distributionStockArticleEntities = collect.get(i.getStockArticleId()); + String orderCode = distributionStockArticleEntities.get(0).getOrderCode(); + Long warehouseId = distributionStockArticleEntities.get(0).getWarehouseId(); + log.info("#############维护零担订单信息:{},:{}",orderCode,warehouseId); + distributionStockArticleService.maintenanceOrderInfo(orderCode,warehouseId); + }); if (!longs.isEmpty()) { // distributionZeroPackageService.deleteLogic(longs);