map DEV_015
This commit is contained in:
parent
14f5a082ca
commit
f00c0d289e
1 changed files with 52 additions and 2 deletions
|
|
@ -229,7 +229,57 @@ export class DevelopmentScholarshipController extends Controller {
|
||||||
if (!getDevelopment) {
|
if (!getDevelopment) {
|
||||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลทุนการศึกษา/ฝึกอบรมนี้");
|
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลทุนการศึกษา/ฝึกอบรมนี้");
|
||||||
}
|
}
|
||||||
|
const formattedData = {
|
||||||
return new HttpSuccess(getDevelopment);
|
rank: getDevelopment.rank ? getDevelopment.rank : null,
|
||||||
|
prefix: getDevelopment.prefix ? getDevelopment.prefix : null,
|
||||||
|
firstName: getDevelopment.firstName ? getDevelopment.firstName : null,
|
||||||
|
lastName: getDevelopment.lastName ? getDevelopment.lastName : null,
|
||||||
|
citizenId: getDevelopment.citizenId ? getDevelopment.citizenId : null,
|
||||||
|
position: getDevelopment.position ? getDevelopment.position : null,
|
||||||
|
posExecutive: getDevelopment.posExecutive ? getDevelopment.posExecutive : null,
|
||||||
|
posLevelId: getDevelopment.posLevelId ? getDevelopment.posLevelId : null,
|
||||||
|
posTypeId: getDevelopment.posTypeId ? getDevelopment.posTypeId : null,
|
||||||
|
guarantorRank: getDevelopment.guarantorRank ? getDevelopment.guarantorRank : null,
|
||||||
|
guarantorPrefix: getDevelopment.guarantorPrefix ? getDevelopment.guarantorPrefix : null,
|
||||||
|
guarantorFirstName: getDevelopment.guarantorFirstName ? getDevelopment.guarantorFirstName : null,
|
||||||
|
guarantorLastName: getDevelopment.guarantorLastName ? getDevelopment.guarantorLastName : null,
|
||||||
|
guarantorCitizenId: getDevelopment.guarantorCitizenId ? getDevelopment.guarantorCitizenId : null,
|
||||||
|
guarantorPosition: getDevelopment.guarantorPosition ? getDevelopment.guarantorPosition : null,
|
||||||
|
guarantorPosExecutive: getDevelopment.guarantorPosExecutive ? getDevelopment.guarantorPosExecutive : null,
|
||||||
|
posLevelguarantorId: getDevelopment.posLevelguarantorId ? getDevelopment.posLevelguarantorId : null,
|
||||||
|
posTypeguarantorId: getDevelopment.posTypeguarantorId ? getDevelopment.posTypeguarantorId : null,
|
||||||
|
scholarshipYear: getDevelopment.scholarshipYear ? getDevelopment.scholarshipYear : null,
|
||||||
|
budgetSource: getDevelopment.budgetSource ? getDevelopment.budgetSource : null,
|
||||||
|
budgetApprove: getDevelopment.budgetApprove ? getDevelopment.budgetApprove : null,
|
||||||
|
bookNo: getDevelopment.bookNo ? getDevelopment.bookNo : null,
|
||||||
|
bookNoDate: getDevelopment.bookNoDate ? getDevelopment.bookNoDate : null,
|
||||||
|
bookApproveDate: getDevelopment.bookApproveDate ? getDevelopment.bookApproveDate : null,
|
||||||
|
useOfficialTime: getDevelopment.useOfficialTime ? getDevelopment.useOfficialTime : null,
|
||||||
|
changeDetail: getDevelopment.changeDetail ? getDevelopment.changeDetail : null,
|
||||||
|
scholarshipType: getDevelopment.scholarshipType ? getDevelopment.scholarshipType : null,
|
||||||
|
fundType: getDevelopment.fundType ? getDevelopment.fundType : null,
|
||||||
|
contractNo: getDevelopment.contractNo ? getDevelopment.contractNo : null,
|
||||||
|
contractDate: getDevelopment.contractDate ? getDevelopment.contractDate : null,
|
||||||
|
reportBackNo: getDevelopment.reportBackNo ? getDevelopment.reportBackNo : null,
|
||||||
|
reportBackNoDate: getDevelopment.reportBackNoDate ? getDevelopment.reportBackNoDate : null,
|
||||||
|
reportBackDate: getDevelopment.reportBackDate ? getDevelopment.reportBackDate : null,
|
||||||
|
degreeLevel: getDevelopment.degreeLevel ? getDevelopment.degreeLevel : null,
|
||||||
|
course: getDevelopment.course ? getDevelopment.course : null,
|
||||||
|
field: getDevelopment.field ? getDevelopment.field : null,
|
||||||
|
faculty: getDevelopment.faculty ? getDevelopment.faculty : null,
|
||||||
|
educationalInstitution: getDevelopment.educationalInstitution ? getDevelopment.educationalInstitution : null,
|
||||||
|
startDate: getDevelopment.startDate ? getDevelopment.startDate : null,
|
||||||
|
endDate: getDevelopment.endDate ? getDevelopment.endDate : null,
|
||||||
|
studyPlace: getDevelopment.studyPlace ? getDevelopment.studyPlace : null,
|
||||||
|
studyTopic: getDevelopment.studyTopic ? getDevelopment.studyTopic : null,
|
||||||
|
studyStartDate: getDevelopment.studyStartDate ? getDevelopment.studyStartDate : null,
|
||||||
|
studyEndDate: getDevelopment.studyEndDate ? getDevelopment.studyEndDate : null,
|
||||||
|
studyCountry: getDevelopment.studyCountry ? getDevelopment.studyCountry : null,
|
||||||
|
studyAbroadTopic: getDevelopment.studyAbroadTopic ? getDevelopment.studyAbroadTopic : null,
|
||||||
|
studyAbroadStartDate: getDevelopment.studyAbroadStartDate ? getDevelopment.studyAbroadStartDate : null,
|
||||||
|
studyAbroadEndDate: getDevelopment.studyAbroadEndDate ? getDevelopment.studyAbroadEndDate : null,
|
||||||
|
totalPeriod: getDevelopment.totalPeriod ? getDevelopment.totalPeriod : null
|
||||||
|
};
|
||||||
|
return new HttpSuccess(formattedData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue