| | |
| | | |
| | | /** |
| | | * 获取时限 |
| | | * @param limitTable 表名 |
| | | * @param limitType 时限类型 |
| | | * @return List |
| | | */ |
| | |
| | | log.error("service方法[SysClientImpl.saveFileRelateList]请求异常:"+e, e); |
| | | } |
| | | } |
| | | |
| | | public List<QueAreaDTO> listByParentId(String parentId){ |
| | | List<QueAreaDTO> queAreaDTOList = new ArrayList<>(); |
| | | try{ |
| | | ReturnBO returnBo = sysClient.listByParentId(parentId); |
| | | if (ReturnConsts.OK == returnBo.getCode()){ |
| | | if (ObjectUtils.isNotEmpty(returnBo.getData())){ |
| | | List<LinkedHashMap> list = (List<LinkedHashMap>) returnBo.getData(); |
| | | for (LinkedHashMap map : list) { |
| | | QueAreaDTO queAreaDTO = JSON.parseObject(JSON.toJSONString(map), QueAreaDTO.class); |
| | | queAreaDTOList.add(queAreaDTO); |
| | | } |
| | | } |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("service方法[SysClientImpl.listFileRelateByOwnerId]调用异常:"+e, e); |
| | | } |
| | | return queAreaDTOList; |
| | | } |
| | | |
| | | /** |
| | | * 根据id查询附件信息 |
| | | * @url {ctx}/api/client/fileInfo/getFileInfoById |
| | | * @param id 条件 |
| | | * @return |
| | | */ |
| | | public FileInfoBaseDTO getFileInfoById(String id){ |
| | | FileInfoBaseDTO fileInfoBaseDTO = null; |
| | | try{ |
| | | ReturnBO returnBo = sysClient.getFileInfoById(id); |
| | | if (ReturnConsts.OK == returnBo.getCode()){ |
| | | if (ObjectUtils.isNotEmpty(returnBo.getData())){ |
| | | fileInfoBaseDTO = new FileInfoBaseDTO(); |
| | | fileInfoBaseDTO = objectMapper.convertValue(returnBo.getData(), FileInfoBaseDTO.class); |
| | | } |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("service方法[SysClientImpl.getFileInfoById]调用异常:"+e, e); |
| | | } |
| | | return fileInfoBaseDTO; |
| | | } |
| | | |
| | | } |