fix
This commit is contained in:
parent
6cf0aa117c
commit
25fc86c8a8
1 changed files with 22 additions and 1 deletions
|
|
@ -161,6 +161,8 @@ export class ReoportController {
|
||||||
.leftJoin("evaluation.salaries", "salaries")
|
.leftJoin("evaluation.salaries", "salaries")
|
||||||
.leftJoin("evaluation.training", "training")
|
.leftJoin("evaluation.training", "training")
|
||||||
.leftJoin("evaluation.assessment", "assessment")
|
.leftJoin("evaluation.assessment", "assessment")
|
||||||
|
.leftJoin("evaluation.portfolios", "portfolios")
|
||||||
|
.leftJoin("evaluation.performances", "performances")
|
||||||
.where("evaluation.id = :id", { id })
|
.where("evaluation.id = :id", { id })
|
||||||
.select([
|
.select([
|
||||||
"evaluation.id",
|
"evaluation.id",
|
||||||
|
|
@ -269,6 +271,14 @@ export class ReoportController {
|
||||||
"assessment.point2",
|
"assessment.point2",
|
||||||
"assessment.pointSumTotal",
|
"assessment.pointSumTotal",
|
||||||
"assessment.pointSum",
|
"assessment.pointSum",
|
||||||
|
|
||||||
|
"portfolios.name",
|
||||||
|
"portfolios.detail",
|
||||||
|
|
||||||
|
"performances.year",
|
||||||
|
"performances.type",
|
||||||
|
"performances.subject",
|
||||||
|
"performances.evaluationResult",
|
||||||
])
|
])
|
||||||
.orderBy("salaries.commandDateAffect", "DESC")
|
.orderBy("salaries.commandDateAffect", "DESC")
|
||||||
.getOne();
|
.getOne();
|
||||||
|
|
@ -353,7 +363,7 @@ export class ReoportController {
|
||||||
detailAnnounceStep5Footer: evaluation.detailAnnounceStep5Footer,
|
detailAnnounceStep5Footer: evaluation.detailAnnounceStep5Footer,
|
||||||
positionAreaWithSym: evaluation.positionArea?`(${Extension.ToThaiNumber(evaluation.positionArea)})` : "",
|
positionAreaWithSym: evaluation.positionArea?`(${Extension.ToThaiNumber(evaluation.positionArea)})` : "",
|
||||||
posExecutive: evaluation.posExecutive,
|
posExecutive: evaluation.posExecutive,
|
||||||
posFull: (evaluation.position ? `${evaluation.position}` : "") + (evaluation.posExecutive ? " " + `${evaluation.posExecutive}` : "") + (evaluation.positionLevel ? " " + `${evaluation.positionLevel}` : ""),
|
posFull: (evaluation.position ? `${evaluation.position}` : "") + (evaluation.positionLevel ? `${evaluation.positionLevel}` : "") + (evaluation.posExecutive ? " " + `${evaluation.posExecutive}` : "") ,
|
||||||
birthDate:
|
birthDate:
|
||||||
evaluation.birthDate != null && evaluation.birthDate != ""
|
evaluation.birthDate != null && evaluation.birthDate != ""
|
||||||
? Extension.ToThaiNumber(
|
? Extension.ToThaiNumber(
|
||||||
|
|
@ -499,6 +509,16 @@ export class ReoportController {
|
||||||
pointSumTotal: assessment.pointSumTotal,
|
pointSumTotal: assessment.pointSumTotal,
|
||||||
pointSum: assessment.pointSum,
|
pointSum: assessment.pointSum,
|
||||||
})),
|
})),
|
||||||
|
portfolios: evaluation.portfolios.map((portfolio) => ({
|
||||||
|
name: portfolio.name,
|
||||||
|
detail: portfolio.detail,
|
||||||
|
})),
|
||||||
|
performances: evaluation.performances.map((performance) => ({
|
||||||
|
year: performance.year ? Extension.ToThaiNumber(performance.year.toString()) : "-",
|
||||||
|
type: performance.type,
|
||||||
|
subject: performance.subject,
|
||||||
|
evaluationResult: performance.evaluationResult,
|
||||||
|
})),
|
||||||
commanderFullname: commanderFullname ? commanderFullname : "-",
|
commanderFullname: commanderFullname ? commanderFullname : "-",
|
||||||
commanderPosition: commanderPosition ? commanderPosition : "-",
|
commanderPosition: commanderPosition ? commanderPosition : "-",
|
||||||
commanderRootName: commanderRootName ? commanderRootName : "-",
|
commanderRootName: commanderRootName ? commanderRootName : "-",
|
||||||
|
|
@ -507,6 +527,7 @@ export class ReoportController {
|
||||||
commanderAbovePosition: commanderAbovePosition ? commanderAbovePosition : "-",
|
commanderAbovePosition: commanderAbovePosition ? commanderAbovePosition : "-",
|
||||||
commanderAboveRootName: commanderAboveRootName ? commanderAboveRootName : "-",
|
commanderAboveRootName: commanderAboveRootName ? commanderAboveRootName : "-",
|
||||||
commanderAboveOrg: commanderAboveOrg ? commanderAboveOrg : "-",
|
commanderAboveOrg: commanderAboveOrg ? commanderAboveOrg : "-",
|
||||||
|
// commanderPositionSign: `${commanderPosition} สำนักงานการเจ้าหน้าที่ ${commanderRootName}` + `\n` + `${commanderAbovePosition} ${commanderAboveRootName}`,
|
||||||
years: years,
|
years: years,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue