From 9be1398405b11b09f764447a6b904a9a49674a60 Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Thu, 4 Apr 2024 03:08:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E6=8F=90=E8=AE=A2=E5=88=B6=E5=93=81?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E3=80=81=E4=BF=AE=E6=94=B9BUG=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...istributionReservationZeroPackageServiceImpl.java | 6 ++++++ .../impl/DistrilbutionBillLadingServiceImpl.java | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationZeroPackageServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationZeroPackageServiceImpl.java index 899f5e7e8..61ea1f8c9 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationZeroPackageServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationZeroPackageServiceImpl.java @@ -29,10 +29,12 @@ import com.logpm.distribution.mapper.DistributionReservationZeroPackageMapper; import com.logpm.distribution.service.IDistributionParcelListService; import com.logpm.distribution.service.IDistributionParcelNumberService; import com.logpm.distribution.service.IDistributionReservationZeroPackageService; +import com.logpm.distribution.service.IDistributionStockArticleService; import com.logpm.distribution.vo.DistributionReservationZeroPackageVO; import org.springblade.common.constant.reservation.ReservationPackageStatusConstant; import org.springblade.core.mp.base.BaseServiceImpl; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import java.util.List; @@ -51,6 +53,9 @@ public class DistributionReservationZeroPackageServiceImpl extends BaseServiceIm private DistributionParcelListMapper distributionParcelListMapper; @Autowired private IDistributionParcelNumberService distributionParcelNumberService; + @Autowired + @Lazy + private IDistributionStockArticleService distributionStockArticleService; @Override @@ -118,6 +123,7 @@ public class DistributionReservationZeroPackageServiceImpl extends BaseServiceIm distributionParcelNumberService.updateById(distributionParcelNumberEntity); reservationZeroPackageEntity.setQuantity(0); reservationZeroPackageEntity.setZeroPackageStatus(ReservationPackageStatusConstant.quxiao.getValue()); + distributionStockArticleService.maintenanceOrderInfo(parcelListEntity.getOrderCode(),parcelListEntity.getWarehouseId()); this.updateById(reservationZeroPackageEntity); } 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 aba7cbe7a..bc47719d8 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 @@ -336,10 +336,10 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl stockArticleList = distrilbutionBillLading.getStockArticleList(); if (Func.isNotEmpty(stockArticleList)){ String orderCodes = stockArticleList.stream().map(DistributionStockArticleEntity::getOrderCode).collect(Collectors.joining(",")); @@ -650,6 +650,8 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl list3 = distrilbutionBillPackageService.list(Wrappers.query().lambda() .eq(DistrilbutionBillPackageEntity::getBillLadingId, distrilbutionBillLadingEntity.getId()) .ne(DistrilbutionBillPackageEntity::getPacketBarStatus, "2") - .ne(DistrilbutionBillPackageEntity::getStockArticleId, distributionStockArticleVO.getId()) + .eq(DistrilbutionBillPackageEntity::getStockArticleId, distributionStockArticleVO.getId()) ); if (!list3.isEmpty()){ distributionStockArticleVO.setReservationNum(list3.size());