Merge branch 'develop' of github.com:Frappet/hrms-api-org into develop
This commit is contained in:
commit
124d79dbee
1 changed files with 51 additions and 1 deletions
|
|
@ -176,6 +176,56 @@ export class ProfileSalaryTempController extends Controller {
|
||||||
searchKeyword != null && searchKeyword != ""
|
searchKeyword != null && searchKeyword != ""
|
||||||
? `posLevel.posLevelName like '%${searchKeyword}%'`
|
? `posLevel.posLevelName like '%${searchKeyword}%'`
|
||||||
: "1=1",
|
: "1=1",
|
||||||
|
)
|
||||||
|
.orWhere(
|
||||||
|
searchKeyword != null && searchKeyword != ""
|
||||||
|
? `CONCAT(
|
||||||
|
orgRoot.orgRootShortName,
|
||||||
|
current_holders.posMasterNo
|
||||||
|
) like '%${searchKeyword}%'`
|
||||||
|
: "1=1",
|
||||||
|
)
|
||||||
|
.orWhere(
|
||||||
|
searchKeyword != null && searchKeyword != ""
|
||||||
|
? `CONCAT(
|
||||||
|
orgRoot.orgRootShortName,
|
||||||
|
orgChild1.orgChild1ShortName,
|
||||||
|
current_holders.posMasterNo
|
||||||
|
) like '%${searchKeyword}%'`
|
||||||
|
: "1=1",
|
||||||
|
)
|
||||||
|
.orWhere(
|
||||||
|
searchKeyword != null && searchKeyword != ""
|
||||||
|
? `CONCAT(
|
||||||
|
orgRoot.orgRootShortName,
|
||||||
|
orgChild1.orgChild1ShortName,
|
||||||
|
orgChild2.orgChild2ShortName,
|
||||||
|
current_holders.posMasterNo
|
||||||
|
) like '%${searchKeyword}%'`
|
||||||
|
: "1=1",
|
||||||
|
)
|
||||||
|
.orWhere(
|
||||||
|
searchKeyword != null && searchKeyword != ""
|
||||||
|
? `CONCAT(
|
||||||
|
orgRoot.orgRootShortName,
|
||||||
|
orgChild1.orgChild1ShortName,
|
||||||
|
orgChild2.orgChild2ShortName,
|
||||||
|
orgChild3.orgChild3ShortName,
|
||||||
|
current_holders.posMasterNo
|
||||||
|
) like '%${searchKeyword}%'`
|
||||||
|
: "1=1",
|
||||||
|
)
|
||||||
|
.orWhere(
|
||||||
|
searchKeyword != null && searchKeyword != ""
|
||||||
|
? `CONCAT(
|
||||||
|
orgRoot.orgRootShortName,
|
||||||
|
orgChild1.orgChild1ShortName,
|
||||||
|
orgChild2.orgChild2ShortName,
|
||||||
|
orgChild3.orgChild3ShortName,
|
||||||
|
orgChild4.orgChild4ShortName,
|
||||||
|
current_holders.posMasterNo
|
||||||
|
) like '%${searchKeyword}%'`
|
||||||
|
: "1=1",
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
@ -201,7 +251,7 @@ export class ProfileSalaryTempController extends Controller {
|
||||||
.skip((page - 1) * pageSize)
|
.skip((page - 1) * pageSize)
|
||||||
.take(pageSize)
|
.take(pageSize)
|
||||||
.getManyAndCount();
|
.getManyAndCount();
|
||||||
|
|
||||||
const data = await Promise.all(
|
const data = await Promise.all(
|
||||||
record.map((_data) => {
|
record.map((_data) => {
|
||||||
const posExecutive =
|
const posExecutive =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue