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/test/java/com/flightfeather/monitor/analysis/dust/ExceptionAnalysisControllerTest.kt |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/test/java/com/flightfeather/monitor/analysis/dust/ExceptionAnalysisControllerTest.kt b/src/test/java/com/flightfeather/monitor/analysis/dust/ExceptionAnalysisControllerTest.kt
index 176526f..fbe0ee1 100644
--- a/src/test/java/com/flightfeather/monitor/analysis/dust/ExceptionAnalysisControllerTest.kt
+++ b/src/test/java/com/flightfeather/monitor/analysis/dust/ExceptionAnalysisControllerTest.kt
@@ -1,12 +1,13 @@
 package com.flightfeather.monitor.analysis.dust
 
-import org.junit.jupiter.api.Test
+import org.junit.Test
 import org.junit.jupiter.api.extension.ExtendWith
 import org.junit.runner.RunWith
 import org.springframework.beans.factory.annotation.Autowired
 import org.springframework.boot.test.context.SpringBootTest
 import org.springframework.test.context.junit.jupiter.SpringExtension
 import org.springframework.test.context.junit4.SpringRunner
+import java.time.Duration
 import java.time.LocalDate
 
 @RunWith(SpringRunner::class)
@@ -26,8 +27,12 @@
     @Test
     fun run() {
         exceptionAnalysisController.init()
-        val d = LocalDate.of(2023, 7, 2)
-        exceptionAnalysisController.run(d)
+        var d1 = LocalDate.of(2023, 11, 27)
+        val d2 = LocalDate.of(2023, 11, 27)
+        while (d1.isEqual(d2) || d1.isBefore(d2)) {
+            exceptionAnalysisController.run(d1)
+            d1 = d1.plusDays(1)
+        }
 //        exceptionAnalysisController.debugRun()
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3