Merge pull request #1769 from dataease/pr@dev@feat_share_name

feat: 分享显示名优化
This commit is contained in:
fit2cloud-chenyw 2022-02-15 12:36:16 +08:00 committed by GitHub
commit d7519a9328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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