Fix [Bug ทะเบียนประวัติผู้พ้นจากราชการ] ค้นหาโดยใช้เลขที่ตำแหน่งแล้วไม่พบ #129

This commit is contained in:
Bright 2025-06-19 15:51:08 +07:00
parent 4ee7fb6586
commit 64eb28af68
2 changed files with 14 additions and 0 deletions

View file

@ -5608,6 +5608,13 @@ export class ProfileController extends Controller {
// END LIKE :keyword
// `;
// }
else if (searchField == "posNo") {
queryLike = `
CONCAT(profileSalary.posNoAbb, profileSalary.posNo) LIKE :keyword
OR CONCAT(profileSalary.posNoAbb, " ", profileSalary.posNo) LIKE :keyword
OR profileSalary.posNo LIKE :keyword
`;
}
let nodeCondition = "1=1";
let nodeAll = "";
let orgRoot = null;

View file

@ -2640,6 +2640,13 @@ export class ProfileEmployeeController extends Controller {
// END LIKE :keyword
// `;
// }
else if (searchField == "posNo") {
queryLike = `
CONCAT(profileSalary.posNoAbb, profileSalary.posNo) LIKE :keyword
OR CONCAT(profileSalary.posNoAbb, " ", profileSalary.posNo) LIKE :keyword
OR profileSalary.posNo LIKE :keyword
`;
}
let nodeCondition = "1=1";
let nodeAll = "";
let orgRoot = null;