From 64eb28af689a050a7e66aeda527106d43f6c186d Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 19 Jun 2025 15:51:08 +0700 Subject: [PATCH] =?UTF-8?q?Fix=20[Bug=20=E0=B8=97=E0=B8=B0=E0=B9=80?= =?UTF-8?q?=E0=B8=9A=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B8=A7=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=9C=E0=B8=B9=E0=B9=89?= =?UTF-8?q?=E0=B8=9E=E0=B9=89=E0=B8=99=E0=B8=88=E0=B8=B2=E0=B8=81=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=8A=E0=B8=81=E0=B8=B2=E0=B8=A3]=20=E0=B8=84?= =?UTF-8?q?=E0=B9=89=E0=B8=99=E0=B8=AB=E0=B8=B2=E0=B9=82=E0=B8=94=E0=B8=A2?= =?UTF-8?q?=E0=B9=83=E0=B8=8A=E0=B9=89=E0=B9=80=E0=B8=A5=E0=B8=82=E0=B8=97?= =?UTF-8?q?=E0=B8=B5=E0=B9=88=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99?= =?UTF-8?q?=E0=B9=88=E0=B8=87=E0=B9=81=E0=B8=A5=E0=B9=89=E0=B8=A7=E0=B9=84?= =?UTF-8?q?=E0=B8=A1=E0=B9=88=E0=B8=9E=E0=B8=9A=20#129?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ProfileController.ts | 7 +++++++ src/controllers/ProfileEmployeeController.ts | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 780b2153..a6bd6535 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -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; diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index d7bddca4..e76b6d37 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -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;