| | |
| | | throw new RuntimeException("地州信息错误"); |
| | | } |
| | | if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())) { |
| | | if (!SecurityUtils.getDeptDistrictCode().equals(nonCoalCategory.getDistrictCode())) { |
| | | throw new RuntimeException("仅可新增本地州数据"); |
| | | if (Constants.DIS_XINJIANG_CODE.equals(nonCoalCategory.getDistrictCode())) { |
| | | throw new RuntimeException("仅可选择下级地州"); |
| | | } |
| | | |
| | | } |
| | |
| | | throw new RuntimeException("地州信息错误"); |
| | | } |
| | | if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())) { |
| | | if (!SecurityUtils.getDeptDistrictCode().equals(nonCoalPay.getDistrictCode())) { |
| | | throw new RuntimeException("仅可新增本地州数据"); |
| | | if (Constants.DIS_XINJIANG_CODE.equals(nonCoalPay.getDistrictCode())) { |
| | | throw new RuntimeException("仅可选择下级地州"); |
| | | } |
| | | |
| | | } |