From 0c6754b975a29eb207304a9714a0d0f6a7d9748c Mon Sep 17 00:00:00 2001
From: liyj <1003249715@qq.com>
Date: Wed, 21 Aug 2024 20:37:15 +0800
Subject: [PATCH] 1、优化代码生成器 2、优化用户中心 3、新增client微服务调用controller

---
 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