no message
This commit is contained in:
parent
ac4d893f96
commit
3b9002f505
3 changed files with 227 additions and 8 deletions
|
|
@ -75,6 +75,16 @@ import { ViewColumn, ViewEntity } from "typeorm";
|
|||
ROW_NUMBER() OVER (PARTITION BY vctoExc.profileId) AS vctoExc_number
|
||||
FROM view_current_tenure_exc_officer vctoExc
|
||||
WHERE vctoExc.orderNumber Is Null
|
||||
),
|
||||
PositionLevelDate AS (
|
||||
SELECT
|
||||
vctlo.Years,
|
||||
vctlo.Months,
|
||||
vctlo.Days,
|
||||
vctlo.profileId,
|
||||
ROW_NUMBER() OVER (PARTITION BY vctlo.profileId) AS vctlo_number
|
||||
FROM view_current_tenure_level_officer vctlo
|
||||
WHERE vctlo.orderNumber Is Null
|
||||
)
|
||||
SELECT
|
||||
p.id as profileId,
|
||||
|
|
@ -123,7 +133,10 @@ import { ViewColumn, ViewEntity } from "typeorm";
|
|||
vcto.Days,
|
||||
vctoExc.Years AS posExecutiveYears,
|
||||
vctoExc.Months AS posExecutiveMonths,
|
||||
vctoExc.Days AS posExecutiveDays
|
||||
vctoExc.Days AS posExecutiveDays,
|
||||
vctlo.Years AS levelYears,
|
||||
vctlo.Months AS levelMonths,
|
||||
vctlo.Days AS levelDays
|
||||
FROM profile p
|
||||
LEFT JOIN posLevel ON p.posLevelId = posLevel.id
|
||||
LEFT JOIN posType ON p.posTypeId = posType.id
|
||||
|
|
@ -131,6 +144,7 @@ import { ViewColumn, ViewEntity } from "typeorm";
|
|||
LEFT JOIN Education ed ON p.id = ed.profileId AND ed.ed_number = 1
|
||||
LEFT JOIN PositionDate vcto ON p.id = vcto.profileId AND vcto.vcto_number = 1
|
||||
LEFT JOIN PositionExcDate vctoExc ON p.id = vctoExc.profileId AND vctoExc.vctoExc_number = 1
|
||||
LEFT JOIN PositionLevelDate vctlo ON p.id = vctlo.profileId AND vctlo.vctlo_number = 1
|
||||
`,
|
||||
})
|
||||
export class viewRegistryOfficer {
|
||||
|
|
@ -253,4 +267,13 @@ export class viewRegistryOfficer {
|
|||
|
||||
@ViewColumn()
|
||||
posExecutiveDays: number;
|
||||
|
||||
@ViewColumn()
|
||||
levelYears: number;
|
||||
|
||||
@ViewColumn()
|
||||
levelMonths: number;
|
||||
|
||||
@ViewColumn()
|
||||
levelDays: number;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue