Selaa lähdekoodia

更新

tags/v2.4.1
xiaoying 1 vuosi sitten
vanhempi
commit
86abe91b20
1 muutettua tiedostoa jossa 4 lisäystä ja 3 poistoa
  1. +4
    -3
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/ClientUserServiceImpl.java

+ 4
- 3
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/ClientUserServiceImpl.java Näytä tiedosto

@@ -344,6 +344,7 @@ public class ClientUserServiceImpl implements ClientUserSevice {
IPage<TenantPo> pageData = tenantMapper.findList(page, query);
pageData.convert(x -> {
TenantVo vo = Convert.convert(TenantVo.class, x);
vo.setId(x.getUserId());
vo.setTenantCode(x.getCode());
vo.setTenantName(x.getName());
Long userId = x.getUserId();
@@ -528,7 +529,7 @@ public class ClientUserServiceImpl implements ClientUserSevice {
throw new ServiceException(HttpStatus.BAD_REQUEST.value(), "业务平台新增租户失败");
}
if (response.getBody().getCode() != JsonResult.SUCCESS) {
log.error("业务平台新增租户响应失败" + response.getBody());
log.error("业务平台更新租户响应失败, 业务平台标识:" + dto.getClientId());
throw new ServiceException(HttpStatus.BAD_REQUEST.value(), response.getBody().getMsg());
}
return JsonResult.success();
@@ -589,7 +590,7 @@ public class ClientUserServiceImpl implements ClientUserSevice {
throw new ServiceException(HttpStatus.BAD_REQUEST.value(), "业务平台更新租户失败");
}
if (response.getBody().getCode() != JsonResult.SUCCESS) {
log.error("业务平台更新租户响应失败" + response.getBody());
log.error("业务平台更新租户响应失败, 业务平台标识:" + dto.getClientId());
throw new ServiceException(HttpStatus.BAD_REQUEST.value(), response.getBody().getMsg());
}
return JsonResult.success();
@@ -647,7 +648,7 @@ public class ClientUserServiceImpl implements ClientUserSevice {
throw new ServiceException(HttpStatus.BAD_REQUEST.value(), "业务平台删除租户失败");
}
if (response.getBody().getCode() != JsonResult.SUCCESS) {
log.error("业务平台删除租户响应失败" + response.getBody());
log.error("业务平台更新租户响应失败, 业务平台标识:" + dto.getClientId());
throw new ServiceException(HttpStatus.BAD_REQUEST.value(), response.getBody().getMsg());
}
return JsonResult.success();

Loading…
Peruuta
Tallenna