fix: hasEsAuth方法没有0级权限BUG
This commit is contained in:
+9
-3
@@ -342,6 +342,11 @@ public class EnterpriseStandardAuthUserServiceImpl extends ServiceImpl<Enterpris
|
||||
}
|
||||
// 等级分类
|
||||
String gradeClassification = es.getGradeClassification();
|
||||
// 全公司可以看
|
||||
if ("1".equals(gradeClassification)) {
|
||||
map.put(FieldCommon.DETAIL_FLAG, true);
|
||||
continue;
|
||||
}
|
||||
// 授权部门
|
||||
if (!curAuthSet.isEmpty()) {
|
||||
// 如果授权部门不等于0
|
||||
@@ -349,7 +354,7 @@ public class EnterpriseStandardAuthUserServiceImpl extends ServiceImpl<Enterpris
|
||||
map.put(FieldCommon.DETAIL_FLAG, true);
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
}
|
||||
// 企标等级分类级别可查看部门
|
||||
if ("2".equals(gradeClassification)) {
|
||||
if (levelOneDeptIds.stream().anyMatch(departIds::contains)) {
|
||||
@@ -371,11 +376,12 @@ public class EnterpriseStandardAuthUserServiceImpl extends ServiceImpl<Enterpris
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
map.put(FieldCommon.DETAIL_FLAG, false);
|
||||
}
|
||||
// 遍历map
|
||||
for (Map<String, Object> map : records) {
|
||||
for (
|
||||
Map<String, Object> map : records) {
|
||||
if (!(boolean) map.get(FieldCommon.DETAIL_FLAG)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user