| | |
| | | } |
| | | |
| | | /** |
| | | * 获取本级综治中心 |
| | | * @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 用户编号 |