From 4e86434cd21d78128348f8f4fed4463d62cae395 Mon Sep 17 00:00:00 2001 From: wenc000 <450292408@qq.com> Date: Fri, 29 May 2020 20:51:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9D=83=E9=99=90=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0all=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/cm/common/base/AbstractService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cloud-common/src/main/java/com/cm/common/base/AbstractService.java b/cloud-common/src/main/java/com/cm/common/base/AbstractService.java index 54f98fc..28593d9 100644 --- a/cloud-common/src/main/java/com/cm/common/base/AbstractService.java +++ b/cloud-common/src/main/java/com/cm/common/base/AbstractService.java @@ -274,7 +274,9 @@ public abstract class AbstractService { } String dataAuthority = currentUser.getDataAuthority(); List dataAuthorityUserIds = currentUser.getDataAuthorityUserIds(); - if (org.apache.commons.lang3.StringUtils.equals(RoleDataAuthorityEnum.SELF.getDataAuthorityType(), dataAuthority)) { + if (org.apache.commons.lang3.StringUtils.equals(RoleDataAuthorityEnum.ALL.getDataAuthorityType(), dataAuthority)) { + return; + } else if (org.apache.commons.lang3.StringUtils.equals(RoleDataAuthorityEnum.SELF.getDataAuthorityType(), dataAuthority)) { params.put(ISystemConstant.DATA_AUTHORITY, dataAuthority); params.put(ISystemConstant.DATA_CREATOR, currentUser.getUserId()); } else if (org.apache.commons.lang3.StringUtils.equals(RoleDataAuthorityEnum.DEPARTMENT.getDataAuthorityType(), dataAuthority)