<?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.api.manage.dao.system.SysJurisdictionDao">
    <select id="findByRoleId" parameterType="java.lang.Integer" resultType="com.api.model.system.SysJurisdiction">
     select j.* from sys_jurisdiction as j,sys_role_jurisdiction as rj,sys_role as r
     where r.id = rj.role_id AND j.id = rj.jurisdiction_id and r.id= #{roleId}
    </select>
</mapper>