เช็ค ระบบเงินเดือน #813

This commit is contained in:
AdisakKanthawilang 2024-11-29 16:53:05 +07:00
parent 03f269ddd0
commit 15db387e7a
2 changed files with 17 additions and 5 deletions

View file

@ -4100,10 +4100,6 @@ 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 = "";
@ -7021,6 +7017,14 @@ export class ProfileController extends Controller {
keyword: `%${body.keyword}%`,
},
)
.orWhere(
body.keyword != null && body.keyword != ""
? "CONCAT(current_holder.prefix,current_holder.firstName,' ',current_holder.lastName) LIKE :keyword"
: "1=1",
{
keyword: `%${body.keyword}%`,
},
)
.orWhere(
body.keyword != null && body.keyword != ""
? "current_holder.position LIKE :keyword"