【8.1.1】【sys】修正数据范围设置值

pull/60/head
fengshuonan 2024-03-01 17:43:57 +08:00
parent 07cb03ac8b
commit 239d8420a4
1 changed files with 2 additions and 2 deletions

View File

@ -78,11 +78,11 @@ public class UserDataScopeFactory {
case COMPANY_WITH_CHILD:
// 获取本部门及以下部门有哪些部门
Set<Long> subCompanyOrgIdList = dbOperatorApi.findSubListByParentId("sys_hr_organization", "org_pids", "org_id", userRoleDataScopeConfig.getUserDeptId());
Set<Long> subCompanyOrgIdList = dbOperatorApi.findSubListByParentId("sys_hr_organization", "org_pids", "org_id", userRoleDataScopeConfig.getUserCompanyId());
if (ObjectUtil.isEmpty(subCompanyOrgIdList)) {
subCompanyOrgIdList = new HashSet<>();
}
subCompanyOrgIdList.add(userRoleDataScopeConfig.getUserDeptId());
subCompanyOrgIdList.add(userRoleDataScopeConfig.getUserCompanyId());
// 获取部门下的用户
Set<Long> subCompanyUserIdList = sysUserOrgService.getOrgUserIdList(subCompanyOrgIdList);