diff --git a/src/entities/view/viewRegistryOfficer.ts b/src/entities/view/viewRegistryOfficer.ts index 668d0bcb..1ddbd88a 100644 --- a/src/entities/view/viewRegistryOfficer.ts +++ b/src/entities/view/viewRegistryOfficer.ts @@ -116,6 +116,14 @@ import { ViewColumn, ViewEntity } from "typeorm"; vctlo.Days, vctlo.profileId FROM tenureLevelOfficer vctlo + ), + PositionExecutiveDate AS ( + SELECT + vcteo.Years, + vcteo.Months, + vcteo.Days, + vcteo.profileId + FROM tenurePositionExecutiveOfficer vcteo ) SELECT p.id as profileId, @@ -168,7 +176,10 @@ import { ViewColumn, ViewEntity } from "typeorm"; vcto.Days, vctlo.Years AS levelYears, vctlo.Months AS levelMonths, - vctlo.Days AS levelDays + vctlo.Days AS levelDays, + vcteo.Years AS posExecutiveYears, + vcteo.Months AS posExecutiveMonths, + vcteo.Days AS posExecutiveDays FROM profile p LEFT JOIN posLevel ON p.posLevelId = posLevel.id LEFT JOIN posType ON p.posTypeId = posType.id @@ -179,6 +190,7 @@ import { ViewColumn, ViewEntity } from "typeorm"; LEFT JOIN Fields fies ON p.id = fies.profileId LEFT JOIN PositionDate vcto ON p.id = vcto.profileId LEFT JOIN PositionLevelDate vctlo ON p.id = vctlo.profileId + LEFT JOIN PositionExecutiveDate vcteo ON p.id = vcteo.profileId `, }) export class viewRegistryOfficer {