Browse Source

更新

tags/v2.4.1
xiaoying 1 year ago
parent
commit
9970ef9ac2
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/TenantServiceImpl.java

+ 5
- 4
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/TenantServiceImpl.java View File

@@ -614,9 +614,11 @@ public class TenantServiceImpl implements TenantService {
log.info("交集集合:{}", coincideClientRoleDtoList.toString());
//交集集合做更新操作
for (ClientRoleDto clientRoleDto : coincideClientRoleDtoList) {
JsonResult editResult = editResult(clientTenantDto, clientRoleDto.getClientId(), loginUser);
if (editResult.getCode() != JsonResult.SUCCESS) {
return editResult;
try {
editResult(clientTenantDto, clientRoleDto.getClientId(), loginUser);
} catch (Exception e) {
log.info("异常信息捕获,平台标识:{}", clientRoleDto.getClientId());
log.info("异常信息:{}", e.getMessage());
}
}
//新增
@@ -637,7 +639,6 @@ public class TenantServiceImpl implements TenantService {
for (ClientRoleDto clientRoleDto : finalClientRoleDtoList) {
clientUserRoleMapper.deleteByUserIdAndClient(tenant.getUserId(), clientRoleDto.getClientId());
authoritiesMapper.deleteByUserIdAndClient(tenant.getUserId(), clientRoleDto.getClientId());

}
log.info("租户原有关联各业务平台不同权限表删除完毕");


Loading…
Cancel
Save