教育训练处考试制证系统后端
heheng
2025-02-05 c016e33c4608da0079dfc055541b03d18fd27a75
新增强制校验
已修改2个文件
8 ■■■■ 文件已修改
exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalCategoryServiceImpl.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayServiceImpl.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalCategoryServiceImpl.java
@@ -64,8 +64,8 @@
            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("仅可选择下级地州");
            }
        }
exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayServiceImpl.java
@@ -129,8 +129,8 @@
            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("仅可选择下级地州");
            }
        }