From 0161a25576448282512683f05d2eb713dd1e3e0b Mon Sep 17 00:00:00 2001
From: wangwh <2397901735@qq.com>
Date: Sat, 24 Aug 2024 11:36:04 +0800
Subject: [PATCH] 请求返回类优化
---
dyh-service/dyh-sync/src/main/java/cn/huge/module/client/api/impl/CustClientImpl.java | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/dyh-service/dyh-sync/src/main/java/cn/huge/module/client/api/impl/CustClientImpl.java b/dyh-service/dyh-sync/src/main/java/cn/huge/module/client/api/impl/CustClientImpl.java
index a96db5d..cf26417 100644
--- a/dyh-service/dyh-sync/src/main/java/cn/huge/module/client/api/impl/CustClientImpl.java
+++ b/dyh-service/dyh-sync/src/main/java/cn/huge/module/client/api/impl/CustClientImpl.java
@@ -46,23 +46,23 @@
private ObjectMapper objectMapper = new ObjectMapper();
/**
- * 内部用户-获取登录用户
- * @param userId 用户编号
- * @return CtUserDTO
+ * 微服务调用-数据迁移-批量新增
+ * @param targetCtUnitList 批量数据
+ * @return
*/
- public CtUserDTO clientGetUser(List<TargetCtUnit> targetCtUnitList){
+ public CtUserDTO saveCtUnitList(List<TargetCtUnit> targetCtUnitList){
try{
ReturnBO returnBo = custClient.saveCtUnitList(targetCtUnitList);
if (ReturnConsts.OK == returnBo.getCode()){
CtUserDTO loginUser = objectMapper.convertValue(returnBo.getData(), CtUserDTO.class);
return loginUser;
}else{
- log.error("Client外服务接口[CustClientImpl.clientGetUser]请求异常:" + returnBo.getMsg(), returnBo.getMsg());
- throw new ClientException("CustClientImpl.clientGetUser", returnBo.getMsg());
+ log.error("Client外服务接口[CustClientImpl.saveCtUnitList]请求异常:" + returnBo.getMsg(), returnBo.getMsg());
+ throw new ClientException("CustClientImpl.saveCtUnitList", returnBo.getMsg());
}
}catch (Exception e){
- log.error("service方法[CustClientImpl.clientGetUser]调用异常:"+e, e);
- throw new ServiceException("CustClientImpl.clientGetUser", e);
+ log.error("service方法[CustClientImpl.saveCtUnitList]调用异常:"+e, e);
+ throw new ServiceException("CustClientImpl.saveCtUnitList", e);
}
}
}
--
Gitblit v1.8.0