| | |
| | | @ManagerAuth |
| | | public R update(LocRule locRule){ |
| | | if (Cools.isEmpty(locRule) || null==locRule.getId()){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | if ((locRule.getRowEnd() < locRule.getRowBeg()) || locRule.getRowBeg() <= 0 || locRule.getRowEnd() <= 0) { |
| | | return R.error("排区间错误"); |
| | |
| | | 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()); |