소스 검색

更新

tags/v2.4.1
xiaoying 1 년 전
부모
커밋
86abe91b20
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  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 파일 보기

@@ -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…
취소
저장