<?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.energy.manage.service.mappers.system.SysRolePermissionMapper">

    <select id="getRolePermission" resultType="java.lang.Integer">
        SELECT permission_id
        FROM sys_role_permission
        WHERE role_id = #{roleId}
    </select>


    <select id="getRoleOrganization" resultType="java.lang.String">
        SELECT code_number
        FROM sys_organization_auth
        WHERE role_id = #{roleId}
    </select>

</mapper>