search perm

This commit is contained in:
kittapath 2025-01-17 12:10:23 +07:00
parent bf4d551f40
commit 069e343ca6
2 changed files with 10 additions and 10 deletions

View file

@ -4091,7 +4091,7 @@ export class ProfileEmployeeController extends Controller {
where: {
keycloak: IsNull(),
citizenId: Like(`%${body.keyword}%`),
employeeClass: "PREM",
employeeClass: "PERM",
},
relations: ["posType", "posLevel", "current_holders"],
skip,
@ -4104,7 +4104,7 @@ export class ProfileEmployeeController extends Controller {
where: {
keycloak: IsNull(),
firstName: Like(`%${body.keyword}%`),
employeeClass: "PREM",
employeeClass: "PERM",
},
relations: ["posType", "posLevel", "current_holders"],
skip,
@ -4117,7 +4117,7 @@ export class ProfileEmployeeController extends Controller {
where: {
keycloak: IsNull(),
lastName: Like(`%${body.keyword}%`),
employeeClass: "PREM",
employeeClass: "PERM",
},
relations: ["posType", "posLevel", "current_holders"],
skip,
@ -4129,7 +4129,7 @@ export class ProfileEmployeeController extends Controller {
[findProfile, total] = await this.profileRepo.findAndCount({
where: {
keycloak: IsNull(),
employeeClass: "PREM",
employeeClass: "PERM",
},
relations: ["posType", "posLevel", "current_holders"],
skip,