1、修改算子运算结果后入库BUG

2、根据设备ID获取设备IP、设备厂商、设备名称 信息补全标准化表
3、完善告警表字段内容:syslog_normal_alarm: http_url ->alarm: victim_web_url
This commit is contained in:
2026-01-26 15:20:46 +08:00
parent 6603c6f4a1
commit cf6b89ea94
23 changed files with 1941 additions and 52 deletions
@@ -85,7 +85,26 @@ public class AccessLogAlertService {
log.error("加载算法配置失败: {}", e.getMessage(), e);
}
}
/**
* 批量处理开关 - 避免重复处理
*/
private AtomicBoolean processing = new AtomicBoolean(false);
/**
* 安全的定时任务入口
*/
@Scheduled(cron = "0 */2 * * * ?")
public void safeProcessTask() {
if (processing.compareAndSet(false, true)) {
try {
processAccessLogAlert();
} finally {
processing.set(false);
}
} else {
log.warn("上一个任务仍在执行中,跳过本次执行");
}
}
/**
* 定时任务入口 - 每2分钟执行一次
*/
@@ -372,26 +391,7 @@ public class AccessLogAlertService {
}
}
/**
* 批量处理开关 - 避免重复处理
*/
private AtomicBoolean processing = new AtomicBoolean(false);
/**
* 安全的定时任务入口
*/
@Scheduled(cron = "0 */2 * * * ?")
public void safeProcessTask() {
if (processing.compareAndSet(false, true)) {
try {
processAccessLogAlert();
} finally {
processing.set(false);
}
} else {
log.warn("上一个任务仍在执行中,跳过本次执行");
}
}
}