forked from github/dataease
fix: 修复分享列表查询逻辑错误
This commit is contained in:
parent
8852fba90f
commit
f3cbed1f0c
@ -22,11 +22,12 @@
|
||||
left join panel_group g on g.id = s.panel_group_id
|
||||
where
|
||||
( s.target_id = #{userId} and s.type = 0 ) or
|
||||
( s.target_id = #{deptId} and s.type = 1 ) or
|
||||
s.target_id in
|
||||
( s.target_id = #{deptId} and s.type = 2 ) or
|
||||
( s.target_id in
|
||||
<foreach collection="roleIds" item="roleId" open='(' separator=',' close=')'>
|
||||
#{roleId}
|
||||
</foreach>
|
||||
and s.type = 1 )
|
||||
<if test="orderByClause == null">
|
||||
order by s.create_time desc
|
||||
</if>
|
||||
|
Loading…
Reference in New Issue
Block a user