Browse Source

Merge branch 'develop' of gitadmin/tuoheng_oidc into release

tags/v2.5.2
xuziqing 1 year ago
parent
commit
4ce38acf53
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/TenantServiceImpl.java

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

if (ObjectUtil.isNotNull(tenantEmploy)) { if (ObjectUtil.isNotNull(tenantEmploy)) {
clientRoleDto.setServiceId(tenantEmploy.getServiceId()); clientRoleDto.setServiceId(tenantEmploy.getServiceId());
} }
clientRoleDto.setServiceId(null);
//此处 暂时格式都为 tuoheng-hhz-web 等格式 如后续维护需要变更形式则此处代码需要更改 //此处 暂时格式都为 tuoheng-hhz-web 等格式 如后续维护需要变更形式则此处代码需要更改
clientRoleDto.setRoleId(clientUserRolePo.getRoleId()); clientRoleDto.setRoleId(clientUserRolePo.getRoleId());
clientRoleDto.setRoleName(clientUserRolePo.getRoleName()); clientRoleDto.setRoleName(clientUserRolePo.getRoleName());
clientRoleDtoList.add(clientRoleDto); clientRoleDtoList.add(clientRoleDto);
} }
//原有集合 //原有集合
list.forEach(t->t.setServiceId(null));
clientRoleDtoList = clientRoleDtoList.stream().distinct().collect(Collectors.toList()); clientRoleDtoList = clientRoleDtoList.stream().distinct().collect(Collectors.toList());
List<ClientRoleDto> deleteList = clientRoleDtoList; List<ClientRoleDto> deleteList = clientRoleDtoList;
log.info("原有集合:{}", clientRoleDtoList.toString()); log.info("原有集合:{}", clientRoleDtoList.toString());

Loading…
Cancel
Save