From b34727ebd73a4f346d53730865e83fd5b3e5a0ef Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期四, 26 十月 2023 16:36:37 +0800 Subject: [PATCH] 1. 新增定时任务和定时任务日志数据库表映射; 2. 修改异常分析和日、月统计分析定时任务的执行逻辑 --- src/main/java/com/flightfeather/monitor/analysis/dust/BaseDustExceptionAnalysis.kt | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/flightfeather/monitor/analysis/dust/BaseDustExceptionAnalysis.kt b/src/main/java/com/flightfeather/monitor/analysis/dust/BaseDustExceptionAnalysis.kt index 35cb387..c96f0b0 100644 --- a/src/main/java/com/flightfeather/monitor/analysis/dust/BaseDustExceptionAnalysis.kt +++ b/src/main/java/com/flightfeather/monitor/analysis/dust/BaseDustExceptionAnalysis.kt @@ -32,15 +32,15 @@ /** * 鐢熸垚涓�鏉″紓甯稿垎鏋愮粨鏋� */ - protected fun newResult(p: DustSiteData?, n: DustSiteData): DustExceptionData { + open fun newResult(p: DustSiteData, n: DustSiteData?): DustExceptionData { val eType = getExceptionType() return DustExceptionData().apply { - mnCode = n.mnCode + mnCode = p.mnCode exception = eType.des exceptionType = eType.value region = config.region - beginTime = if (p == null) n.lst else p.lst - endTime = n.lst + beginTime = p.lst + endTime = if (n == null) p.lst else n.lst } } } \ No newline at end of file -- Gitblit v1.9.3