| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.SysRoleMapper"> |
| | | <mapper namespace="org.dromara.system.mapper.SysRoleMapper"> |
| | | |
| | | <resultMap type="com.ruoyi.system.domain.vo.SysRoleVo" id="SysRoleResult"> |
| | | <resultMap type="org.dromara.system.domain.vo.SysRoleVo" id="SysRoleResult"> |
| | | </resultMap> |
| | | |
| | | <sql id="selectRoleVo"> |
| | |
| | | WHERE r.del_flag = '0' and u.user_name = #{userName} |
| | | </select> |
| | | |
| | | <select id="selectRoleById" resultMap="SysRoleResult"> |
| | | <include refid="selectRoleVo"/> |
| | | WHERE r.del_flag = '0' and r.role_id = #{roleId} |
| | | </select> |
| | | |
| | | </mapper> |