profilesaalry admin

This commit is contained in:
mamoss 2025-03-29 17:09:17 +07:00
parent 6e5b3a927b
commit e88e143c4c

View file

@ -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);