From a375b1e58d643671c68d90c819ec569a18398e2d Mon Sep 17 00:00:00 2001 From: tianxinlei Date: Sat, 23 May 2026 09:59:20 +0800 Subject: [PATCH] 5-22 - fix --- ...SafetyEnvironmentalInspectionRemoveExe.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/web-app/src/main/java/com/zcloud/key/project/command/inspection/SafetyEnvironmentalInspectionRemoveExe.java b/web-app/src/main/java/com/zcloud/key/project/command/inspection/SafetyEnvironmentalInspectionRemoveExe.java index 6e5a707..5fd7add 100644 --- a/web-app/src/main/java/com/zcloud/key/project/command/inspection/SafetyEnvironmentalInspectionRemoveExe.java +++ b/web-app/src/main/java/com/zcloud/key/project/command/inspection/SafetyEnvironmentalInspectionRemoveExe.java @@ -51,15 +51,15 @@ public class SafetyEnvironmentalInspectionRemoveExe { @Transactional(rollbackFor = Exception.class) public boolean execute(Long id) { - //只有主账号才有删除权限 - SSOUser ssoUser = AuthContext.getCurrentUser(); - ZcloudUserCo zcloudUserCo = systemUserUtils.getZcloudUserInfoById(ssoUser.getUserId()); - if (zcloudUserCo == null) { - throw new BizException("删除权限校验失败"); - } - if (zcloudUserCo.getMainCorpFlag() != 1) { - throw new BizException("您没有删除权限"); - } +// //只有主账号才有删除权限 +// SSOUser ssoUser = AuthContext.getCurrentUser(); +// ZcloudUserCo zcloudUserCo = systemUserUtils.getZcloudUserInfoById(ssoUser.getUserId()); +// if (zcloudUserCo == null) { +// throw new BizException("删除权限校验失败"); +// } +// if (zcloudUserCo.getMainCorpFlag() != 1) { +// throw new BizException("您没有删除权限"); +// } SafetyEnvironmentalInspectionDO inspectionDO = safetyEnvironmentalInspectionRepository.getById(id); boolean res = safetyEnvironmentalInspectionGateway.deletedSafetyEnvironmentalInspectionById(id);