migration

This commit is contained in:
Adisak 2025-11-07 10:05:30 +07:00
parent 2f73ae2874
commit 46ae229619
2 changed files with 125 additions and 0 deletions

View file

@ -8,6 +8,7 @@ import { ViewColumn, ViewEntity } from "typeorm";
\`profileChild\`.\`lastName\` AS \`lastName\`,
\`profileChild\`.\`citizenId\` AS \`citizenId\`,
\`profileChild\`.\`position\` AS \`position\`,
\`profile\`.\`isProbation\` AS \`isProbation\`,
CONCAT((CASE
WHEN (\`posMaster\`.\`orgChild1Id\` IS NULL) THEN \`orgRootChild\`.\`orgRootShortName\`
WHEN (\`posMaster\`.\`orgChild2Id\` IS NULL) THEN \`orgChild1Child\`.\`orgChild1ShortName\`
@ -71,6 +72,8 @@ export class viewDirectorActing {
@ViewColumn()
position: string;
@ViewColumn()
isProbation: string;
@ViewColumn()
posNo: string;
@ViewColumn()
posLevel: string;