diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 3e44e046..5f608dce 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -906,6 +906,7 @@ export class ProfileController extends Controller { page: number; pageSize: number; keyword?: string; + rootId?: string; }, ) { const findRevision = await this.orgRevisionRepository.findOne({ @@ -930,6 +931,7 @@ export class ProfileController extends Controller { .leftJoinAndSelect("current_holder.posType", "posType") .where({ orgRevisionId: findRevision?.id, + rootId: body.rootId == null ? "1=1" : body.rootId, current_holderId: Not(IsNull()), }) .andWhere(