master:生产需求管理,生产中数量显示BUG修复;

pull/1121/head
liujiang 2025-10-02 19:48:19 +08:00
parent 22bf1b6b66
commit 9e65e0a7e2
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ public class StoreProductDemandServiceImpl implements IStoreProductDemandService
// 更新需求列表中的每个项,设置库存数量和生产中数量
demandList.forEach(x -> {
final Integer deductQuantity = deductQuantityMap.getOrDefault(x.getStoreProdDemandDetailId(), 0);
x.setStorageQuantity(deductQuantity).setInProdQuantity(x.getQuantity() - deductQuantity);
x.setStorageQuantity(deductQuantity).setInProdQuantity(x.getQuantity());
});
// 将查询结果转换为分页对象并返回
return Page.convert(new PageInfo<>(demandList));