ค้นหาสังกัด

This commit is contained in:
Kittapath 2024-03-06 18:28:22 +07:00
parent 2590054f9e
commit 86b84356a2

View file

@ -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(