diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java index 9ec86f526..deaa58f1a 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java @@ -2971,9 +2971,9 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService { reservationZeroPackageEntity.setZeroPackageStatus(ReservationPackageStatusConstant.quxiao.getValue()); Integer quantity = reservationZeroPackageEntity.getQuantity(); distributionParcelNumberService.update(Wrappers.update().lambda() + .setSql("delivery_quantity -", quantity) .eq(DistributionParcelNumberEntity::getParcelListId,reservationZeroPackageEntity.getParcelListId()) .eq(DistributionParcelNumberEntity::getStockArticleId,reservationZeroPackageEntity.getStockArticleId()) - .setSql("delivery_quantity -", quantity) ); zeroPackageService.updateById(reservationZeroPackageEntity); //状态回退包件一定处于可预约