ปรับ report

This commit is contained in:
AdisakKanthawilang 2025-04-24 17:41:48 +07:00
parent eb7eddabf6
commit a5e58d4552
2 changed files with 6 additions and 1 deletions

View file

@ -508,9 +508,10 @@ export class EvaluationController {
if (!evaluation) {
return `not found data`;
}
let _code = requestBody.type == "EXPERT" ? "ST05-1" : requestBody.type == "EXPERTISE" ? "ST05-1" : requestBody.type == "SPECIAL_EXPERT" ? "ST05-2" : "ST05-1";
const announceTemplate5 = await this.announceTemplateRepository.findOne({
where:{
code : "ST05-1"
code : _code
},
select: ["detailBody","detailFooter"]
})