提交修改
This commit is contained in:
parent
ddc7cbaab8
commit
d43657e685
@ -520,12 +520,15 @@ public class StaffRoleServiceImpl extends ServiceImpl<StaffRoleMapper, StaffRole
|
||||
if (CollectionUtils.isNotEmpty(commonStaffList)) {
|
||||
staffMenus.addAll(commonStaffList);
|
||||
}
|
||||
//如果是部门领导
|
||||
boolean flag = false;
|
||||
DepartmentsStaffRelateEntity departmentsStaffRelateEntity = departmentsStaffRelateService.selectLastDepartmentByStaffId(userId);
|
||||
if (departmentsStaffRelateEntity != null && new Integer(1).equals(departmentsStaffRelateEntity.getIsLeader())) {
|
||||
List<StaffMenu> staffMenuDepartmentList = staffMenuService.selectByParentId(RoleMenuEnums.DEPARTMENT_PM.getType());
|
||||
if (CollectionUtils.isNotEmpty(staffMenuDepartmentList)) {
|
||||
staffMenus.addAll(staffMenuDepartmentList);
|
||||
}
|
||||
flag = true;
|
||||
}
|
||||
|
||||
if (CollectionUtils.isNotEmpty(staffRoleList)) {
|
||||
@ -542,6 +545,7 @@ public class StaffRoleServiceImpl extends ServiceImpl<StaffRoleMapper, StaffRole
|
||||
}
|
||||
}
|
||||
}
|
||||
flag =true;
|
||||
}
|
||||
if (CollectionUtils.isNotEmpty(staffMenus) && staffMenus.size() > 0) {
|
||||
List<Long> authIds = new ArrayList<>();
|
||||
@ -553,6 +557,9 @@ public class StaffRoleServiceImpl extends ServiceImpl<StaffRoleMapper, StaffRole
|
||||
map = recordAuthService.selectAuthByIds(authIds);
|
||||
}
|
||||
}
|
||||
if(flag){
|
||||
map.put("toFast",1);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user