|
|
|
@ -1700,12 +1700,11 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
|
|
|
|
|
Integer newQuantityOccupied = distributionStockListEntity.getQuantityOccupied() - reservationNum; |
|
|
|
|
distributionStockListEntity.setQuantityOccupied(newQuantityOccupied); |
|
|
|
|
distributionStockListService.updateById(distributionStockListEntity); |
|
|
|
|
disStockListDetailMapper.deleteInventoryByStockListId(distributionReservationStocklistEntity.getId()); |
|
|
|
|
disStockListDetailMapper.deleteInventoryByStockListId(distributionReservationStocklistEntity.getStocklistId(),distributionReservationStocklistEntity.getReservationId()); |
|
|
|
|
List<DisStockListDetailEntity> list = disStockListDetailService.list(Wrappers.<DisStockListDetailEntity>query().lambda() |
|
|
|
|
.eq(DisStockListDetailEntity::getReservationId, distributionReservationStocklistEntity.getReservationId()).eq(DisStockListDetailEntity::getStockListId, distributionReservationStocklistEntity.getStocklistId())); |
|
|
|
|
list.forEach(l -> l.setStockPackageStatus(InventoryPackageStatusConstant.quxiao.getValue())); |
|
|
|
|
disStockListDetailService.updateBatchById(list); |
|
|
|
|
//TODO 删除库存品包件信息
|
|
|
|
|
}); |
|
|
|
|
DistributionReservationEntity reservationEntity = this.getById(id); |
|
|
|
|
Integer reservationNum = reservationEntity.getReservationNum(); |
|
|
|
|