add Officer view

This commit is contained in:
kittapath 2025-01-22 15:15:29 +07:00
parent 99c1ead9a1
commit debf24e5bc
3 changed files with 25 additions and 2 deletions

View file

@ -22,6 +22,7 @@ import { ViewColumn, ViewEntity } from "typeorm";
\`posType\`.\`posTypeName\` AS \`posType\`,
\`posExecutive\`.\`posExecutiveName\` AS \`posExecutiveName\`,
\`orgRoot\`.\`isDeputy\` AS \`isDeputy\`,
\`orgChild1\`.\`isOfficer\` AS \`isOfficer\`,
\`posMaster\`.\`orgRootId\` AS \`orgRootId\`,
\`posMaster\`.\`orgChild1Id\` AS \`orgChild1Id\`,
\`posMaster\`.\`orgChild2Id\` AS \`orgChild2Id\`,
@ -78,6 +79,8 @@ export class viewDirectorActing {
@ViewColumn()
isDeputy: boolean;
@ViewColumn()
isOfficer: boolean;
@ViewColumn()
isDirectorChild: boolean;
@ViewColumn()
orgRootId: string;