<?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.ycl.mapper.user.UmsAdminMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="BaseResultMap" type="com.ycl.entity.user.UmsAdmin">
|
<id column="id" property="id" />
|
<result column="username" property="username" />
|
<result column="password" property="password" />
|
<result column="icon" property="icon" />
|
<result column="email" property="email" />
|
<result column="nick_name" property="nickName" />
|
<result column="note" property="note" />
|
<result column="create_time" property="createTime" />
|
<result column="login_time" property="loginTime" />
|
<result column="status" property="status" />
|
</resultMap>
|
|
<select id="getAdminIdList" resultType="java.lang.Long">
|
SELECT
|
DISTINCT ar.admin_id
|
FROM
|
ums_role_resource_relation rr
|
LEFT JOIN ums_admin_role_relation ar ON rr.role_id = ar.role_id
|
WHERE rr.resource_id=#{resourceId}
|
</select>
|
|
</mapper>
|