no message
This commit is contained in:
parent
b4f11cef1f
commit
80a245a033
4 changed files with 358 additions and 91 deletions
|
|
@ -19,7 +19,13 @@ import { ViewColumn, ViewEntity } from "typeorm";
|
|||
\`bma_ehr_organization_demo\`.\`posMaster\`.\`isDirector\` AS \`isDirector\`,
|
||||
\`bma_ehr_organization_demo\`.\`posLevel\`.\`posLevelName\` AS \`posLevel\`,
|
||||
\`bma_ehr_organization_demo\`.\`posType\`.\`posTypeName\` AS \`posType\`,
|
||||
NULL AS \`posExecutiveName\`,
|
||||
\`bma_ehr_organization_demo\`.\`orgRoot\`.\`isDeputy\` AS \`isDeputy\`,
|
||||
\`bma_ehr_organization_demo\`.\`posMaster\`.\`orgRootId\` AS \`orgRootId\`,
|
||||
\`bma_ehr_organization_demo\`.\`posMaster\`.\`orgChild1Id\` AS \`orgChild1Id\`,
|
||||
\`bma_ehr_organization_demo\`.\`posMaster\`.\`orgChild2Id\` AS \`orgChild2Id\`,
|
||||
\`bma_ehr_organization_demo\`.\`posMaster\`.\`orgChild3Id\` AS \`orgChild3Id\`,
|
||||
\`bma_ehr_organization_demo\`.\`posMaster\`.\`orgChild4Id\` AS \`orgChild4Id\`,
|
||||
CONCAT(\`bma_ehr_organization_demo\`.\`posMaster\`.\`id\`,
|
||||
\`bma_ehr_organization_demo\`.\`profile\`.\`id\`) AS \`key\`,
|
||||
NULL AS \`actFullNameId\`,
|
||||
|
|
@ -55,10 +61,22 @@ export class viewDirector {
|
|||
@ViewColumn()
|
||||
posType: string;
|
||||
@ViewColumn()
|
||||
posExecutiveName: string;
|
||||
@ViewColumn()
|
||||
isDirector: boolean;
|
||||
@ViewColumn()
|
||||
isDeputy: boolean;
|
||||
@ViewColumn()
|
||||
orgRootId: string;
|
||||
@ViewColumn()
|
||||
orgChild1Id: string;
|
||||
@ViewColumn()
|
||||
orgChild2Id: string;
|
||||
@ViewColumn()
|
||||
orgChild3Id: string;
|
||||
@ViewColumn()
|
||||
orgChild4Id: string;
|
||||
@ViewColumn()
|
||||
actFullNameId: string;
|
||||
@ViewColumn()
|
||||
actFullName: string;
|
||||
|
|
|
|||
|
|
@ -17,11 +17,17 @@ import { ViewColumn, ViewEntity } from "typeorm";
|
|||
END),
|
||||
\`bma_ehr_organization_demo\`.\`posMaster\`.\`posMasterNo\`) AS \`posNo\`,
|
||||
\`posMasterChild\`.\`isDirector\` AS \`isDirectorChild\`,
|
||||
\`posMaster\`.\`isDirector\` AS \`isDirector\`,
|
||||
\`bma_ehr_organization_demo\`.\`posMaster\`.\`isDirector\` AS \`isDirector\`,
|
||||
\`bma_ehr_organization_demo\`.\`posLevel\`.\`posLevelName\` AS \`posLevel\`,
|
||||
\`bma_ehr_organization_demo\`.\`posType\`.\`posTypeName\` AS \`posType\`,
|
||||
NULL AS \`posExecutiveName\`,
|
||||
\`bma_ehr_organization_demo\`.\`orgRoot\`.\`isDeputy\` AS \`isDeputy\`,
|
||||
\`bma_ehr_organization_demo\`.\`posMaster\`.\`orgRootId\` AS \`orgRootId\`,
|
||||
CONCAT(\`posMaster\`.\`id\`,
|
||||
\`bma_ehr_organization_demo\`.\`posMaster\`.\`orgChild1Id\` AS \`orgChild1Id\`,
|
||||
\`bma_ehr_organization_demo\`.\`posMaster\`.\`orgChild2Id\` AS \`orgChild2Id\`,
|
||||
\`bma_ehr_organization_demo\`.\`posMaster\`.\`orgChild3Id\` AS \`orgChild3Id\`,
|
||||
\`bma_ehr_organization_demo\`.\`posMaster\`.\`orgChild4Id\` AS \`orgChild4Id\`,
|
||||
CONCAT(\`bma_ehr_organization_demo\`.\`posMaster\`.\`id\`,
|
||||
\`profileChild\`.\`id\`) AS \`key\`,
|
||||
\`bma_ehr_organization_demo\`.\`profile\`.\`id\` AS \`actFullNameId\`,
|
||||
CONCAT(\`bma_ehr_organization_demo\`.\`profile\`.\`prefix\`,
|
||||
|
|
@ -29,7 +35,7 @@ import { ViewColumn, ViewEntity } from "typeorm";
|
|||
' ',
|
||||
\`bma_ehr_organization_demo\`.\`profile\`.\`lastName\`) AS \`actFullName\`
|
||||
FROM
|
||||
(((((((((((\`bma_ehr_organization_demo\`.\`posMasterAct\`
|
||||
((((((((((((\`bma_ehr_organization_demo\`.\`posMasterAct\`
|
||||
JOIN \`bma_ehr_organization_demo\`.\`posMaster\` \`posMasterChild\` ON ((\`bma_ehr_organization_demo\`.\`posMasterAct\`.\`posMasterChildId\` = \`posMasterChild\`.\`id\`)))
|
||||
JOIN \`bma_ehr_organization_demo\`.\`profile\` \`profileChild\` ON ((\`posMasterChild\`.\`current_holderId\` = \`profileChild\`.\`id\`)))
|
||||
LEFT JOIN \`bma_ehr_organization_demo\`.\`orgRoot\` \`orgRootChild\` ON ((\`posMasterChild\`.\`orgRootId\` = \`orgRootChild\`.\`id\`)))
|
||||
|
|
@ -40,6 +46,7 @@ import { ViewColumn, ViewEntity } from "typeorm";
|
|||
JOIN \`bma_ehr_organization_demo\`.\`posLevel\` ON ((\`profileChild\`.\`posLevelId\` = \`bma_ehr_organization_demo\`.\`posLevel\`.\`id\`)))
|
||||
JOIN \`bma_ehr_organization_demo\`.\`posType\` ON ((\`profileChild\`.\`posTypeId\` = \`bma_ehr_organization_demo\`.\`posType\`.\`id\`)))
|
||||
JOIN \`bma_ehr_organization_demo\`.\`posMaster\` ON ((\`bma_ehr_organization_demo\`.\`posMasterAct\`.\`posMasterId\` = \`bma_ehr_organization_demo\`.\`posMaster\`.\`id\`)))
|
||||
LEFT JOIN \`bma_ehr_organization_demo\`.\`orgRoot\` ON ((\`bma_ehr_organization_demo\`.\`posMaster\`.\`orgRootId\` = \`bma_ehr_organization_demo\`.\`orgRoot\`.\`id\`)))
|
||||
JOIN \`bma_ehr_organization_demo\`.\`profile\` ON ((\`bma_ehr_organization_demo\`.\`posMaster\`.\`current_holderId\` = \`bma_ehr_organization_demo\`.\`profile\`.\`id\`)))`,
|
||||
})
|
||||
export class viewDirectorActing {
|
||||
|
|
@ -62,12 +69,24 @@ export class viewDirectorActing {
|
|||
@ViewColumn()
|
||||
posType: string;
|
||||
@ViewColumn()
|
||||
posExecutiveName: string;
|
||||
@ViewColumn()
|
||||
isDirector: boolean;
|
||||
@ViewColumn()
|
||||
isDeputy: boolean;
|
||||
@ViewColumn()
|
||||
isDirectorChild: boolean;
|
||||
@ViewColumn()
|
||||
orgRootId: string;
|
||||
@ViewColumn()
|
||||
orgChild1Id: string;
|
||||
@ViewColumn()
|
||||
orgChild2Id: string;
|
||||
@ViewColumn()
|
||||
orgChild3Id: string;
|
||||
@ViewColumn()
|
||||
orgChild4Id: string;
|
||||
@ViewColumn()
|
||||
actFullNameId: string;
|
||||
@ViewColumn()
|
||||
actFullName: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue