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");