自动化立体仓库 - WMS系统
Junjie
2023-06-02 0e0b408f0a1b6d7904b1b190217cb5ed08d76baa
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();
    }