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 deaa58f1a..07e9dbd37 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 @@ -2943,6 +2943,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService { } @Override + @Transactional public void maintenanceCancelBillLading(List ids) { List orderIds = new ArrayList<>(); List packageIds = new ArrayList<>(); @@ -2971,7 +2972,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService { reservationZeroPackageEntity.setZeroPackageStatus(ReservationPackageStatusConstant.quxiao.getValue()); Integer quantity = reservationZeroPackageEntity.getQuantity(); distributionParcelNumberService.update(Wrappers.update().lambda() - .setSql("delivery_quantity -", quantity) + .setSql("delivery_quantity = delivery_quantity - "+quantity) .eq(DistributionParcelNumberEntity::getParcelListId,reservationZeroPackageEntity.getParcelListId()) .eq(DistributionParcelNumberEntity::getStockArticleId,reservationZeroPackageEntity.getStockArticleId()) ); diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleServiceImpl.java index 6d3917ad0..ec257bc76 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleServiceImpl.java @@ -2211,6 +2211,9 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl