From de7ccc09601007d9fa223755286a106828f01f1c Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期五, 24 十月 2025 10:48:47 +0800
Subject: [PATCH] 增加配置
---
gkhy-system/src/main/java/com/gkhy/system/service/impl/DailySafetyInspectionServiceImpl.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gkhy-system/src/main/java/com/gkhy/system/service/impl/DailySafetyInspectionServiceImpl.java b/gkhy-system/src/main/java/com/gkhy/system/service/impl/DailySafetyInspectionServiceImpl.java
index 799ac95..0392d7c 100644
--- a/gkhy-system/src/main/java/com/gkhy/system/service/impl/DailySafetyInspectionServiceImpl.java
+++ b/gkhy-system/src/main/java/com/gkhy/system/service/impl/DailySafetyInspectionServiceImpl.java
@@ -148,11 +148,11 @@
if (!admin){
boolean sysAdmin = SecurityUtils.hasRole(Constants.SYS_ADMIN);
if (!sysAdmin){
- throw new RuntimeException("没有权限");
+ throw new ServiceException("没有权限");
}
boolean placeSafetyOfficer = SecurityUtils.hasRole(Constants.PLACE_SAFETY_OFFICER);
if (!placeSafetyOfficer){
- throw new RuntimeException("没有权限");
+ throw new ServiceException("没有权限");
}
}
--
Gitblit v1.9.2