fixing result
This commit is contained in:
parent
be58ab8840
commit
321345f65a
1 changed files with 6 additions and 1 deletions
|
|
@ -236,12 +236,17 @@ export class EvaluateResultController extends Controller {
|
|||
if (!experimenteeData) {
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลบุคคล");
|
||||
}
|
||||
|
||||
const splitOc = await experimenteeData.organization.split("/");
|
||||
const splitOcAmount = await splitOc.length;
|
||||
const experimentee = await {
|
||||
...experimenteeData,
|
||||
name:
|
||||
experimenteeData.prefixName + experimenteeData.firstName + " " + experimenteeData.lastName,
|
||||
Oc: experimenteeData.organization,
|
||||
PositionLevel: experimenteeData.positionName + experimenteeData.positionLevelName,
|
||||
Department: splitOcAmount > 2 ? splitOc[splitOcAmount - 3] : "-",
|
||||
OrganizationOrganization: splitOcAmount > 1 ? splitOc[splitOcAmount - 2] : "-",
|
||||
Oc: experimenteeData.orgRootName,
|
||||
};
|
||||
|
||||
const directorData = await this.assignDirectorRepository.find({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue