From 8c6e742562d0c8647e0ee8deff01a3eb176d677b Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期二, 02 九月 2025 17:30:47 +0800 Subject: [PATCH] 2025.9.2 1. 新增走航任务统计功能(待完成) --- src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/model/PollutedSource.kt | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/model/PollutedSource.kt b/src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/model/PollutedSource.kt index d25f252..4b4adee 100644 --- a/src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/model/PollutedSource.kt +++ b/src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/model/PollutedSource.kt @@ -62,13 +62,14 @@ val closePolygonTmp = pollutedArea.closePolygon!! val closeFb = MapUtil.calFourBoundaries(closePolygonTmp) val closeSceneList = sceneInfoRep.findByCoordinateRange(closeFb) - // 2. 鍐嶇簿纭垽鏂槸鍚﹀湪鍙嶅悜婧簮鍖哄煙澶氳竟褰㈠唴閮� closeSceneList.forEach { val point = it!!.longitude.toDouble() to it.latitude.toDouble() if (MapUtil.isPointInPolygon(point, closePolygonTmp)) { result.add(it) } } + // 鍘婚噸 + result = result.distinctBy { it.guid }.toMutableList() // 鏍规嵁姹℃煋鍥犲瓙鐨勯噺绾э紝璁$畻涓昏鐨勬薄鏌撳満鏅被鍨嬶紝绛涢�夌粨鏋� val mainSceneType = calSceneType(pollutedData) -- Gitblit v1.9.3