|
|
|
@ -333,9 +333,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
} |
|
|
|
|
if ("1".equals(i.getStockStatus())) { |
|
|
|
|
DistributionStockListEntity stockEntity = new DistributionStockListEntity(); |
|
|
|
|
stockEntity.setId(i.getStockListId()); |
|
|
|
|
stockEntity.setQuantityStock(i.getQuantity()); |
|
|
|
|
stockEntityList.add(stockEntity); |
|
|
|
|
distributionStockListMapper.deductionQuantityStock(i.getStockListId(),i.getQuantity()); |
|
|
|
|
dd.add(i.getId()); |
|
|
|
|
} else { |
|
|
|
|
throw new ServiceException("包含已备货的库存品,无法取消!!!"); |
|
|
|
@ -355,7 +353,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
DistributionStockListEntity byId = distributionStockListService.getById(i.getId()); |
|
|
|
|
DistributionStockListEntity updateWrapper = new DistributionStockListEntity(); |
|
|
|
|
updateWrapper.setId(i.getId()); |
|
|
|
|
updateWrapper.setQuantityStock(i.getQuantityStock() + byId.getQuantityStock()); |
|
|
|
|
updateWrapper.setQuantityStock(i.getQuantityStock()); |
|
|
|
|
distributionStockListService.updateById(updateWrapper); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
@ -3344,6 +3342,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
List<DisStockListDetailEntity> listed = disStockListDetailService.list(Wrappers.<DisStockListDetailEntity>query().lambda() |
|
|
|
|
.eq(DisStockListDetailEntity::getReservationId, i.getId()) |
|
|
|
|
.eq(DisStockListDetailEntity::getSku, i.getSku()) |
|
|
|
|
.eq(DisStockListDetailEntity::getStockListId, i.getStockListId()) |
|
|
|
|
.ne(DisStockListDetailEntity::getStockPackageStatus, ReservationPackageStatusConstant.quxiao.getValue()) |
|
|
|
|
); |
|
|
|
|
if (Func.isNotEmpty(listed)) { |
|
|
|
|