Merge remote-tracking branch 'origin/main'

This commit is contained in:
jiang 2024-12-08 17:32:57 +08:00
commit ac12b2e54c
1 changed files with 6 additions and 0 deletions

View File

@ -134,6 +134,12 @@
AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId},
ancestors) ))
</if>
<if test="roleIds != null and roleIds.length > 0">
and ur.role_id in
<foreach collection="roleIds" item="item" index="index" separator="," open="(" close=")">
#{item}
</foreach>
</if>
<include refid="com.bonus.system.mapper.DataScopeMapper.dataScopeFilter"/>
GROUP BY u.user_id
</select>