ค้นหาสังกัด
This commit is contained in:
parent
2590054f9e
commit
86b84356a2
1 changed files with 2 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue