#update
This commit is contained in:
@@ -9,7 +9,7 @@ import lombok.Data;
|
|||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class WebRouteStatusMessageDTO {
|
public class WebRouteStatusMessageDTO {
|
||||||
private List<LatAndLngEntity> data;
|
private List<List<LatAndLngEntity>> data;
|
||||||
private String deviceId;
|
private String deviceId;
|
||||||
private Long taskId;
|
private Long taskId;
|
||||||
private MesType type;
|
private MesType type;
|
||||||
|
|||||||
@@ -153,8 +153,10 @@ public class HostComputerController extends BaseController {
|
|||||||
log.info("csv 解析完成: taskId={}, 共 {} 个轨迹点, 分 {} 批处理", taskId, allPath.size(), batchIndex);
|
log.info("csv 解析完成: taskId={}, 共 {} 个轨迹点, 分 {} 批处理", taskId, allPath.size(), batchIndex);
|
||||||
|
|
||||||
if (pathId == null) {
|
if (pathId == null) {
|
||||||
GlobalMemory.taskPathMap.put(taskId, groupByCell(allPath));
|
List<List<LatAndLngEntity>> newData = groupByCell(allPath);
|
||||||
sendMessage(taskId, allPath);
|
GlobalMemory.taskPathMap.put(taskId, newData);
|
||||||
|
|
||||||
|
sendMessage(taskId, newData);
|
||||||
} else {
|
} else {
|
||||||
// 上传到 MinIO
|
// 上传到 MinIO
|
||||||
minioUtil.uploadFile(originalFilename, gzipInputStream, "application/gzip");
|
minioUtil.uploadFile(originalFilename, gzipInputStream, "application/gzip");
|
||||||
@@ -195,7 +197,7 @@ public class HostComputerController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 定位信息 经纬度
|
* 定位信息 经纬度
|
||||||
*/
|
*/
|
||||||
private void sendMessage(Long taskId, List<LatAndLngEntity> data) {
|
private void sendMessage(Long taskId, List<List<LatAndLngEntity>> data) {
|
||||||
try {
|
try {
|
||||||
WebRouteStatusMessageDTO dto = new WebRouteStatusMessageDTO();
|
WebRouteStatusMessageDTO dto = new WebRouteStatusMessageDTO();
|
||||||
String deviceId = deviceSessionManager.getDeviceByTaskId(taskId);
|
String deviceId = deviceSessionManager.getDeviceByTaskId(taskId);
|
||||||
|
|||||||
Reference in New Issue
Block a user