From 6d766eed50f34b102e607ea471f2ee565a8b9d30 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期五, 17 一月 2025 16:15:43 +0800 Subject: [PATCH] 1. 修改融合数据逻辑中,融合数据id数组为先排序后转换为字符串,修复同一批原始数据因为id排序不一样被判定为不同的融合数据的问题; --- src/main/kotlin/com/flightfeather/uav/biz/dataanalysis/ExceptionAnalysisController.kt | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/flightfeather/uav/biz/dataanalysis/ExceptionAnalysisController.kt b/src/main/kotlin/com/flightfeather/uav/biz/dataanalysis/ExceptionAnalysisController.kt index ed6c540..a8c9d8e 100644 --- a/src/main/kotlin/com/flightfeather/uav/biz/dataanalysis/ExceptionAnalysisController.kt +++ b/src/main/kotlin/com/flightfeather/uav/biz/dataanalysis/ExceptionAnalysisController.kt @@ -11,6 +11,7 @@ import com.flightfeather.uav.domain.entity.Mission import com.flightfeather.uav.domain.repository.RealTimeDataRep import com.flightfeather.uav.domain.repository.SegmentInfoRep +import com.flightfeather.uav.socket.eunm.UWDeviceType import org.springframework.stereotype.Component import java.time.LocalDateTime import java.time.ZoneId @@ -47,7 +48,11 @@ val result = mutableListOf<ExceptionResult>() taskList.forEach { it.init() } // 杞鏁版嵁锛岃绠楀悇涓紓甯� - realTimeDataRep.fetchData(mission.deviceCode, mission.startTime, mission.endTime).forEach { d -> + realTimeDataRep.fetchData(UWDeviceType.fromValue(mission.deviceType), + mission.deviceCode, + mission.startTime, + mission.endTime + ).forEach { d -> taskList.forEach { it.onNextData(d) } } // 鍚勪釜寮傚父鍒嗘瀽鍒嗗埆缁撴潫 @@ -87,7 +92,7 @@ private fun road(r: ExceptionResult) { val sT = LocalDateTime.ofInstant(r.startDate?.toInstant(), ZoneId.systemDefault()) val eT = LocalDateTime.ofInstant(r.endDate?.toInstant(), ZoneId.systemDefault()) - val segments = segmentInfoRep.findPeriod(sT, eT) + val segments = segmentInfoRep.findPeriod(r.missionCode, sT, eT) var txt = "" val size = segments.size segments.forEachIndexed { i, s -> -- Gitblit v1.9.3