| | |
| | | |
| | | /** |
| | | * 数据割接-已结束的纠纷案件信息 |
| | | * @url {ctx}/api/client/syncCust/byToGzCtUnit |
| | | * @url {ctx}/api/client/syncCust/byToGzEndCase |
| | | * @return Object |
| | | */ |
| | | public List<GZCaseDTO> byToGzEndCase(int page, int size){ |
| | |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | | * 数据割接-进行中的纠纷案件信息 |
| | | * @url {ctx}/api/client/syncCust/byToGzTodoCase |
| | | * @return Object |
| | | */ |
| | | public List<GZCaseDTO> byToGzTodoCase(int page, int size){ |
| | | List<GZCaseDTO> resultList = new ArrayList<>(); |
| | | try{ |
| | | ReturnBO returnBo = syncBydyhClient.byToGzTodoCase(page, size); |
| | | if (ReturnConsts.OK == returnBo.getCode()){ |
| | | if (ObjectUtils.isNotEmpty(returnBo.getData())){ |
| | | List<LinkedHashMap> list = (List<LinkedHashMap>) returnBo.getData(); |
| | | for (LinkedHashMap map : list) { |
| | | GZCaseDTO result = JSON.parseObject(JSON.toJSONString(map), GZCaseDTO.class); |
| | | resultList.add(result); |
| | | } |
| | | } |
| | | }else{ |
| | | log.error("Client外服务接口[SyncBydyhClient.byToGzTodoCase]请求异常:" + returnBo.getMsg(), returnBo.getMsg()); |
| | | throw new ClientException("SyncBydyhClient.byToGzTodoCase", returnBo.getMsg()); |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("service方法[SyncBydyhClient.byToGzTodoCase]调用异常:"+e, e); |
| | | } |
| | | return resultList; |
| | | } |
| | | |
| | | /** |
| | | * 数据割接-统计进行中的纠纷案件信息 |
| | | * @url {ctx}/api/client/syncCust/countTodoCase |
| | | * @return Object |
| | | */ |
| | | public int countTodoCase(){ |
| | | try{ |
| | | ReturnBO returnBo = syncBydyhClient.countTodoCase(); |
| | | if (ReturnConsts.OK == returnBo.getCode()) { |
| | | if (ObjectUtils.isNotEmpty(returnBo.getData())){ |
| | | return (Integer) returnBo.getData(); |
| | | }else { |
| | | return 0; |
| | | } |
| | | } else { |
| | | log.error("Client外服务接口[SyncBydyhClient.countTodoCase]请求异常:" + returnBo.getMsg(), returnBo.getMsg()); |
| | | throw new ClientException("SyncBydyhClient.countTodoCase", returnBo.getMsg()); |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("service方法[SyncBydyhClient.countTodoCase]调用异常:"+e, e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | } |