fix: 修复分享列表查询逻辑错误

This commit is contained in:
fit2cloud-chenyw 2021-06-16 18:51:47 +08:00
parent 8852fba90f
commit f3cbed1f0c

View File

@ -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>