From f1ea263462d1f3f10a886fb083536a38b03a1ceb Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期三, 14 五月 2025 17:33:04 +0800 Subject: [PATCH] 1. 新增动态污染溯源的数据异常判断逻辑 2. 新增动态污染溯源websocket连接功能 --- src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/model/RealTimeExceptionResult.kt | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/model/RealTimeExceptionResult.kt b/src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/model/RealTimeExceptionResult.kt index 86ef036..8f5d0eb 100644 --- a/src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/model/RealTimeExceptionResult.kt +++ b/src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/model/RealTimeExceptionResult.kt @@ -7,6 +7,8 @@ import com.flightfeather.uav.domain.entity.BaseRealTimeData import com.flightfeather.uav.domain.entity.SceneInfo import com.flightfeather.uav.domain.entity.avg +import com.flightfeather.uav.lightshare.bean.DataVo +import com.flightfeather.uav.lightshare.eunm.ExceptionStatusType import com.flightfeather.uav.socket.eunm.FactorType import java.math.BigDecimal @@ -16,6 +18,11 @@ * @author feiyu02 */ class RealTimeExceptionResult() : BaseExceptionResult() { + + // 寮傚父缂栧彿 + var guid: String? = null + // 寮傚父鐨勭姸鎬� + var status:Int = ExceptionStatusType.InProgress.value var deviceCode: String? = null @@ -39,10 +46,16 @@ // 寮傚父鏁版嵁锛屽ご灏惧彲鑳藉寘鍚竴瀹氶噺鐨勫亸绉� var dataList: MutableList<BaseRealTimeData> = mutableListOf() + var dataVoList: MutableList<DataVo> = mutableListOf() // 涓績鐐圭粡绾害 var longitude: BigDecimal? = null var latitude: BigDecimal? = null + + // 涓棿鏁版嵁鐐瑰潗鏍� + var midData: BaseRealTimeData? = null +// var midLongitude: BigDecimal? = null +// var midLatitude: BigDecimal? = null // 婧簮浼佷笟 var relatedSceneList: List<SceneInfo?>? = null @@ -77,7 +90,10 @@ min = s.second max = s.third - exceptionData.forEach { dataList.add(it) } + exceptionData.forEach { + dataList.add(it) + dataVoList.add(it.toDataVo()) + } } private fun dataSummary( -- Gitblit v1.9.3