From eb3dd00b0b7fcda477229d518d250f9c842b790b Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 21 十月 2025 17:45:44 +0800
Subject: [PATCH] 2025.10.21 1. 走航季度报告相关数据计算逻辑调整
---
src/main/kotlin/com/flightfeather/uav/biz/FactorFilter.kt | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 53 insertions(+), 1 deletions(-)
diff --git a/src/main/kotlin/com/flightfeather/uav/biz/FactorFilter.kt b/src/main/kotlin/com/flightfeather/uav/biz/FactorFilter.kt
index 3589b05..b227bc4 100644
--- a/src/main/kotlin/com/flightfeather/uav/biz/FactorFilter.kt
+++ b/src/main/kotlin/com/flightfeather/uav/biz/FactorFilter.kt
@@ -28,6 +28,11 @@
return this
}
+ fun withCombination(com: List<List<FactorType>>):Builder{
+ combination.addAll(com)
+ return this
+ }
+
fun create(): FactorFilter {
return this@FactorFilter
}
@@ -35,12 +40,59 @@
companion object{
fun builder() = FactorFilter().Builder()
- fun default() = builder().create()
+ fun default() = builder()
+ .withMain(FactorType.VOC)
+ .withSubs(listOf(
+// FactorType.H2S,
+ FactorType.O3,
+ FactorType.PM25,
+ FactorType.PM10,
+ ))
+// .withMain(FactorType.H2S)
+// .withSubs(listOf(
+// FactorType.VOC,
+// FactorType.O3,
+// FactorType.PM25,
+// ))
+ .withMain(FactorType.O3)
+ .withSubs(listOf(
+ FactorType.VOC,
+// FactorType.H2S,
+ FactorType.PM25,
+ FactorType.PM10,
+ ))
+ .withMain(FactorType.PM25)
+ .withSubs(listOf(
+ FactorType.VOC,
+// FactorType.H2S,
+ FactorType.O3,
+ FactorType.PM10,
+ ))
+ .withMain(FactorType.PM10)
+ .withSubs(listOf(
+ FactorType.VOC,
+// FactorType.H2S,
+ FactorType.O3,
+ FactorType.PM25,
+ ))
+// .withSubs(listOf(
+// FactorType.NO2,
+// FactorType.CO,
+// FactorType.SO2,
+// FactorType.O3,
+// FactorType.PM25,
+// FactorType.PM10,
+// FactorType.VOC
+// ))
+ .create()
}
// 鎵�閫夊洜瀛愰泦鍚�
val selectedList = mutableListOf<SelectedFactor>()
+ // 鍥犲瓙鐨勫叧鑱斿叧绯�
+ val combination = mutableListOf<List<FactorType>>()
+
fun mainList(): List<FactorType> {
return selectedList.map { it.main }
}
--
Gitblit v1.9.3