diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 6fea64c1..cfea4ea2 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -4100,6 +4100,10 @@ export class ProfileController extends Controller { IFNULL(orgRoot.orgRootShortName, ''), IFNULL(current_holders.posMasterNo , '') ) LIKE :keyword`; + // queryLike = `CONCAT( + // IFNULL(orgRoot.orgRootShortName, ''), + // IFNULL(current_holders.posMasterNo , '') + // ) LIKE :keyword`; } let nodeCondition = "1=1"; let nodeAll = ""; diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index 5f6feba2..dd14cf4c 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -1500,7 +1500,7 @@ export class ProfileEmployeeController extends Controller { ) .andWhere( posLevel != undefined && posLevel != null && posLevel != "" - ? "posLevel.posLevelName LIKE :keyword2" + ? `CONCAT(posType.posTypeShortName,' ',posLevel.posLevelName) LIKE :keyword2` : "1=1", { keyword2: `${posLevel}`,