fix issue #863
This commit is contained in:
parent
40e8d849c2
commit
1057db283b
1 changed files with 11 additions and 5 deletions
|
|
@ -27,11 +27,17 @@ import { ViewColumn, ViewEntity } from "typeorm";
|
||||||
\`posMaster\`.\`orgChild3Id\` AS \`orgChild3Id\`,
|
\`posMaster\`.\`orgChild3Id\` AS \`orgChild3Id\`,
|
||||||
\`posMaster\`.\`orgChild4Id\` AS \`orgChild4Id\`,
|
\`posMaster\`.\`orgChild4Id\` AS \`orgChild4Id\`,
|
||||||
CONCAT(\`posMaster\`.\`id\`, \`profile\`.\`id\`) AS \`key\`,
|
CONCAT(\`posMaster\`.\`id\`, \`profile\`.\`id\`) AS \`key\`,
|
||||||
\`profile\`.\`id\` AS \`actFullNameId\`,
|
(SELECT \`profileChild\`.\`id\`
|
||||||
CONCAT(\`profile\`.\`prefix\`,
|
FROM \`posMasterAct\`
|
||||||
\`profile\`.\`firstName\`,
|
JOIN \`posMaster\` \`posMasterChild\` ON \`posMasterAct\`.\`posMasterChildId\` = \`posMasterChild\`.\`id\`
|
||||||
' ',
|
JOIN \`profile\` \`profileChild\` ON \`posMasterChild\`.\`current_holderId\` = \`profileChild\`.\`id\`
|
||||||
\`profile\`.\`lastName\`) AS \`actFullName\`
|
WHERE \`posMaster\`.\`id\` = \`posMasterAct\`.\`posMasterId\` LIMIT 1) AS \`actFullNameId\`,
|
||||||
|
(SELECT CONCAT(\`profileChild\`.\`prefix\`, \`profileChild\`.\`firstName\`, ' ', \`profileChild\`.\`lastName\`)
|
||||||
|
FROM \`posMasterAct\`
|
||||||
|
JOIN \`posMaster\` \`posMasterChild\` ON \`posMasterAct\`.\`posMasterChildId\` = \`posMasterChild\`.\`id\`
|
||||||
|
JOIN \`profile\` \`profileChild\` ON \`posMasterChild\`.\`current_holderId\` = \`profileChild\`.\`id\`
|
||||||
|
WHERE \`posMaster\`.\`id\` = \`posMasterAct\`.\`posMasterId\` LIMIT 1) AS \`actFullName\`
|
||||||
|
|
||||||
FROM
|
FROM
|
||||||
((((((((((\`posMaster\`
|
((((((((((\`posMaster\`
|
||||||
JOIN \`profile\` ON ((\`posMaster\`.\`current_holderId\` = \`profile\`.\`id\`)))
|
JOIN \`profile\` ON ((\`posMaster\`.\`current_holderId\` = \`profile\`.\`id\`)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue