#
luxiaotao1123
2024-02-01 528d0da19f5fc3f5c78af3c99a1f2cfa914a27dd
zy-asrs-wcs/src/main/resources/mapper/sys/RoleMenuMapper.xml
@@ -3,7 +3,19 @@
<mapper namespace="com.zy.asrs.wcs.sys.mapper.RoleMenuMapper">
    <select id="listMenuByUserId" resultType="com.zy.asrs.wcs.sys.entity.Menu">
        select * from sys_menu
        where 1=1
        and id in (
            select menu_id from sys_role_menu
            where role_id in (
                select sur.role_id from sys_user_role sur
                left join sys_role sr on sur.role_id = sr.id
                where 1=1
                and sur.user_id = #{userId}
                and sr.deleted = 0
            )
        )
        order by sort
    </select>
</mapper>