Fix [Bug ทะเบียนประวัติผู้พ้นจากราชการ] ค้นหาโดยใช้เลขที่ตำแหน่งแล้วไม่พบ #129
This commit is contained in:
parent
4ee7fb6586
commit
64eb28af68
2 changed files with 14 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue