mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:17:23 +00:00
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 = `
|
||||
SELECT SchemaTable.uid as uid, SchemaTable.name as name, SchemaTable.schema as "schema",
|
||||
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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user