|
|
@@ -303,7 +303,7 @@ public class SysDeptServiceImpl implements ISysDeptService
|
|
|
if (SecurityUtils.hashRoles(UserRolesType.CEO.getCode())){
|
|
|
return SecurityUtils.getDeptId();
|
|
|
}else {
|
|
|
- SysDept sysDept = deptMapper.selectDeptById(SecurityUtils.getDeptId());
|
|
|
+ SysDept sysDept = SecurityUtils.getLoginUser().getUser().getDept();
|
|
|
String[] split = sysDept.getAncestors().split(",");
|
|
|
if (split.length==2)return Long.valueOf(split[1]);
|
|
|
if (split.length>2)return Long.valueOf(split[2]);
|