From e88e143c4c3cc75cda9c14b32e589d37261b289e Mon Sep 17 00:00:00 2001 From: mamoss <> Date: Sat, 29 Mar 2025 17:09:17 +0700 Subject: [PATCH] profilesaalry admin --- src/controllers/ProfileSalaryController.ts | 23 +--------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/controllers/ProfileSalaryController.ts b/src/controllers/ProfileSalaryController.ts index 1d94e994..cc30a765 100644 --- a/src/controllers/ProfileSalaryController.ts +++ b/src/controllers/ProfileSalaryController.ts @@ -565,28 +565,7 @@ export class ProfileSalaryController extends Controller { let _workflow = await new permission().Workflow(req, profileId, "SYS_SALARY_OFFICER"); if (_workflow == false) await new permission().PermissionGet(req, "SYS_SALARY_OFFICER"); const record = await this.salaryRepo.find({ - where: [ - { - profileId: profileId, - commandCode: In([ - "0", - "9", - "1", - "2", - "3", - "4", - "8", - "10", - "11", - "12", - "13", - "14", - "15", - "16", - ]), - }, - { profileId: profileId, commandCode: IsNull() }, - ], + where: { profileId: profileId, commandCode: In(["5", "6", "7"]) }, order: { order: "ASC" }, }); return new HttpSuccess(record);