【8.0】【system】修复查询组织机构树接口

pull/57/head
fengshuonan 2023-07-13 23:00:47 +08:00
parent a1f19ad679
commit 94a5613844
1 changed files with 3 additions and 0 deletions

View File

@ -375,6 +375,9 @@ public class HrOrganizationServiceImpl extends ServiceImpl<HrOrganizationMapper,
return parentIdListTotal; return parentIdListTotal;
} }
// 首先加上参数的机构集合
parentIdListTotal.addAll(orgIdList);
LambdaQueryWrapper<HrOrganization> hrOrganizationLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<HrOrganization> hrOrganizationLambdaQueryWrapper = new LambdaQueryWrapper<>();
hrOrganizationLambdaQueryWrapper.in(HrOrganization::getOrgId, orgIdList); hrOrganizationLambdaQueryWrapper.in(HrOrganization::getOrgId, orgIdList);
hrOrganizationLambdaQueryWrapper.select(HrOrganization::getOrgPids); hrOrganizationLambdaQueryWrapper.select(HrOrganization::getOrgPids);