| | |
| | | //更新媒体文件的是否添加状态 |
| | | updateMediaStatu(mediaFile); |
| | | } |
| | | //发送请求给第三方接口 |
| | | sendPostWithFileAndParameter(territoryConfigPojo.getResult(), taskId); |
| | | //存储db到服务器 |
| | | dbSave(territoryConfigPojo.getResult(), territoryConfigPojo.getResultsave(), taskId); |
| | | |
| | | //发送请求给第三方接口 |
| | | sendPostWithFileAndParameter(territoryConfigPojo.getResult(), taskId); |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | * @throws IOException |
| | | */ |
| | | public MultipartFile getFile(String waylineName, List<LotInfo> list) throws IOException { |
| | | List<PointPO> coordinates = GeoToolsUtil.getRoutePointOrder(list, 28.62703, 115.867719); |
| | | List<PointPO> coordinates = GeoToolsUtil.getRoutePointOrder(list, 28.62452712442823, 115.85666327144976); |
| | | XMLTemplateModel xmlModel = XMLTemplateModel.init(coordinates, list); |
| | | CreateWaylineFileUtils.createWaylineFile(xmlModel, patchesConfigPojo.getTemplate(), patchesConfigPojo.getTargetTemplate(), patchesConfigPojo.getWaylines(), patchesConfigPojo.getTargetWaylines()); |
| | | // 压缩文件夹中的内容 |
| | |
| | | * @return |
| | | */ |
| | | public String backWayline(MultipartFile multipartFile, String waylineName, String workspaceId, String username) { |
| | | waylineFileService.importKmzFile(multipartFile, workspaceId, username); |
| | | waylineFileService.importKmzFileBack(multipartFile, workspaceId, username); |
| | | WaylineFileEntity entity = waylineFileService.selectByName(waylineName); |
| | | try { |
| | | waylineFileService.getObjectUrl(workspaceId, entity.getWaylineId()); |
| | |
| | | |
| | | public List<List<MediaFileEntity>> getNoadd() { |
| | | List<MediaFileEntity> list = fileMapper.selectList(new LambdaQueryWrapper<MediaFileEntity>() |
| | | .eq(MediaFileEntity::getIsadd, 0).like(MediaFileEntity::getFileName, "~")); |
| | | .eq(MediaFileEntity::getIsadd, 0) |
| | | .eq(MediaFileEntity::getExamine, 1) |
| | | .like(MediaFileEntity::getFileName, "~")); |
| | | List<List<MediaFileEntity>> groupedFilenames = groupTasks(list); |
| | | return groupedFilenames; |
| | | } |
| | |
| | | System.out.println(response); |
| | | System.out.println(response); |
| | | System.out.println(response); |
| | | System.out.println(response); |
| | | System.out.println(response); |
| | | System.out.println(response); |
| | | System.out.println(response); |
| | | System.out.println(response); |
| | | System.out.println(response); |
| | | System.out.println(response); |
| | | System.out.println(response); |
| | | System.out.println(response); |
| | | System.out.println(response); |
| | | System.out.println(response); |
| | | } catch (Exception e) { |
| | | throw new IllegalArgumentException("db推送失败" + e.getMessage()); |
| | | } |