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