<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.wansenai.mappers.role.SysRoleMenuRelMapper">

    <select id="listByRoleId" resultType="com.wansenai.entities.role.SysRoleMenuRel"
            parameterType="java.util.List">
        SELECT * FROM sys_role_menu_rel
        WHERE role_id IN
        <foreach item="item" index="index" collection="roleIds" open="(" separator="," close=")">
            #{item, jdbcType=BIGINT}
        </foreach>
    </select>
</mapper>
