Browse Source

更新传参字段变更

tags/v2.4.1
xiaoying 1 year ago
parent
commit
1b4d8402c5
2 changed files with 4 additions and 2 deletions
  1. +2
    -2
      tuoheng_oidc_admin/src/main/java/com/tuoheng/model/vo/TenantVo.java
  2. +2
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/ClientUserServiceImpl.java

+ 2
- 2
tuoheng_oidc_admin/src/main/java/com/tuoheng/model/vo/TenantVo.java View File

@@ -18,11 +18,11 @@ public class TenantVo {
/**
* 租户名称
*/
private String name;
private String tenantName;
/**
* 租户code
*/
private String code;
private String tenantCode;
/**
* 用户名
*/

+ 2
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/ClientUserServiceImpl.java View File

@@ -344,6 +344,8 @@ public class ClientUserServiceImpl implements ClientUserSevice {
IPage<TenantPo> pageData = tenantMapper.findList(page, query);
pageData.convert(x -> {
TenantVo vo = Convert.convert(TenantVo.class, x);
vo.setTenantCode(x.getCode());
vo.setTenantName(x.getName());
Long userId = x.getUserId();
List<AuthoritiesPo> poList = authoritiesMapper.selectByUserId(userId);
List<BusinessSystemVo> businessSystemVoList = new ArrayList<>();

Loading…
Cancel
Save