diff --git a/laws-modules/src/main/java/com/jero/modules/laws/enterprise/service/impl/EnterpriseStandardAuthUserServiceImpl.java b/laws-modules/src/main/java/com/jero/modules/laws/enterprise/service/impl/EnterpriseStandardAuthUserServiceImpl.java index 66887e86..a4b178d0 100644 --- a/laws-modules/src/main/java/com/jero/modules/laws/enterprise/service/impl/EnterpriseStandardAuthUserServiceImpl.java +++ b/laws-modules/src/main/java/com/jero/modules/laws/enterprise/service/impl/EnterpriseStandardAuthUserServiceImpl.java @@ -233,7 +233,7 @@ public class EnterpriseStandardAuthUserServiceImpl extends ServiceImpl 0) { + if (!curAuthSet.isEmpty()) { // 如果授权部门不等于0 if (curAuthSet.stream().map(EnterpriseStandardAuthDept::getAuthDept).anyMatch(departIds::contains)) { map.put(FieldCommon.DETAIL_FLAG, true); @@ -346,7 +346,7 @@ public class EnterpriseStandardAuthUserServiceImpl extends ServiceImpl 0) { + if (!curAuthSet.isEmpty()) { // 如果授权部门不等于0 if (curAuthSet.stream().map(EnterpriseStandardAuthDept::getAuthDept).anyMatch(departIds::contains)) { map.put(FieldCommon.DETAIL_FLAG, true); @@ -575,16 +575,20 @@ public class EnterpriseStandardAuthUserServiceImpl extends ServiceImpl 0) { + if (!curAuthSet.isEmpty()) { // 如果授权部门不等于0 - if (curAuthSet.stream().map(EnterpriseStandardAuthDept::getAuthDept).anyMatch(departIds::contains)) { - return true; - } + return curAuthSet.stream().map(EnterpriseStandardAuthDept::getAuthDept).anyMatch(departIds::contains); } else { // 企标等级分类级别可查看部门 if ("2".equals(gradeClassification)) { @@ -599,10 +603,8 @@ public class EnterpriseStandardAuthUserServiceImpl extends ServiceImpl