From 9d4ca2e7bdfc0d634b0cc27c7fbe23740f4bb398 Mon Sep 17 00:00:00 2001
From: hcong <1050828145@qq.com>
Date: 星期五, 27 十二月 2024 15:43:30 +0800
Subject: [PATCH] 1. 新增aod数据索引,aod详细数据实体类,mapper,service 2. 新增卫星遥测数据网格数据pm2.5、aod数据导入,模板下载 3. FileExchange.kt 新增转换pm2.5和aod数据方法

---
 src/main/kotlin/com/flightfeather/uav/lightshare/service/RealTimeDataService.kt |   36 +++++++++++++++++++++++++++++++++++-
 1 files changed, 35 insertions(+), 1 deletions(-)

diff --git a/src/main/kotlin/com/flightfeather/uav/lightshare/service/RealTimeDataService.kt b/src/main/kotlin/com/flightfeather/uav/lightshare/service/RealTimeDataService.kt
index a1314d8..af71e21 100644
--- a/src/main/kotlin/com/flightfeather/uav/lightshare/service/RealTimeDataService.kt
+++ b/src/main/kotlin/com/flightfeather/uav/lightshare/service/RealTimeDataService.kt
@@ -3,13 +3,47 @@
 import com.flightfeather.uav.lightshare.bean.BaseResponse
 import com.flightfeather.uav.lightshare.bean.DataImportResult
 import com.flightfeather.uav.lightshare.bean.DataVo
+import org.apache.poi.hssf.usermodel.HSSFWorkbook
+import org.apache.poi.xssf.streaming.SXSSFWorkbook
 import org.springframework.web.multipart.MultipartFile
+import javax.servlet.http.HttpServletResponse
 
 interface RealTimeDataService {
 
-    fun getSecondData(deviceCode: String?, startTime: String?, endTime: String?, page: Int?, perPage: Int?): BaseResponse<List<DataVo>>
+    fun getSecondData(
+        deviceType: String?, deviceCode: String?, startTime: String?, endTime: String?, type: Int?,
+        page: Int?, perPage: Int?,
+    ): BaseResponse<List<DataVo>>
 
     fun getNextData(deviceCode: String, updateTime: String, page: Int?, perPage: Int?): BaseResponse<List<DataVo>>
 
+    fun getSegmentData(missionCode: String): List<List<DataVo>>
+
     fun importData(file: MultipartFile): BaseResponse<DataImportResult>
+
+    fun importJinanData(code:String, file: MultipartFile): DataImportResult
+
+    fun downloadTemplate(response: HttpServletResponse): Boolean
+
+    fun outToWorkbook(deviceCode: String, startTime: String, endTime: String): SXSSFWorkbook
+
+    fun outToExcel(deviceCode: String, startTime: String, endTime: String, response: HttpServletResponse): HttpServletResponse
+
+    fun getOriginData(deviceCode: String?, startTime: String?, endTime: String?, page: Int?, perPage: Int?): BaseResponse<List<DataVo>>
+
+    /**
+     * 鏁版嵁澶勭悊
+     * 鍘婚櫎鍘熷鏁版嵁涓殑寮傚父娉㈠姩鍊�
+     */
+    fun dataPreprocessing(): BaseResponse<String>
+
+    /**
+     * 鍧囧�艰绠楋紝灏嗙绾у�兼崲绠椾负鍒嗛挓鍧囧��
+     */
+    fun averageData(): BaseResponse<String>
+
+    /**
+     * 鏁版嵁浼樺寲锛屽湪鏁版嵁棰勫鐞嗗熀纭�涓婂仛杩涗竴姝ユ暟鎹紭鍖�
+     */
+    fun dataCalibration(): BaseResponse<String>
 }
\ No newline at end of file

--
Gitblit v1.9.3