From 6fa45cfc4603f30deff2d7e148d6ed9119f994ba Mon Sep 17 00:00:00 2001 From: liyj <1003249715@qq.com> Date: Fri, 13 Sep 2024 19:37:59 +0800 Subject: [PATCH] 1、回退申请bug 2、当事人评价加结束流程 --- dyh-service/dyh-mediate/src/main/java/cn/huge/module/client/api/impl/CustClientImpl.java | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 46 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 da1fda0..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 @@ -6,6 +6,7 @@ import cn.huge.base.common.exception.ClientException; import cn.huge.base.common.exception.ServiceException; import cn.huge.module.client.api.CustClient; +import cn.huge.module.cust.dto.CtUnitDTO; import cn.huge.module.cust.dto.CtUserDTO; import cn.huge.module.cust.dto.PaUserDTO; import cn.huge.module.mediate.dto.WechatBindCaseDTO; @@ -14,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; @@ -126,4 +128,48 @@ } return userId; } + + /** + * 根据id查询组织信息 + * @url {ctx}/api/client/ctUnit/getUnitById + * @param unitId 组织编号 + * @return Object + */ + public CtUnitDTO getUnitById(String unitId){ + try{ + ReturnBO returnBo = custClient.getUnitById(unitId); + if (ReturnConsts.OK == returnBo.getCode()){ + CtUnitDTO ctUnitDTO = objectMapper.convertValue(returnBo.getData(), CtUnitDTO.class); + return ctUnitDTO; + }else{ + log.error("Client外服务接口[CustClientImpl.getUnitById]请求异常:" + returnBo.getMsg(), returnBo.getMsg()); + throw new ClientException("CustClientImpl.getUnitById", returnBo.getMsg()); + } + }catch (Exception e){ + log.error("service方法[CustClientImpl.getUnitById]调用异常:"+e, e); + 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