|
|
|
@ -9,7 +9,7 @@
|
|
|
|
|
FROM dataease.core_dataset_group c
|
|
|
|
|
INNER JOIN tree_cte t ON c.pid = t.id
|
|
|
|
|
)
|
|
|
|
|
SELECT CAST(t1.id AS CHAR(18)) as id ,t1.name ,CAST(t1.pid AS CHAR(18)) as pid,t1.node_type,t2.name as parent_name FROM tree_cte as t1
|
|
|
|
|
SELECT CAST(t1.id AS CHAR(19)) as id ,t1.name ,CAST(t1.pid AS CHAR(19)) as pid,t1.node_type,t2.name as parent_name FROM tree_cte as t1
|
|
|
|
|
inner join dataease.core_dataset_group as t2
|
|
|
|
|
on t1.pid=t2.id
|
|
|
|
|
#end
|
|
|
|
|