From 236f80305991d3517c84e70b2645a80a52ad1294 Mon Sep 17 00:00:00 2001
From: wangwh <2397901735@qq.com>
Date: Mon, 28 Oct 2024 14:42:57 +0800
Subject: [PATCH] fix: 1、添加日志记录; 2、修改请求网格系统待办接口的传参objId值为本系统caseId; 3、添加办理中时联合处置申请的网格待办。

---
 dyh-service/dyh-mediate/src/main/java/cn/huge/module/client/api/impl/CustClientImpl.java |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/client/api/impl/CustClientImpl.java b/dyh-service/dyh-mediate/src/main/java/cn/huge/module/client/api/impl/CustClientImpl.java
index 1b708f4..0a008b4 100644
--- a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/client/api/impl/CustClientImpl.java
+++ b/dyh-service/dyh-mediate/src/main/java/cn/huge/module/client/api/impl/CustClientImpl.java
@@ -172,4 +172,48 @@
             throw new ServiceException("CustClientImpl.getParentZzzxUnit", e);
         }
     }
+
+    /**
+     * 获取本级综治中心
+     * @url {ctx}/api/client/ctUnit/getBjZzzx
+     * @param unitId 组织编号
+     * @return Object
+     */
+    public CtUnitDTO getBjZzzx(String unitId){
+        try{
+            ReturnBO returnBo = custClient.getBjZzzx(unitId);
+            if (ReturnConsts.OK == returnBo.getCode()){
+                CtUnitDTO ctUnitDTO = objectMapper.convertValue(returnBo.getData(), CtUnitDTO.class);
+                return ctUnitDTO;
+            }else{
+                log.error("Client外服务接口[CustClientImpl.getBjZzzx]请求异常:" + returnBo.getMsg(), returnBo.getMsg());
+                throw new ClientException("CustClientImpl.getBjZzzx", returnBo.getMsg());
+            }
+        }catch (Exception e){
+            log.error("service方法[CustClientImpl.getBjZzzx]请求成功,处理异常:"+e, e);
+            throw new ServiceException("CustClientImpl.getBjZzzx", e);
+        }
+    }
+
+    /**
+     * 查询用户所在的单位信息
+     * @url {ctx}/api/client/ctUnit/getUnitByUserId
+     * @param userId 用户编号
+     * @return Object
+     */
+    public CtUnitDTO getUnitByUserId(String userId){
+        try{
+            ReturnBO returnBo = custClient.getUnitByUserId(userId);
+            if (ReturnConsts.OK == returnBo.getCode()){
+                CtUnitDTO ctUnitDTO = objectMapper.convertValue(returnBo.getData(), CtUnitDTO.class);
+                return ctUnitDTO;
+            }else{
+                log.error("Client外服务接口[CustClientImpl.getUnitByUserId]请求异常:" + returnBo.getMsg(), returnBo.getMsg());
+                throw new ClientException("CustClientImpl.getUnitByUserId", returnBo.getMsg());
+            }
+        }catch (Exception e){
+            log.error("service方法[CustClientImpl.getUnitByUserId]调用异常:"+e, e);
+            throw new ServiceException("CustClientImpl.getUnitByUserId", e);
+        }
+    }
 }

--
Gitblit v1.8.0