From 6c1e7c5ac983301c34f003415cda2ef7c7e176a6 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 09 一月 2025 17:34:11 +0800
Subject: [PATCH] 1. 新增卫星遥测网格4个顶点坐标计算逻辑

---
 src/main/kotlin/com/flightfeather/uav/lightshare/service/SatelliteTelemetryService.kt |   30 +++++++++++++++++++++++++++++-
 1 files changed, 29 insertions(+), 1 deletions(-)

diff --git a/src/main/kotlin/com/flightfeather/uav/lightshare/service/SatelliteTelemetryService.kt b/src/main/kotlin/com/flightfeather/uav/lightshare/service/SatelliteTelemetryService.kt
index 8263119..523f345 100644
--- a/src/main/kotlin/com/flightfeather/uav/lightshare/service/SatelliteTelemetryService.kt
+++ b/src/main/kotlin/com/flightfeather/uav/lightshare/service/SatelliteTelemetryService.kt
@@ -1,15 +1,20 @@
 package com.flightfeather.uav.lightshare.service
 
+import com.flightfeather.uav.common.exception.BizException
+import com.flightfeather.uav.domain.entity.GridAod
 import com.flightfeather.uav.domain.entity.GridCell
 import com.flightfeather.uav.domain.entity.GridData
 import com.flightfeather.uav.domain.entity.GridDataDetail
 import com.flightfeather.uav.domain.entity.GridGroup
 import com.flightfeather.uav.lightshare.bean.AreaVo
 import com.flightfeather.uav.lightshare.bean.DataHead
+import com.flightfeather.uav.lightshare.bean.GridDataImportResult
+import org.springframework.web.multipart.MultipartFile
 import java.time.LocalDateTime
+import javax.servlet.http.HttpServletResponse
 
 /**
- *
+ * 鍗槦閬ユ祴鐩稿叧service鏈嶅姟鎺ュ彛
  * @date 2024/12/5
  * @author feiyu02
  */
@@ -22,4 +27,27 @@
     fun fetchGridData(groupId: Int, dataTime: LocalDateTime?, type: Int?): List<GridData?>
 
     fun fetchGridDataDetail(dataId: Int, groupId: Int?, cellId: Int?): List<GridDataDetail?>
+
+    /**
+     * 鏁版嵁铻嶅悎
+     */
+    fun mixGridData(dataIdList: List<Int>): List<GridData?>
+
+    @Throws(BizException::class)
+    fun importGridData(groupId: Int, dataTime: LocalDateTime?, update: Boolean, file: MultipartFile): GridDataImportResult?
+
+    fun downloadTemplate(response: HttpServletResponse): Boolean
+
+    fun fetchGridAod(groupId: Int, dataTime: LocalDateTime?): List<GridAod?>
+
+    @Throws(BizException::class)
+    fun importGridAOD(groupId: Int, dataTime: LocalDateTime?, update: Boolean, file: MultipartFile): GridDataImportResult?
+
+    fun downloadAODTemplate(response: HttpServletResponse): Boolean
+
+    /**
+     * 鏍规嵁鍗槦閬ユ祴缃戞牸鐨勪腑蹇冨潗鏍囩偣锛岃绠楃綉鏍�4涓《鐐瑰潗鏍�
+     * @param groupId 缃戞牸缁勭储寮昳d
+     */
+    fun calGridVertex(groupId: Int): List<GridCell?>
 }
\ No newline at end of file

--
Gitblit v1.9.3