diff --git a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/DutyNoticeScheduledTask.java b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/DutyNoticeScheduledTask.java index bba9fe6..ffd7788 100644 --- a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/DutyNoticeScheduledTask.java +++ b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/DutyNoticeScheduledTask.java @@ -51,7 +51,7 @@ public class DutyNoticeScheduledTask { * realId刷新 */ @XxlJob(DUTY_NOTICE) -// @Scheduled(cron = "0 */1 * * * ? ") + //@Scheduled(cron = "0 */1 * * * ? ") public ReturnT dutyNotice(String param) throws ParseException { if (Func.isBlank(param)) { param = DateUtil.format(new Date(), "yyyy-MM-dd"); diff --git a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/MonitorScheduledTask.java b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/MonitorScheduledTask.java index bdaa7dd..15e3cf7 100644 --- a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/MonitorScheduledTask.java +++ b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/MonitorScheduledTask.java @@ -58,7 +58,7 @@ public class MonitorScheduledTask { * @return ReturnT */ @XxlJob(CENTRALIZED_MONITORING) - // @Scheduled(cron = "0/40 * * * * ? ") + //@Scheduled(cron = "0/40 * * * * ? ") public ReturnT loadMonitoring(String param) { if (Func.isBlank(param)) { param = DateUtil.format(new Date(), "yyyy-MM"); diff --git a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/RealTargetScheduledTask.java b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/RealTargetScheduledTask.java index 5e84cdf..4221363 100644 --- a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/RealTargetScheduledTask.java +++ b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/RealTargetScheduledTask.java @@ -47,9 +47,8 @@ public class RealTargetScheduledTask { * 水电站-机组实时加载 */ //@XxlJob(LOAD_HYDROPOWER_UNIT_REAL) - @Scheduled(cron = "0/40 * * * * ? ") - public ReturnT loadHydropowerReal() { - String param = ""; + //@Scheduled(cron = "0/40 * * * * ? ") + public ReturnT loadHydropowerReal(String param) { if (Func.isBlank(param)) { param = DateUtil.format(new Date(), "yyyy-MM"); } diff --git a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/ReportScheduledTask.java b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/ReportScheduledTask.java index 8ac3029..33571bd 100644 --- a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/ReportScheduledTask.java +++ b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/ReportScheduledTask.java @@ -78,7 +78,7 @@ public class ReportScheduledTask { * @return ReturnT */ @XxlJob(RUM_MONTH_REPORT) - // @Scheduled(cron = "0/40 * * * * ? ") + //@Scheduled(cron = "0/40 * * * * ? ") public ReturnT runMonthReport(String param) { if (Func.isBlank(param)) { param = DateUtil.format(new Date(), DateUtil.PATTERN_DATETIME); diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/vRView/scheduled/TimeTask.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/vRView/scheduled/TimeTask.java index e012827..b16c26f 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/vRView/scheduled/TimeTask.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/vRView/scheduled/TimeTask.java @@ -17,9 +17,9 @@ public class TimeTask { /** * 定时获取热点数据 */ - @Scheduled(cron = "0/10 * * * * ?") - //@XxlJob(TASK_TIMING_PUSH_HOT_SPOT_DATA) - public ReturnT getTimingPushHotSpotData() throws Exception { + //@Scheduled(cron = "0/10 * * * * ?") + @XxlJob(TASK_TIMING_PUSH_HOT_SPOT_DATA) + public ReturnT getTimingPushHotSpotData(String param) throws Exception { HzWebSocketServer webSocketSet = new HzWebSocketServer(); try { webSocketSet.sendFind();