Browse Source

取消自提零担订单BUG修复

dist.1.3.0
汤建军 6 months ago
parent
commit
2da8de25fa
  1. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java

2
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()); reservationZeroPackageEntity.setZeroPackageStatus(ReservationPackageStatusConstant.quxiao.getValue());
Integer quantity = reservationZeroPackageEntity.getQuantity(); Integer quantity = reservationZeroPackageEntity.getQuantity();
distributionParcelNumberService.update(Wrappers.<DistributionParcelNumberEntity>update().lambda() distributionParcelNumberService.update(Wrappers.<DistributionParcelNumberEntity>update().lambda()
.setSql("delivery_quantity -", quantity)
.eq(DistributionParcelNumberEntity::getParcelListId,reservationZeroPackageEntity.getParcelListId()) .eq(DistributionParcelNumberEntity::getParcelListId,reservationZeroPackageEntity.getParcelListId())
.eq(DistributionParcelNumberEntity::getStockArticleId,reservationZeroPackageEntity.getStockArticleId()) .eq(DistributionParcelNumberEntity::getStockArticleId,reservationZeroPackageEntity.getStockArticleId())
.setSql("delivery_quantity -", quantity)
); );
zeroPackageService.updateById(reservationZeroPackageEntity); zeroPackageService.updateById(reservationZeroPackageEntity);
//状态回退包件一定处于可预约 //状态回退包件一定处于可预约

Loading…
Cancel
Save