|
|
|
@ -2971,9 +2971,9 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
reservationZeroPackageEntity.setZeroPackageStatus(ReservationPackageStatusConstant.quxiao.getValue()); |
|
|
|
|
Integer quantity = reservationZeroPackageEntity.getQuantity(); |
|
|
|
|
distributionParcelNumberService.update(Wrappers.<DistributionParcelNumberEntity>update().lambda() |
|
|
|
|
.setSql("delivery_quantity -", quantity) |
|
|
|
|
.eq(DistributionParcelNumberEntity::getParcelListId,reservationZeroPackageEntity.getParcelListId()) |
|
|
|
|
.eq(DistributionParcelNumberEntity::getStockArticleId,reservationZeroPackageEntity.getStockArticleId()) |
|
|
|
|
.setSql("delivery_quantity -", quantity) |
|
|
|
|
); |
|
|
|
|
zeroPackageService.updateById(reservationZeroPackageEntity); |
|
|
|
|
//状态回退包件一定处于可预约
|
|
|
|
|