From 8c3714822ea0223ae42bd5c08dbbc872fffee9d5 Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期六, 13 五月 2023 13:06:53 +0800 Subject: [PATCH] 库位规则 --- src/main/java/com/zy/asrs/controller/LocRuleController.java | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/controller/LocRuleController.java b/src/main/java/com/zy/asrs/controller/LocRuleController.java index e06e445..93cc9fc 100644 --- a/src/main/java/com/zy/asrs/controller/LocRuleController.java +++ b/src/main/java/com/zy/asrs/controller/LocRuleController.java @@ -76,6 +76,10 @@ locRule.setCreateTime(now); locRule.setUpdateBy(getUserId()); locRule.setUpdateTime(now); + if (locRule.getMixed() == 1) { + //娣疯浇 + locRule.setMatnr("00000000"); + } locRuleService.insert(locRule); return R.ok(); } @@ -98,6 +102,11 @@ locRule.setUpdateBy(getUserId()); locRule.setUpdateTime(new Date()); locRuleService.updateById(locRule); + if (locRule.getMixed() == 0) { + locRuleService.updateKeepGoByMatnr(locRule.getMatnr(), locRule.getKeepGo()); + }else {//娣疯浇 + locRuleService.updateKeepGoByMixed(locRule.getKeepGo()); + } return R.ok(); } -- Gitblit v1.9.1