fix ค้นหาประวัติถือครองตำแหน่งได้ issue #1056

This commit is contained in:
Bright 2025-01-23 17:57:31 +07:00
parent c26aad70bd
commit 4834e462b5
2 changed files with 2 additions and 2 deletions

View file

@ -4928,7 +4928,7 @@ export class ProfileController extends Controller {
requestBody.position != null && requestBody.position !== ""
? "positions.positionName LIKE :positionName"
: "1=1",
{ positionName: `${requestBody.position}` },
{ positionName: `%${requestBody.position}%` },
)
.getMany();

View file

@ -2069,7 +2069,7 @@ export class ProfileEmployeeController extends Controller {
requestBody.position != null && requestBody.position !== ""
? "positions.positionName LIKE :positionName"
: "1=1",
{ positionName: `${requestBody.position}` },
{ positionName: `%${requestBody.position}%` },
)
.getMany();