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