feat: 分享显示名优化

This commit is contained in:
fit2cloud-chenyw 2022-02-15 12:35:17 +08:00
parent 92b35da452
commit dada0b9f8d

View File

@ -34,9 +34,10 @@
</delete>
<select id="query" resultMap="treeNodeMap">
select distinct s.panel_group_id as id, IFNULL(s.granter,g.create_by) as creator, g.name
select distinct s.panel_group_id as id, u.nick_name as creator, g.name
from panel_share s
left join panel_group g on g.id = s.panel_group_id
left join sys_user u on u.username = IFNULL(s.granter,g.create_by)
where
( s.target_id = #{userId} and s.type = 0 ) or
( s.target_id = #{deptId} and s.type = 2 ) or