|
|
@ -372,7 +372,8 @@ public class DistributionStockListServiceImpl extends BaseServiceImpl<Distributi |
|
|
|
distributionStockListInfo.setId(null); |
|
|
|
distributionStockListInfo.setId(null); |
|
|
|
distributionUnpackingDetailsService.save(distributionUnpackingDetails); |
|
|
|
distributionUnpackingDetailsService.save(distributionUnpackingDetails); |
|
|
|
//对原来的库存品进行数据维护
|
|
|
|
//对原来的库存品进行数据维护
|
|
|
|
one.setQuantityStock(one.getQuantityStock() - Integer.parseInt(distributionStockListDTO.getPackageNum())); |
|
|
|
one.setQuantityStock(one.getQuantityStock() - distributionStockListDTO.getUnpackingQuantity()); |
|
|
|
|
|
|
|
one.setOutboundQuantity(one.getOutboundQuantity() + distributionStockListDTO.getUnpackingQuantity()); |
|
|
|
this.updateById(one); |
|
|
|
this.updateById(one); |
|
|
|
//添加拆包记录
|
|
|
|
//添加拆包记录
|
|
|
|
distributionUnpackingDetails.setStockArticleId(Optional.ofNullable(one.getStockArticleId()).orElse(null)); |
|
|
|
distributionUnpackingDetails.setStockArticleId(Optional.ofNullable(one.getStockArticleId()).orElse(null)); |
|
|
|