riku
2025-08-28 3bb4fb15c664d29d179083698fdad35a661b1d7f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.flightfeather.uav.lightshare.service
 
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(
        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>
}