|
|
|
@ -29,10 +29,9 @@ public class MonitorScheduledTask {
|
|
|
|
|
/** |
|
|
|
|
* realId刷新 |
|
|
|
|
*/ |
|
|
|
|
//@XxlJob(REAL_ID_DATA)
|
|
|
|
|
@Scheduled(cron = "0/40 * * * * ? ") |
|
|
|
|
public ReturnT<String> loadRealId() { |
|
|
|
|
String param = ""; |
|
|
|
|
@XxlJob(REAL_ID_DATA) |
|
|
|
|
//@Scheduled(cron = "0/40 * * * * ? ")
|
|
|
|
|
public ReturnT<String> loadRealId(String param) { |
|
|
|
|
if (Func.isBlank(param)) { |
|
|
|
|
param = DateUtil.format(new Date(), "yyyy-MM"); |
|
|
|
|
} |
|
|
|
@ -44,10 +43,9 @@ public class MonitorScheduledTask {
|
|
|
|
|
* 实时数据刷新 |
|
|
|
|
* @return ReturnT<String> |
|
|
|
|
*/ |
|
|
|
|
//@XxlJob(REAL_TIME_DATA)
|
|
|
|
|
@Scheduled(cron = "0/40 * * * * ? ") |
|
|
|
|
public ReturnT<String> loadRealData() { |
|
|
|
|
String param = ""; |
|
|
|
|
@XxlJob(REAL_TIME_DATA) |
|
|
|
|
//@Scheduled(cron = "0/40 * * * * ? ")
|
|
|
|
|
public ReturnT<String> loadRealData(String param) { |
|
|
|
|
if (Func.isBlank(param)) { |
|
|
|
|
param = DateUtil.format(new Date(), "yyyy-MM"); |
|
|
|
|
} |
|
|
|
@ -59,10 +57,9 @@ public class MonitorScheduledTask {
|
|
|
|
|
* 站点在线状态同步 |
|
|
|
|
* @return ReturnT<String> |
|
|
|
|
*/ |
|
|
|
|
//@XxlJob(REAL_TIME_DATA)
|
|
|
|
|
@Scheduled(cron = "0/40 * * * * ? ") |
|
|
|
|
public ReturnT<String> loadStationOnLine() { |
|
|
|
|
String param = ""; |
|
|
|
|
@XxlJob(REAL_TIME_DATA) |
|
|
|
|
//@Scheduled(cron = "0/40 * * * * ? ")
|
|
|
|
|
public ReturnT<String> loadStationOnLine(String param) { |
|
|
|
|
if (Func.isBlank(param)) { |
|
|
|
|
param = DateUtil.format(new Date(), "yyyy-MM"); |
|
|
|
|
} |
|
|
|
@ -75,10 +72,9 @@ public class MonitorScheduledTask {
|
|
|
|
|
* 集中监控数据处理 |
|
|
|
|
* @return ReturnT<String> |
|
|
|
|
*/ |
|
|
|
|
//@XxlJob(CENTRALIZED_MONITORING)
|
|
|
|
|
@Scheduled(cron = "0/4 * * * * ? ") |
|
|
|
|
public ReturnT<String> loadMonitoring() { |
|
|
|
|
String param = ""; |
|
|
|
|
@XxlJob(CENTRALIZED_MONITORING) |
|
|
|
|
//@Scheduled(cron = "0/4 * * * * ? ")
|
|
|
|
|
public ReturnT<String> loadMonitoring(String param) { |
|
|
|
|
if (Func.isBlank(param)) { |
|
|
|
|
param = DateUtil.format(new Date(), "yyyy-MM"); |
|
|
|
|
} |
|
|
|
|