From 57649dbdfae709b4f6f653d14f126c88a8efb511 Mon Sep 17 00:00:00 2001 From: rcx <3084692334@qq.com> Date: Thu, 6 Aug 2026 18:07:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=BA=93=E5=AD=98=E6=A8=A1=E5=9D=97):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BA=93=E5=AD=98=E8=B0=83=E6=95=B4=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E7=94=9F=E6=95=88=20bug=20=E5=BA=93=E5=AD=98=E8=B0=83?= =?UTF-8?q?=E6=95=B4=EF=BC=9A=E4=BF=AE=E5=A4=8D=E6=89=80=E6=9C=89=E5=95=86?= =?UTF-8?q?=E5=93=81=E8=B0=83=E6=95=B4=E7=82=B9=E5=87=BB=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E4=B9=8B=E5=90=8E=E6=9C=AA=E7=94=9F=E6=95=88=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/InventoryAdjustmentRecordDomainService.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mhd_wms/src/main/java/com/mhd/wms/domain/inventoryAdjustmentRecord/service/InventoryAdjustmentRecordDomainService.java b/mhd_wms/src/main/java/com/mhd/wms/domain/inventoryAdjustmentRecord/service/InventoryAdjustmentRecordDomainService.java index f728e90c8..f63a274de 100644 --- a/mhd_wms/src/main/java/com/mhd/wms/domain/inventoryAdjustmentRecord/service/InventoryAdjustmentRecordDomainService.java +++ b/mhd_wms/src/main/java/com/mhd/wms/domain/inventoryAdjustmentRecord/service/InventoryAdjustmentRecordDomainService.java @@ -269,10 +269,8 @@ public class InventoryAdjustmentRecordDomainService { genInventoryStandingDetail(materialInventory, inventoryAdjustmentRecordDO.getAdjustQuantity()); } - // ===== 修复:末尾更新加 null 保护,且 adjustType=2 已即时落库,只在 adjustType=1 时再更新 ===== - if (ObjectUtil.isNotNull(materialInventory) - && inventoryAdjustmentRecordDO.getAdjustType() != null - && inventoryAdjustmentRecordDO.getAdjustType().equals(1)) { + // ===== 修复:末尾更新加 null 保护 ===== + if (ObjectUtil.isNotNull(materialInventory)) { materialInventoryService.updateById(materialInventory); } Boolean insert = inventoryAdjustmentRecordService.insert(inventoryAdjustmentRecord);