From bf3bf9ff25ac106b556b2427cc382c8fcca63bff Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 02 七月 2024 17:38:33 +0800
Subject: [PATCH] 1. 新增走航报告自动道路识别模块
---
src/test/kotlin/com/flightfeather/uav/model/epw/EPWModelTest.kt | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/test/kotlin/com/flightfeather/uav/model/epw/EPWModelTest.kt b/src/test/kotlin/com/flightfeather/uav/model/epw/EPWModelTest.kt
index 9dccf11..f69e430 100644
--- a/src/test/kotlin/com/flightfeather/uav/model/epw/EPWModelTest.kt
+++ b/src/test/kotlin/com/flightfeather/uav/model/epw/EPWModelTest.kt
@@ -6,6 +6,7 @@
import com.flightfeather.uav.lightshare.bean.DataVo
import com.flightfeather.uav.lightshare.service.RealTimeDataService
import org.apache.poi.hssf.usermodel.HSSFWorkbook
+import org.apache.poi.xssf.streaming.SXSSFWorkbook
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.beans.BeanUtils
@@ -86,7 +87,7 @@
val deviceCode = "0d0000000001"
val epwModel = EPWModel()
- var workbook: HSSFWorkbook? = null
+ var workbook: SXSSFWorkbook? = null
var out: FileOutputStream? = null
for (i in timeSet.indices) {
@@ -95,12 +96,12 @@
var page = 1
var totalPage = -1
while (totalPage == -1 || page <= totalPage) {
- realTimeDataService.getSecondData(deviceCode, it.first, it.second, page, 10000).apply {
+ realTimeDataService.getSecondData(deviceCode, it.first, it.second, page, 0, 10000).apply {
if (totalPage == -1) {
totalPage = head?.totalPage ?: 0
}
- val dataList = data?: emptyList()
+ val dataList = data ?: emptyList()
dataList.forEach {
if (it.lng == 0.0 && it.lat == 0.0) {
--
Gitblit v1.9.3