修复多角色情况下,角色顺序不同导致查询结果不同

This commit is contained in:
rootwish 2021-11-03 10:31:28 +00:00 committed by Gitee
parent 5594b9f226
commit d9a08dc7d6

View File

@ -43,7 +43,10 @@
LEFT JOIN sys_role_menu ON sys_menu.menu_id = sys_role_menu.menu_id
WHERE
sys_menu.del_flag = 0
AND sys_role_menu.role_id IN (#{roleIds})
AND sys_role_menu.role_id IN
<foreach collection="array" item="roleid" index="index" open="(" close=")" separator=",">
#{roleid}
</foreach>
ORDER BY
sys_menu.sort DESC
</select>