From bc531bac2ad8aeb15723b2ee16fac5b74827f2b6 Mon Sep 17 00:00:00 2001
From: wangwh <2397901735@qq.com>
Date: Sun, 15 Sep 2024 13:33:14 +0800
Subject: [PATCH] 联合处置查询组织接口 首页查询-待分派接口修改 案件登记接口添加默认属地 申请记录接口添加附件查询

---
 dyh-service/dyh-mediate/src/main/java/cn/huge/module/client/api/impl/CustClientImpl.java |   23 +++++++++++++++++++++++
 1 files changed, 23 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 879c4c5..1b708f4 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
@@ -15,6 +15,7 @@
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
+import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestParam;
 
 import java.util.ArrayList;
@@ -149,4 +150,26 @@
             throw new ServiceException("CustClientImpl.getUnitById", e);
         }
     }
+
+    /**
+     * 获取上级综治中心
+     * @url {ctx}/api/client/ctUnit/getParentZzzxUnit
+     * @param unitId 组织编号
+     * @return Object
+     */
+    public CtUnitDTO getParentZzzxUnit(String unitId){
+        try{
+            ReturnBO returnBo = custClient.getParentZzzxUnit(unitId);
+            if (ReturnConsts.OK == returnBo.getCode()){
+                CtUnitDTO ctUnitDTO = objectMapper.convertValue(returnBo.getData(), CtUnitDTO.class);
+                return ctUnitDTO;
+            }else{
+                log.error("Client外服务接口[CustClientImpl.getParentZzzxUnit]请求异常:" + returnBo.getMsg(), returnBo.getMsg());
+                throw new ClientException("CustClientImpl.getParentZzzxUnit", returnBo.getMsg());
+            }
+        }catch (Exception e){
+            log.error("service方法[CustClientImpl.getParentZzzxUnit]请求成功,处理异常:"+e, e);
+            throw new ServiceException("CustClientImpl.getParentZzzxUnit", e);
+        }
+    }
 }

--
Gitblit v1.8.0