代码提交点位地图
This commit is contained in:
parent
17bf8a98df
commit
d145df182a
@ -686,17 +686,18 @@ public class TsFilesController {
|
||||
* 参数说明 id 文件的ID
|
||||
* 参数说明 samTimes 时间
|
||||
* 参数说明 token SSE连接的token
|
||||
* 参数说明 config 配置文件的ID
|
||||
* 返回值说明: com.yfd.platform.config.ResponseResult
|
||||
***********************************/
|
||||
@Log(module = "实验数据管理", value = "实时获取轨迹数据!")
|
||||
@PostMapping("/startSimpleNavi")
|
||||
@ApiOperation("实时获取轨迹数据")
|
||||
public ResponseResult startSimpleNavi(String id, int samTimes, String token, String taskId) {
|
||||
public ResponseResult startSimpleNavi(String id, int samTimes, String token, String taskId,String configId) {
|
||||
try {
|
||||
// 使用线程池异步执行任务
|
||||
CompletableFuture.runAsync(() -> {
|
||||
try {
|
||||
tsFilesService.batchSendNaviOutDataJob(id, samTimes, token, taskId);
|
||||
tsFilesService.batchSendNaviOutDataJob(id, samTimes, token, taskId,configId);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
@ -794,4 +795,24 @@ public class TsFilesController {
|
||||
FileItemResult fileItemResult = tsFilesService.obtainUrl(id, type, taskId);
|
||||
return ResponseResult.successData(fileItemResult);
|
||||
}
|
||||
|
||||
/**********************************
|
||||
* 用途说明: 通过文件ID获取对应的txt集合和png集合
|
||||
* 参数说明 id 文件夹ID
|
||||
* 参数说明 taskId 任务ID
|
||||
* 参数说明 nodeId 节点ID
|
||||
* 返回值说明: com.yfd.platform.config.ResponseResult 返回文件集合列表
|
||||
***********************************/
|
||||
@Log(module = "实验数据管理", value = "通过文件ID获取对应的txt集合和png集合!")
|
||||
@PostMapping("/listTsFilesById")
|
||||
@ApiOperation("通过文件ID获取对应的txt集合和png集合")
|
||||
public ResponseResult listTsFilesById(String id, String taskId,String nodeId) {
|
||||
if (StrUtil.isBlank(id) && StrUtil.isBlank(taskId)&& StrUtil.isBlank(nodeId)) {
|
||||
return ResponseResult.error("参数为空");
|
||||
}
|
||||
//通过ID查询集合
|
||||
return ResponseResult.successData(tsFilesService.listTsFilesById(id, taskId,nodeId));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,30 @@
|
||||
package com.yfd.platform.modules.experimentalData.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class TrajectoriesDto {
|
||||
|
||||
/**
|
||||
* 获取底图集合
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private List<TsFiles> tsFilesListPng;
|
||||
|
||||
/**
|
||||
* 获取地理信息集合
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private List<TsFiles> tsFilesListTxt;
|
||||
|
||||
|
||||
/**
|
||||
* 获取配置文件信息
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private List<TsFiles> tsFilesListConfig;
|
||||
|
||||
}
|
@ -191,4 +191,13 @@ public class TsFiles implements Serializable {
|
||||
@TableField(exist = false)
|
||||
private String minioMd5;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 文件内容
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String fileContent;
|
||||
|
||||
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ public interface ITsFilesService extends IService<TsFiles> {
|
||||
* 参数说明 token SSE连接的token
|
||||
* 返回值说明: com.yfd.platform.config.ResponseResult
|
||||
***********************************/
|
||||
void batchSendNaviOutDataJob(String id, int samTimes, String token,String taskId);
|
||||
void batchSendNaviOutDataJob(String id, int samTimes, String token,String taskId,String configId);
|
||||
|
||||
/**
|
||||
* 查询文件内容接口
|
||||
@ -256,4 +256,12 @@ public interface ITsFilesService extends IService<TsFiles> {
|
||||
void decompressionFolderAsync(String id, String decompressionPath, String parentId, String path, String taskId) throws IOException;
|
||||
|
||||
Object decompressionFolderData(String taskId);
|
||||
/**********************************
|
||||
* 用途说明: 通过文件ID获取对应的txt集合和png集合
|
||||
* 参数说明 id 文件夹ID
|
||||
* 参数说明 taskId 任务ID
|
||||
* 参数说明 nodeId 节点ID
|
||||
* 返回值说明: com.yfd.platform.config.ResponseResult 返回文件集合列表
|
||||
***********************************/
|
||||
Object listTsFilesById(String id, String taskId, String nodeId);
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user