mirror of https://gitee.com/stylefeng/roses
【8.0】【org】更新分页查询机构条件组装
parent
3332890113
commit
73971934d3
|
@ -508,7 +508,9 @@ public class HrOrganizationServiceImpl extends ServiceImpl<HrOrganizationMapper,
|
||||||
Long orgId = hrOrganizationRequest.getOrgId();
|
Long orgId = hrOrganizationRequest.getOrgId();
|
||||||
if (orgId != null) {
|
if (orgId != null) {
|
||||||
// 查询orgId对应的所有子机构,包含本orgId
|
// 查询orgId对应的所有子机构,包含本orgId
|
||||||
queryWrapper.eq(HrOrganization::getOrgParentId, orgId);
|
queryWrapper.nested(wrap -> {
|
||||||
|
wrap.eq(HrOrganization::getOrgParentId, orgId).or().eq(HrOrganization::getOrgId, orgId);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 根据排序正序查询
|
// 根据排序正序查询
|
||||||
|
|
Loading…
Reference in New Issue