|
@@ -148,19 +148,19 @@ public class StockChangeRecordServiceImpl implements StockChangeRecordService {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- // 出库和入库,需要修改库存
|
|
|
- // 出库集合,减库存
|
|
|
- List<StockChangeRecordEntity> outboundList = stringListHashMap.get(Constants.StockChangeType.item_0.getType());
|
|
|
- if (!CollectionUtils.isEmpty(outboundList)) {
|
|
|
- productStoreRelaService.updateStockNumberByOutbound(outboundList);
|
|
|
- goodsService.updateStockNumberByOutbound(outboundList);
|
|
|
- }
|
|
|
- // 入库集合,加库存
|
|
|
- List<StockChangeRecordEntity> storageList = stringListHashMap.get(Constants.StockChangeType.item_1.getType());
|
|
|
- if (!CollectionUtils.isEmpty(storageList)) {
|
|
|
- productStoreRelaService.updateStockNumberByStorage(storageList);
|
|
|
- goodsService.updateStockNumberByStorage(storageList);
|
|
|
- }
|
|
|
+// // 出库和入库,需要修改库存
|
|
|
+// // 出库集合,减库存
|
|
|
+// List<StockChangeRecordEntity> outboundList = stringListHashMap.get(Constants.StockChangeType.item_0.getType());
|
|
|
+// if (!CollectionUtils.isEmpty(outboundList)) {
|
|
|
+// productStoreRelaService.updateStockNumberByOutbound(outboundList);
|
|
|
+// goodsService.updateStockNumberByOutbound(outboundList);
|
|
|
+// }
|
|
|
+// // 入库集合,加库存
|
|
|
+// List<StockChangeRecordEntity> storageList = stringListHashMap.get(Constants.StockChangeType.item_1.getType());
|
|
|
+// if (!CollectionUtils.isEmpty(storageList)) {
|
|
|
+// productStoreRelaService.updateStockNumberByStorage(storageList);
|
|
|
+// goodsService.updateStockNumberByStorage(storageList);
|
|
|
+// }
|
|
|
|
|
|
stockChangeRecordDao.saveBatch(stockChangeRecordEntities);
|
|
|
}
|