From c6842e8498c2d9b469890b38cd9f0d714392c445 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期五, 01 十二月 2023 13:22:02 +0800
Subject: [PATCH] 1. 修改优化日统计和风险统计的逻辑

---
 src/main/java/com/flightfeather/monitor/analysis/dust/ExceptionAnalysisController.kt |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/flightfeather/monitor/analysis/dust/ExceptionAnalysisController.kt b/src/main/java/com/flightfeather/monitor/analysis/dust/ExceptionAnalysisController.kt
index d2bb044..e80308d 100644
--- a/src/main/java/com/flightfeather/monitor/analysis/dust/ExceptionAnalysisController.kt
+++ b/src/main/java/com/flightfeather/monitor/analysis/dust/ExceptionAnalysisController.kt
@@ -40,6 +40,7 @@
                 add(ExceptionValueMutation(it))
                 add(ExceptionDataLowValue(it))
                 add(ExceptionDataExceed(it))
+                add(ExceptionValidRate(it))
             }
         }
     }
@@ -98,15 +99,15 @@
 
     fun debugRun() {
         val result = mutableListOf<DustExceptionData>()
-        val date = LocalDate.of(2023, 7, 2)
+        val date = LocalDate.of(2023, 11, 22)
         taskList.forEach { it.init() }
         // 杞鏁版嵁锛岃绠楀悇涓紓甯�
-        val list = dustSiteDataRep.select("YZT0JS0150043", date)
+        val list = dustSiteDataRep.select("SHKJ0JS0150917", date)
         list.takeIf { it.isNotEmpty() }?.forEach { d ->
-            d?.let { taskList[0].onNextData(d) }
+            d?.let { taskList.forEach { it.onNextData(d) } }
         }
         // 鍚勪釜寮傚父鍒嗘瀽鍒嗗埆缁撴潫
-        taskList[0].onDone()
+        taskList.forEach { it.onDone() }
         // 瀛樺偍鍒嗘瀽缁撴灉
         taskList.forEach { result.addAll(it.resultList) }
         println(result)

--
Gitblit v1.9.3