|
|
@ -1977,6 +1977,9 @@ public class WarehouseStorageOrderServiceImpl implements IWarehouseStorageOrderS |
|
|
|
} |
|
|
|
else if(warehouseStorageType.equals("4")){//新增委外入库库存历史记录
|
|
|
|
WarehouseInventoryInquiry oldWarehouseInventoryInquiry = warehouseInventoryInquiryMapper.selectWarehouseInventoryInquiryByMaterialNo(materialNo); |
|
|
|
if(oldWarehouseInventoryInquiry == null){ |
|
|
|
throw new BusinessException("物料" + materialNo + "库存查询记录为空,请检查"); |
|
|
|
} |
|
|
|
Integer historicalTotal = oldWarehouseInventoryInquiry.getHistoricalTotal(); |
|
|
|
historicalTotal += storageNum; |
|
|
|
oldWarehouseInventoryInquiry.setHistoricalTotal(historicalTotal); |
|
|
|