|
|
|
@ -333,7 +333,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
} |
|
|
|
|
if ("1".equals(i.getStockStatus())) { |
|
|
|
|
DistributionStockListEntity stockEntity = new DistributionStockListEntity(); |
|
|
|
|
distributionStockListMapper.deductionQuantityStock(i.getStockListId(),i.getQuantity()); |
|
|
|
|
distributionStockListMapper.decreaseStockListQuantityOccupied(i.getStockListId(),i.getQuantity()); |
|
|
|
|
dd.add(i.getId()); |
|
|
|
|
} else { |
|
|
|
|
throw new ServiceException("包含已备货的库存品,无法取消!!!"); |
|
|
|
@ -355,6 +355,8 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
updateWrapper.setId(i.getId()); |
|
|
|
|
updateWrapper.setQuantityStock(i.getQuantityStock()); |
|
|
|
|
distributionStockListService.updateById(updateWrapper); |
|
|
|
|
// distributionStockListMapper.deductionQuantityStock(i.getStockListId(),i.getQuantity());
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|