first commit
This commit is contained in:
@ -13,17 +13,8 @@
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectRoleKeysByUserId" resultType="string">
|
||||
select t2.role_key from sys_user_role t1
|
||||
left join sys_role t2 on t2.role_id = t1.role_id
|
||||
where t1.user_id = #{userId}
|
||||
<if test="status != null and status != ''">
|
||||
and t2.status = #{status}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectRoleNamesByUserId" resultType="string">
|
||||
select t2.role_name from sys_user_role t1
|
||||
<select id="selectRoleDtoByUserId" resultType="com.qiaoba.auth.entity.dto.RoleDto">
|
||||
select t2.role_id,t2.role_key,t2.role_name,t2.data_scope from sys_user_role t1
|
||||
left join sys_role t2 on t2.role_id = t1.role_id
|
||||
where t1.user_id = #{userId}
|
||||
<if test="status != null and status != ''">
|
||||
|
||||
Reference in New Issue
Block a user