fix: getProperties with order (#183)
This commit is contained in:
parent
45453afa0a
commit
e12b8f44d1
@ -76,7 +76,7 @@ export default class UiSchemaRepository extends Repository {
|
|||||||
const rawSql = `
|
const rawSql = `
|
||||||
SELECT SchemaTable.uid as uid, SchemaTable.name as name, SchemaTable.schema as "schema",
|
SELECT SchemaTable.uid as uid, SchemaTable.name as name, SchemaTable.schema as "schema",
|
||||||
TreePath.depth as depth,
|
TreePath.depth as depth,
|
||||||
NodeInfo.type as type, NodeInfo.async as async, ParentPath.ancestor as parent
|
NodeInfo.type as type, NodeInfo.async as async, ParentPath.ancestor as parent, ParentPath.sort as sort
|
||||||
FROM ${treeCollection.model.tableName} as TreePath
|
FROM ${treeCollection.model.tableName} as TreePath
|
||||||
LEFT JOIN ${this.model.tableName} as SchemaTable ON SchemaTable.uid = TreePath.descendant
|
LEFT JOIN ${this.model.tableName} as SchemaTable ON SchemaTable.uid = TreePath.descendant
|
||||||
LEFT JOIN ${treeCollection.model.tableName} as NodeInfo ON NodeInfo.descendant = SchemaTable.uid and NodeInfo.descendant = NodeInfo.ancestor and NodeInfo.depth = 0
|
LEFT JOIN ${treeCollection.model.tableName} as NodeInfo ON NodeInfo.descendant = SchemaTable.uid and NodeInfo.descendant = NodeInfo.ancestor and NodeInfo.depth = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user