Browse Source

回退

tags/v2.5.0
xiaoying 1 year ago
parent
commit
d3bbc1b266
6 changed files with 7 additions and 18 deletions
  1. +0
    -3
      tuoheng_oidc_server/src/main/java/com/tuoheng/model/dto/ClientRoleDto.java
  2. +1
    -1
      tuoheng_oidc_server/src/main/java/com/tuoheng/model/dto/UserBaseInfoDto.java
  3. +3
    -7
      tuoheng_oidc_server/src/main/resources/mapper/UserMapper.xml
  4. BIN
      tuoheng_oidc_server/target/classes/com/tuoheng/model/dto/ClientRoleDto.class
  5. BIN
      tuoheng_oidc_server/target/classes/com/tuoheng/model/dto/UserBaseInfoDto.class
  6. +3
    -7
      tuoheng_oidc_server/target/classes/mapper/UserMapper.xml

+ 0
- 3
tuoheng_oidc_server/src/main/java/com/tuoheng/model/dto/ClientRoleDto.java View File

@@ -13,7 +13,4 @@ public class ClientRoleDto {
private String clientId;

private Integer roleId;

private Integer status;

}

+ 1
- 1
tuoheng_oidc_server/src/main/java/com/tuoheng/model/dto/UserBaseInfoDto.java View File

@@ -21,7 +21,7 @@ public class UserBaseInfoDto {
/**
* 可以访问的 client
*/
private List<AuthoritiesDto> authorityList;
private List<String> authorityList;

/**
* 可以访问的 client 以及 role

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

@@ -6,14 +6,12 @@
<id column="userId" jdbcType="INTEGER" property="userId"/>
<result column="userName" jdbcType="VARCHAR" property="userName"/>
<result column="password" jdbcType="VARCHAR" property="password"/>
<collection property="authorityList" ofType="com.tuoheng.model.dto.AuthoritiesDto" javaType="java.util.List">
<result column="authority" jdbcType="VARCHAR" property="authority"/>
<result column="status" jdbcType="INTEGER" property="status"/>
<collection property="authorityList" ofType="java.lang.String" javaType="java.util.List">
<result column="authority" jdbcType="VARCHAR"/>
</collection>
<collection property="clientRoleDtoList" ofType="com.tuoheng.model.dto.ClientRoleDto" javaType="java.util.List">
<result column="clientId" jdbcType="VARCHAR" property="clientId"/>
<result column="roleId" jdbcType="INTEGER" property="roleId"/>
<result column="status" jdbcType="INTEGER" property="status"/>
</collection>
</resultMap>

@@ -40,10 +38,8 @@
a.username as userName,
a.password,
b.authority,
b.status,
c.client_id as clientId,
c.role_id as roleId,
c.status as status
c.role_id as roleId
from users a
left join authorities b on a.id = b.user_id
left join t_client_user_role c on a.id = c.user_id

BIN
tuoheng_oidc_server/target/classes/com/tuoheng/model/dto/ClientRoleDto.class View File


BIN
tuoheng_oidc_server/target/classes/com/tuoheng/model/dto/UserBaseInfoDto.class View File


+ 3
- 7
tuoheng_oidc_server/target/classes/mapper/UserMapper.xml View File

@@ -6,14 +6,12 @@
<id column="userId" jdbcType="INTEGER" property="userId"/>
<result column="userName" jdbcType="VARCHAR" property="userName"/>
<result column="password" jdbcType="VARCHAR" property="password"/>
<collection property="authorityList" ofType="com.tuoheng.model.dto.AuthoritiesDto" javaType="java.util.List">
<result column="authority" jdbcType="VARCHAR" property="authority"/>
<result column="status" jdbcType="INTEGER" property="status"/>
<collection property="authorityList" ofType="java.lang.String" javaType="java.util.List">
<result column="authority" jdbcType="VARCHAR"/>
</collection>
<collection property="clientRoleDtoList" ofType="com.tuoheng.model.dto.ClientRoleDto" javaType="java.util.List">
<result column="clientId" jdbcType="VARCHAR" property="clientId"/>
<result column="roleId" jdbcType="INTEGER" property="roleId"/>
<result column="status" jdbcType="INTEGER" property="status"/>
</collection>
</resultMap>

@@ -40,10 +38,8 @@
a.username as userName,
a.password,
b.authority,
b.status,
c.client_id as clientId,
c.role_id as roleId,
c.status as status
c.role_id as roleId
from users a
left join authorities b on a.id = b.user_id
left join t_client_user_role c on a.id = c.user_id

Loading…
Cancel
Save