From 0b48150dbf7b973060b86ca39073b73e33a97bd6 Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Wed, 6 Dec 2023 10:57:15 +0800 Subject: [PATCH] =?UTF-8?q?#=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hzims/scheduled/scheduled/RealTargetScheduledTask.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 75b7745..990282c 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 @@ -14,6 +14,7 @@ import org.springframework.stereotype.Component; import java.util.Arrays; import java.util.Date; +import static com.hnac.hzims.fdp.constants.ScheduledConstant.LOAD_EM_INFO; import static com.hnac.hzims.operational.main.constant.MainConstants.*; @@ -33,8 +34,8 @@ public class RealTargetScheduledTask { * @return * @throws Exception */ -// @XxlJob(LOAD_EM_INFO) -// @Scheduled(cron = "0/40 * * * * ? ") + @XxlJob(LOAD_EM_INFO) + //@Scheduled(cron = "0/40 * * * * ? ") public ReturnT loadEmInfo() { service.loadEmInfo(); return new ReturnT<>("SUCCESS"); @@ -128,8 +129,8 @@ public class RealTargetScheduledTask { /** * 获取站点近3年发电量数据 */ -// @XxlJob(ELECTRICITY_GENERATION_RECENT_YEAR) - @Scheduled(cron = "0/40 * * * * ? ") + @XxlJob(ELECTRICITY_GENERATION_RECENT_YEAR) + //@Scheduled(cron = "0/40 * * * * ? ") public ReturnT loadPowerData() { // if (Func.isBlank(param)) { // param = DateUtil.format(new Date(), "yyyy-MM"); @@ -141,8 +142,8 @@ public class RealTargetScheduledTask { * 获取風電和儲能站点近3年发电量数据 */ private final static String wind_recent_year_power_data = "hzims:operation:wind:power:data"; -// @XxlJob(WIND_POWER_GENERATION_RECENT_YEAR) - @Scheduled(cron = "0/40 * * * * ? ") + @XxlJob(WIND_POWER_GENERATION_RECENT_YEAR) + //@Scheduled(cron = "0/40 * * * * ? ") public ReturnT loadWindPowerData() { // if (Func.isBlank(param)) { // param = DateUtil.format(new Date(), "yyyy-MM");