From 8a457c61e4079ee92864ea57abe92fc094050bc0 Mon Sep 17 00:00:00 2001
From: 换个名字嗨起来 <577530412@qq.com>
Date: Thu, 25 Jul 2024 13:30:05 +0800
Subject: [PATCH] 关闭专项任务,调整数据上报频次
---
src/main/java/com/ruoyi/doublePrevention/scheduls/ExecCJReportDateSchedule.java | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/ruoyi/doublePrevention/scheduls/ExecCJReportDateSchedule.java b/src/main/java/com/ruoyi/doublePrevention/scheduls/ExecCJReportDateSchedule.java
index 499132d..d525391 100644
--- a/src/main/java/com/ruoyi/doublePrevention/scheduls/ExecCJReportDateSchedule.java
+++ b/src/main/java/com/ruoyi/doublePrevention/scheduls/ExecCJReportDateSchedule.java
@@ -95,9 +95,8 @@
@Transactional
// @Scheduled(cron = "0 0 23 * * ?") //每天晚上23点执行一次0 0 22,23 * * ?
// @Scheduled(cron = "0 0 22,23 * * ?") //每天晚上22、23点执行一次
-// @Scheduled(cron = "0 0/1 * * * ? ") // 分钟
- @Scheduled(cron = "0 0/20 * * * ? ") // 分钟
- //@Scheduled(cron = "0/30 * * * * ?")
+ @Scheduled(cron = "0 0/10 * * * ? ") // 分钟
+// @Scheduled(cron = "0/30 * * * * ?")
public void execReportDateSchedule() throws UnsupportedEncodingException {
logger.info("【####】上报数据开始...");
@@ -116,7 +115,7 @@
//使用风险分析单元数据上报主配置,作为自动上报开关
PreventReportConfig reportConfig = preventReportConfigService.getReportConfigById(SyncEnum.REPORT_CONFIG_RISK_ANA_UNIT.getCode());
- if (reportConfig.getReportState() == 0){
+ if (reportConfig.getReportType() == 0){
return;
}
--
Gitblit v1.9.2