This commit is contained in:
AdisakKanthawilang 2025-01-24 17:24:48 +07:00
parent 5d292df148
commit d9c3c3860f
2 changed files with 13 additions and 3 deletions

View file

@ -385,10 +385,16 @@ export class SubFileController extends Controller {
@Path() group: string, @Path() group: string,
@Path() id: string, @Path() id: string,
@Path() subId: string, @Path() subId: string,
) { ) {
if (name !== "ระบบประเมิน") { if (name !== "ระบบประเมิน") {
return await s3ListFile(name, group, id); return await s3ListFile(name, group, id, subId).catch((e) => {
console.error(e);
throw new Error("เกิดข้อผิดพลาดกับระบบจัดการไฟล์");
});
} }
// if (name !== "ระบบประเมิน") {
// return await s3ListFile(name, group, id);
// }
const list = await listFile([name, group, id, subId]); const list = await listFile([name, group, id, subId]);
if (!list) throw new Error("เกิดข้อผิดพลาดกับระบบจัดการไฟล์"); if (!list) throw new Error("เกิดข้อผิดพลาดกับระบบจัดการไฟล์");
return list; return list;

View file

@ -4522,7 +4522,11 @@ export class ReportController extends Controller {
? Extension.ToThaiNumber(profile.positionSalaryAmount.toLocaleString()) ? Extension.ToThaiNumber(profile.positionSalaryAmount.toLocaleString())
: "-", : "-",
score: profile.result?Extension.ToThaiNumber(profile.result):"-", score: profile.result?Extension.ToThaiNumber(profile.result):"-",
reason: profile.remark, // reason: profile.remark,
reason:`${profile.type === "FULL" ? "หนึ่งขั้น" : ""}\n` +
`${profile.type === "FULLHAFT" ? "หนึ่งขั้นครึ่ง" : ""}\n` +
`${profile.amountSpecial > 0 ? "ได้รับค่าตอบแทนพิเศษ\n" : ""}` +
`${profile.isNext === true ? "(ได้รับเงินเดือนสูงกว่าขั้นสูงฯ)" : ""}`, // หมายเหตุ
}; };
}); });