提交 f3cbed1f authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

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

上级 8852fba9
......@@ -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>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论