diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 1f675d60..1bfdd706 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -8917,12 +8917,6 @@ export class ProfileController extends Controller { keyword: `%${body.keyword}%`, }, ) - // .orWhere(`profile.firstName LIKE :keyword and profile.isProbation = ${isProbation}`, { - // keyword: `%${body.keyword}%`, - // }) - // .orWhere(`profile.lastName LIKE :keyword and profile.isProbation = ${isProbation}`, { - // keyword: `%${body.keyword}%`, - // }) .orWhere(`profile.position LIKE :keyword and profile.isProbation = ${isProbation}`, { keyword: `%${body.keyword}%`, }) @@ -8934,6 +8928,21 @@ export class ProfileController extends Controller { ) .orWhere(`posType.posTypeName LIKE :keyword and profile.isProbation = ${isProbation}`, { keyword: `%${body.keyword}%`, + }) + .orWhere(`orgRoot.orgRootName LIKE :keyword and profile.isProbation = ${isProbation}`, { + keyword: `%${body.keyword}%`, + }) + .orWhere(`orgChild1.orgChild1Name LIKE :keyword and profile.isProbation = ${isProbation}`, { + keyword: `%${body.keyword}%`, + }) + .orWhere(`orgChild2.orgChild2Name LIKE :keyword and profile.isProbation = ${isProbation}`, { + keyword: `%${body.keyword}%`, + }) + .orWhere(`orgChild3.orgChild3Name LIKE :keyword and profile.isProbation = ${isProbation}`, { + keyword: `%${body.keyword}%`, + }) + .orWhere(`orgChild4.orgChild4Name LIKE :keyword and profile.isProbation = ${isProbation}`, { + keyword: `%${body.keyword}%`, }); }), )