fix
This commit is contained in:
parent
5d292df148
commit
d9c3c3860f
2 changed files with 13 additions and 3 deletions
|
|
@ -387,8 +387,14 @@ export class SubFileController extends Controller {
|
||||||
@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;
|
||||||
|
|
|
||||||
|
|
@ -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 ? "(ได้รับเงินเดือนสูงกว่าขั้นสูงฯ)" : ""}`, // หมายเหตุ
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue