xm
2024-06-14 722af26bc6fec32bb289b1df51a9016a4935610f
提交 | 用户 | 时间
722af2 1 <?xml version="1.0" encoding="UTF-8" ?>
X 2 <!DOCTYPE mapper
3         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5 <mapper namespace="com.dl.system.mapper.SysUserRoleMapper">
6
7     <resultMap type="SysUserRole" id="SysUserRoleResult">
8         <result property="userId" column="user_id"/>
9         <result property="roleId" column="role_id"/>
10     </resultMap>
11     <select id="selectUserIdsByRoleId" resultType="string">
12         select u.user_id from sys_user u
13         inner join sys_user_role sur
14             on u.user_id = sur.user_id and sur.role_id = #{roleId}
15     </select>
16
17 </mapper>