From e7202ce274c9ee51a1617069e42c5b886d21991a Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Mon, 20 Oct 2025 16:30:51 +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