fix api
This commit is contained in:
parent
4ece5e8635
commit
7acf30d9a5
1 changed files with 5 additions and 0 deletions
|
|
@ -230,6 +230,7 @@ export class DevelopmentScholarshipController extends Controller {
|
|||
@Get("{id}")
|
||||
async GetDevelopemtScholarshipById(@Path() id: string) {
|
||||
const getDevelopment = await this.developmentScholarshipRepository.findOne({
|
||||
relations: ["posLevel", "posType","posLevelguarantor","posTypeguarantor"],
|
||||
where: { id: id },
|
||||
});
|
||||
if (!getDevelopment) {
|
||||
|
|
@ -244,7 +245,9 @@ export class DevelopmentScholarshipController extends Controller {
|
|||
position: getDevelopment.position ? getDevelopment.position : null,
|
||||
posExecutive: getDevelopment.posExecutive ? getDevelopment.posExecutive : null,
|
||||
posLevelId: getDevelopment.posLevelId ? getDevelopment.posLevelId : null,
|
||||
posLevelName: getDevelopment.posLevel.posLevelName ? getDevelopment.posLevel.posLevelName : null,
|
||||
posTypeId: getDevelopment.posTypeId ? getDevelopment.posTypeId : null,
|
||||
posTypeName: getDevelopment.posType.posTypeName ? getDevelopment.posType.posTypeName : null,
|
||||
guarantorRank: getDevelopment.guarantorRank ? getDevelopment.guarantorRank : null,
|
||||
guarantorPrefix: getDevelopment.guarantorPrefix ? getDevelopment.guarantorPrefix : null,
|
||||
guarantorFirstName: getDevelopment.guarantorFirstName ? getDevelopment.guarantorFirstName : null,
|
||||
|
|
@ -253,7 +256,9 @@ export class DevelopmentScholarshipController extends Controller {
|
|||
guarantorPosition: getDevelopment.guarantorPosition ? getDevelopment.guarantorPosition : null,
|
||||
guarantorPosExecutive: getDevelopment.guarantorPosExecutive ? getDevelopment.guarantorPosExecutive : null,
|
||||
posLevelguarantorId: getDevelopment.posLevelguarantorId ? getDevelopment.posLevelguarantorId : null,
|
||||
posLevelGuarantorName: getDevelopment.posLevelguarantor.posLevelName ? getDevelopment.posLevelguarantor.posLevelName : null,
|
||||
posTypeguarantorId: getDevelopment.posTypeguarantorId ? getDevelopment.posTypeguarantorId : null,
|
||||
posTypeGuarantorName: getDevelopment.posTypeguarantor.posTypeName ? getDevelopment.posTypeguarantor.posTypeName : null,
|
||||
scholarshipYear: getDevelopment.scholarshipYear ? getDevelopment.scholarshipYear : null,
|
||||
budgetSource: getDevelopment.budgetSource ? getDevelopment.budgetSource : null,
|
||||
budgetApprove: getDevelopment.budgetApprove ? getDevelopment.budgetApprove : null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue