|
|
@@ -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> |
|
|
|
|