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/RiskAnalysisControllerTest.kt | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/test/java/com/flightfeather/monitor/analysis/dust/RiskAnalysisControllerTest.kt b/src/test/java/com/flightfeather/monitor/analysis/dust/RiskAnalysisControllerTest.kt index 839524d..96e1c03 100644 --- a/src/test/java/com/flightfeather/monitor/analysis/dust/RiskAnalysisControllerTest.kt +++ b/src/test/java/com/flightfeather/monitor/analysis/dust/RiskAnalysisControllerTest.kt @@ -21,18 +21,20 @@ @Test fun autoRunDaily() { riskAnalysisController.init() -// val s = LocalDate.of(2023, 10, 1) -// val e = LocalDate.of(2023, 10, 31) -// val du = DateUtil.findDurationDate(s, e) -// du.forEach { -// riskAnalysisController.runDaily(it) -// } - riskAnalysisController.autoRunDaily() + val s = LocalDate.of(2023, 10, 1) + val e = LocalDate.of(2023, 10, 31) + val du = DateUtil.findDurationDate(s, e) + du.forEach { + riskAnalysisController.runDaily(it) + } +// riskAnalysisController.autoRunDaily() } @Test fun autoRunMonthly() { riskAnalysisController.init() - riskAnalysisController.autoRunMonthly() + val s = LocalDate.of(2023, 10, 1) + riskAnalysisController.runMonthly(s) +// riskAnalysisController.autoRunMonthly() } } \ No newline at end of file -- Gitblit v1.9.3