From e76b2b18dffc313aa8b9fa69fced547afa0d9033 Mon Sep 17 00:00:00 2001 From: zhou-hongcheng <1064771933@qq.com> Date: Tue, 17 Mar 2026 15:20:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=A6=E5=90=88=E5=87=BA=E5=BA=93=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/HandoverTaskOrderDomainService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mhd_wms/src/main/java/com/mhd/wms/domain/handoverTaskOrder/service/HandoverTaskOrderDomainService.java b/mhd_wms/src/main/java/com/mhd/wms/domain/handoverTaskOrder/service/HandoverTaskOrderDomainService.java index 32f1ac6d1..525f8e92b 100644 --- a/mhd_wms/src/main/java/com/mhd/wms/domain/handoverTaskOrder/service/HandoverTaskOrderDomainService.java +++ b/mhd_wms/src/main/java/com/mhd/wms/domain/handoverTaskOrder/service/HandoverTaskOrderDomainService.java @@ -370,8 +370,8 @@ public class HandoverTaskOrderDomainService { BigDecimal newNetWeight = oldNetWeight.subtract(checkNetWeight); materialInventoryPO.setInventoryQuantity(newInventoryQuantity); - materialInventoryPO.setAllocationQuantity(newAllocationQuantity); - materialInventoryPO.setFreezeQuantity(newFreezeQuantity); + materialInventoryPO.setAllocationQuantity(materialInventoryPO.getAllocationQuantity()); + materialInventoryPO.setFreezeQuantity(materialInventoryPO.getFreezeQuantity().subtract(outMaterialDetail.getCheckQuantity()) ); materialInventoryPO.setArea(newArea); materialInventoryPO.setVolume(newVolume); materialInventoryPO.setGrossWeight(newGrossWeight); @@ -423,7 +423,7 @@ public class HandoverTaskOrderDomainService { inventoryAdjustmentRecord.setAllocationBeforeQuantity(oldAllocationQuantity); inventoryAdjustmentRecord.setAllocationAfterQuantity(oldAllocationQuantity); inventoryAdjustmentRecord.setFreezeBeforeQuantity(oldFreezeQuantity); - inventoryAdjustmentRecord.setFreezeAfterQuantity(newFreezeQuantity.subtract(outMaterialDetail.getOutboundQuantity()));//调整后 冻结-出库 + inventoryAdjustmentRecord.setFreezeAfterQuantity(newFreezeQuantity.subtract(outMaterialDetail.getCheckQuantity()));//调整后 冻结-出库 inventoryAdjustmentRecord.setInventoryBeforeQuantity(oldInventoryQuantity); inventoryAdjustmentRecord.setInventoryAfterQuantity(newInventoryQuantity); // 调整前:库存数量(净重、毛重、体积、面积)