From 94fee0b511279679b43e210878d3d36e5a14384b Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 30 九月 2025 09:14:10 +0800
Subject: [PATCH] 2025.9.30 1. 新增走航任务统计功能

---
 src/main/kotlin/com/flightfeather/uav/biz/report/MissionReport.kt |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/main/kotlin/com/flightfeather/uav/biz/report/MissionReport.kt b/src/main/kotlin/com/flightfeather/uav/biz/report/MissionReport.kt
index a2c474d..e898e97 100644
--- a/src/main/kotlin/com/flightfeather/uav/biz/report/MissionReport.kt
+++ b/src/main/kotlin/com/flightfeather/uav/biz/report/MissionReport.kt
@@ -6,12 +6,14 @@
 import com.flightfeather.uav.biz.dataprocess.PreData
 import com.flightfeather.uav.common.chart.DataToChartUtil
 import com.flightfeather.uav.common.exception.BizException
+import com.flightfeather.uav.common.location.LocationRoadNearby
 import com.flightfeather.uav.common.pdf.GeneratePdfUtil
 import com.flightfeather.uav.common.utils.DateUtil
 import com.flightfeather.uav.common.utils.ImageUtil
 import com.flightfeather.uav.domain.entity.Mission
 import com.flightfeather.uav.domain.repository.MissionRep
 import com.flightfeather.uav.domain.repository.RealTimeDataRep
+import com.flightfeather.uav.domain.repository.SegmentInfoRep
 import org.springframework.beans.BeanUtils
 import org.springframework.beans.factory.annotation.Value
 import org.springframework.stereotype.Component
@@ -24,12 +26,17 @@
  */
 @Component
 class MissionReport(
-    private val exceptionAnalysisController: ExceptionAnalysisController,
     private val missionRep: MissionRep,
     private val realTimeDataRep: RealTimeDataRep,
+    private val locationRoadNearby: LocationRoadNearby,
+    private val segmentInfoRep: SegmentInfoRep,
     @Value("\${filePath}")
     private val filePath: String,
 ) {
+
+    private val exceptionAnalysisController =
+        ExceptionAnalysisController(realTimeDataRep, locationRoadNearby, segmentInfoRep)
+
     data class Param(
         val district: String,
         val town: String,
@@ -105,7 +112,7 @@
 
     // 鑾峰彇寮傚父鍒嗘瀽缁撴灉
     fun exceptionAnalysis(mission: Mission, factorFilter: FactorFilter): List<ExceptionResult> {
-        return exceptionAnalysisController.run(mission, factorFilter)
+        return exceptionAnalysisController.execute(mission, factorFilter)
     }
 
     // 璁$畻鍧囧�煎拰鏁版嵁鑼冨洿

--
Gitblit v1.9.3