แก้ search posLevel emp

This commit is contained in:
AdisakKanthawilang 2024-11-29 10:31:36 +07:00
parent 40c6cc32a7
commit 507c841362
2 changed files with 5 additions and 1 deletions

View file

@ -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 = "";

View file

@ -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}`,