no message

This commit is contained in:
Bright 2025-02-27 18:24:11 +07:00
parent 5287e4f286
commit 84af3c725e
4 changed files with 314 additions and 1 deletions

View file

@ -97,12 +97,17 @@ import { ViewColumn, ViewEntity } from "typeorm";
p.dateRetireLaw,
p.birthdate,
ed.degree,
TIMESTAMPDIFF(YEAR, p.birthdate, CURDATE()) AS age
TIMESTAMPDIFF(YEAR, p.birthdate, CURDATE()) AS age,
vcto.Years,
vcto.Months,
vcto.Days
FROM profile p
LEFT JOIN posLevel ON p.posLevelId = posLevel.id
LEFT JOIN posType ON p.posTypeId = posType.id
LEFT JOIN PosMaster pm ON p.id = pm.current_holderId AND pm.pm_number = 1
LEFT JOIN Education ed ON p.id = ed.profileId AND ed.ed_number = 1
Inner Join view_current_tenure_officer vcto On p.id = vcto.profileId
Where vcto.orderNumber Is Null
`,
})
export class viewRegistryOfficer {
@ -207,4 +212,23 @@ export class viewRegistryOfficer {
@ViewColumn()
age: number;
@ViewColumn()
Years: number;
@ViewColumn()
Months: number;
@ViewColumn()
Days: number;
// @ViewColumn()
// posExecutiveYears: number;
// @ViewColumn()
// posExecutiveMonths: number;
// @ViewColumn()
// posExecutiveDays: number;
}