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);