main
HuangHai 9 months ago
parent d625d876ee
commit 87dd5b69bc

@ -1,6 +1,8 @@
#namespace("Resource")
-- 获取指定节点为根的子树
#sql("getStructureTree")
SELECT structure_id, parent_id FROM t_resource_structure WHERE structure_id = #para(parent_id)
UNION ALL
SELECT structure_id, parent_id FROM t_resource_structure WHERE parent_id = #para(parent_id)
UNION ALL
SELECT b.structure_id, b.parent_id FROM t_resource_structure b

Loading…
Cancel
Save