sort salary admin
This commit is contained in:
parent
013792c2ec
commit
6e5b3a927b
1 changed files with 22 additions and 1 deletions
|
|
@ -565,7 +565,28 @@ export class ProfileSalaryController extends Controller {
|
||||||
let _workflow = await new permission().Workflow(req, profileId, "SYS_SALARY_OFFICER");
|
let _workflow = await new permission().Workflow(req, profileId, "SYS_SALARY_OFFICER");
|
||||||
if (_workflow == false) await new permission().PermissionGet(req, "SYS_SALARY_OFFICER");
|
if (_workflow == false) await new permission().PermissionGet(req, "SYS_SALARY_OFFICER");
|
||||||
const record = await this.salaryRepo.find({
|
const record = await this.salaryRepo.find({
|
||||||
where: { profileId: profileId },
|
where: [
|
||||||
|
{
|
||||||
|
profileId: profileId,
|
||||||
|
commandCode: In([
|
||||||
|
"0",
|
||||||
|
"9",
|
||||||
|
"1",
|
||||||
|
"2",
|
||||||
|
"3",
|
||||||
|
"4",
|
||||||
|
"8",
|
||||||
|
"10",
|
||||||
|
"11",
|
||||||
|
"12",
|
||||||
|
"13",
|
||||||
|
"14",
|
||||||
|
"15",
|
||||||
|
"16",
|
||||||
|
]),
|
||||||
|
},
|
||||||
|
{ profileId: profileId, commandCode: IsNull() },
|
||||||
|
],
|
||||||
order: { order: "ASC" },
|
order: { order: "ASC" },
|
||||||
});
|
});
|
||||||
return new HttpSuccess(record);
|
return new HttpSuccess(record);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue