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