From 617a8c4fc0b81ec4b96db8a013a91f4e666b0b96 Mon Sep 17 00:00:00 2001
From: zhangc <zc@123>
Date: 星期三, 08 一月 2025 14:33:45 +0800
Subject: [PATCH] 出现空指针异常

---
 src/main/java/com/zy/asrs/controller/LocRuleController.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/asrs/controller/LocRuleController.java b/src/main/java/com/zy/asrs/controller/LocRuleController.java
index 234fed0..4d75e61 100644
--- a/src/main/java/com/zy/asrs/controller/LocRuleController.java
+++ b/src/main/java/com/zy/asrs/controller/LocRuleController.java
@@ -121,7 +121,7 @@
         locRule.setUpdateTime(new Date());
         locRuleService.updateById(locRule);
         Integer locType2 = 1;//鍗曞搧鍖哄煙
-        if (locRule.getMixed() == 0) {
+        if (Cools.isEmpty(locRule.getMixed()) || locRule.getMixed() == 0) {
             locRuleService.updateKeepGoByMatnr(locRule.getMatnr(), locRule.getKeepGo());
         }else {//娣疯浇
             locRuleService.updateKeepGoByMixed(locRule.getKeepGo());

--
Gitblit v1.9.1