按要求导出组织结构数据,SQL 查询语句

with jxs as ( -- 经销商 select id as jxs_id -- 经销商 , parent_id as jxs_parent_id -- 经销商上级 from t_department where position_id = 5 ) ,jl as ( -- 经理 select jxs.* , t1.id as jl_id -- 经理 , t1.paren
相关文章
相关标签/搜索