From c016e33c4608da0079dfc055541b03d18fd27a75 Mon Sep 17 00:00:00 2001 From: heheng <heheng@123456> Date: 星期三, 05 二月 2025 17:08:54 +0800 Subject: [PATCH] 新增强制校验 --- exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayServiceImpl.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayServiceImpl.java b/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayServiceImpl.java index eb34654..80b01df 100644 --- a/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayServiceImpl.java +++ b/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("仅可选择下级地州"); } } -- Gitblit v1.9.2