fix
This commit is contained in:
parent
6540811216
commit
e8d2155210
@ -103,8 +103,17 @@ public class AssessServiceImpl implements AssessService {
|
|||||||
public List<String> roleDepartments(Long staffId) {
|
public List<String> roleDepartments(Long staffId) {
|
||||||
StaffRole staffRole = staffRoleService.selectByStaffId(staffId);
|
StaffRole staffRole = staffRoleService.selectByStaffId(staffId);
|
||||||
if(staffRole == null){
|
if(staffRole == null){
|
||||||
log.info("staffRole 为空");
|
log.info("staffRole 为空,不存在次人员权限配置信息,staffId:" + staffId);
|
||||||
return Collections.EMPTY_LIST;
|
//判断是否是领导
|
||||||
|
DepartmentsStaffRelateEntity entity = departmentsStaffRelateService.selectByStaffId(staffId);
|
||||||
|
if(entity == null || 0 == entity.getIsLeader()){
|
||||||
|
log.info("非 leader,此人员无管理部门权限");
|
||||||
|
return Collections.EMPTY_LIST;
|
||||||
|
}
|
||||||
|
|
||||||
|
List<String> depIds = staffService.selectAllDeparmentIdsByDepartmentParentId(entity.getDepartmentId());
|
||||||
|
log.info("获取部门领导管理部门ids: " + JSON.toJSONString(depIds));
|
||||||
|
return depIds;
|
||||||
}
|
}
|
||||||
log.info("获取 roleDepartment,staffRole: " + JSON.toJSONString(staffRole));
|
log.info("获取 roleDepartment,staffRole: " + JSON.toJSONString(staffRole));
|
||||||
// 0 标识全部部门
|
// 0 标识全部部门
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user