From 9e65e0a7e2b430419167aed8e42fc8f2a9a2469d Mon Sep 17 00:00:00 2001 From: liujiang <569804566@qq.com> Date: Thu, 2 Oct 2025 19:48:19 +0800 Subject: [PATCH] =?UTF-8?q?master=EF=BC=9A=E7=94=9F=E4=BA=A7=E9=9C=80?= =?UTF-8?q?=E6=B1=82=E7=AE=A1=E7=90=86=EF=BC=8C=E7=94=9F=E4=BA=A7=E4=B8=AD?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E6=98=BE=E7=A4=BABUG=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/xkt/service/impl/StoreProductDemandServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xkt/src/main/java/com/ruoyi/xkt/service/impl/StoreProductDemandServiceImpl.java b/xkt/src/main/java/com/ruoyi/xkt/service/impl/StoreProductDemandServiceImpl.java index c973f9c86..4ac85993e 100644 --- a/xkt/src/main/java/com/ruoyi/xkt/service/impl/StoreProductDemandServiceImpl.java +++ b/xkt/src/main/java/com/ruoyi/xkt/service/impl/StoreProductDemandServiceImpl.java @@ -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));