Browse Source

tuoheng_oidc_admin 开发

tags/v2.3.0
chenjiandong 2 years ago
parent
commit
71ae1cb97b
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      tuoheng_oidc_server/src/main/resources/mapper/UserMapper.xml

+ 4
- 4
tuoheng_oidc_server/src/main/resources/mapper/UserMapper.xml View File

@@ -23,16 +23,16 @@
<select id="getUserBaseInfo" resultMap="UserBaseInfoMap">
select a.id as userId, a.username as userName, a.password , b.authority, c.client_id as clientId, c.role_id as roleId
from users a
inner join authorities b on a.id = b.user_id
inner join t_client_user_role c on a.id = c.user_id
left join authorities b on a.id = b.user_id
left join t_client_user_role c on a.id = c.user_id
where a.username = #{username}
</select>

<select id="getMpUserInfo" resultMap="UserBaseInfoMap">
select a.id as userId, a.username as userName, a.password , b.authority, c.client_id as clientId, c.role_id as roleId
from users a
inner join authorities b on a.id = b.user_id
inner join t_client_user_role c on a.id = c.user_id
left join authorities b on a.id = b.user_id
left join t_client_user_role c on a.id = c.user_id
where a.username = #{username}
</select>


Loading…
Cancel
Save