mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 05:00:23 +08:00
修复多角色情况下,角色顺序不同导致查询结果不同
This commit is contained in:
parent
5594b9f226
commit
d9a08dc7d6
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user