| | |
| | | locRule.setCreateTime(now); |
| | | locRule.setUpdateBy(getUserId()); |
| | | locRule.setUpdateTime(now); |
| | | if (locRule.getMixed() == 1) { |
| | | //混载 |
| | | locRule.setMatnr("00000000"); |
| | | } |
| | | locRuleService.insert(locRule); |
| | | return R.ok(); |
| | | } |
| | |
| | | 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(); |
| | | } |
| | | |