| | |
| | | @RequestMapping(value = "/locRule/add/auth") |
| | | @ManagerAuth |
| | | public R add(LocRule locRule) { |
| | | if ((locRule.getRowBeg() < locRule.getRowEnd()) || locRule.getRowBeg() <= 0 || locRule.getRowEnd() <= 0) { |
| | | if ((locRule.getRowEnd() < locRule.getRowBeg()) || locRule.getRowBeg() <= 0 || locRule.getRowEnd() <= 0) { |
| | | return R.error("排区间错误"); |
| | | } |
| | | if ((locRule.getBayBeg() < locRule.getBayEnd()) || locRule.getBayBeg() <= 0 || locRule.getBayEnd() <= 0) { |
| | | if ((locRule.getBayEnd() < locRule.getBayBeg()) || locRule.getBayBeg() <= 0 || locRule.getBayEnd() <= 0) { |
| | | return R.error("列区间错误"); |
| | | } |
| | | if ((locRule.getLevBeg() < locRule.getLevEnd()) || locRule.getLevBeg() <= 0 || locRule.getLevEnd() <= 0) { |
| | | if ((locRule.getLevEnd() < locRule.getLevBeg()) || locRule.getLevBeg() <= 0 || locRule.getLevEnd() <= 0) { |
| | | return R.error("层区间错误"); |
| | | } |
| | | Date now = new Date(); |
| | |
| | | if (Cools.isEmpty(locRule) || null==locRule.getId()){ |
| | | return R.error(); |
| | | } |
| | | if ((locRule.getRowBeg() < locRule.getRowEnd()) || locRule.getRowBeg() <= 0 || locRule.getRowEnd() <= 0) { |
| | | if ((locRule.getRowEnd() < locRule.getRowBeg()) || locRule.getRowBeg() <= 0 || locRule.getRowEnd() <= 0) { |
| | | return R.error("排区间错误"); |
| | | } |
| | | if ((locRule.getBayBeg() < locRule.getBayEnd()) || locRule.getBayBeg() <= 0 || locRule.getBayEnd() <= 0) { |
| | | if ((locRule.getBayEnd() < locRule.getBayBeg()) || locRule.getBayBeg() <= 0 || locRule.getBayEnd() <= 0) { |
| | | return R.error("列区间错误"); |
| | | } |
| | | if ((locRule.getLevBeg() < locRule.getLevEnd()) || locRule.getLevBeg() <= 0 || locRule.getLevEnd() <= 0) { |
| | | if ((locRule.getLevEnd() < locRule.getLevBeg()) || locRule.getLevBeg() <= 0 || locRule.getLevEnd() <= 0) { |
| | | return R.error("层区间错误"); |
| | | } |
| | | locRule.setUpdateBy(getUserId()); |