fineBI库:
select a.suername 用户名,a.realname 姓名,d.name 部门,e.name 角色 from fine_user a
left join
fine_user_role_middle b
on a.id=b.userid
left join fine_dep_role c
on b.roleid=c.id
left join fine_department d
on c.departmentid=d.id
left join fine_custom_role e
on b.roleid=e.id