fix eva ประวัติการรับราชการ

This commit is contained in:
AdisakKanthawilang 2025-04-08 12:10:04 +07:00
parent 0c63850934
commit bdaf8fbce9

View file

@ -232,7 +232,26 @@ export class ProfileSalaryController extends Controller {
throw new HttpError(HttpStatus.BAD_REQUEST, "ไม่พบ profile ดังกล่าว");
}
const record = await this.salaryRepo.find({
where: { profileId: profile.id, commandCode: In(["5", "6", "7"]) },
where: {
profileId: profile.id,
// commandCode: In(["5", "6", "7"])
commandCode: In([
"0",
"9",
"1",
"2",
"3",
"4",
"8",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
]),
},
order: { order: "ASC" },
});
return new HttpSuccess(record);