|
|
@ -14,6 +14,7 @@ import org.springframework.stereotype.Component; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.Date; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static com.hnac.hzims.fdp.constants.ScheduledConstant.LOAD_EM_INFO; |
|
|
|
import static com.hnac.hzims.operational.main.constant.MainConstants.*; |
|
|
|
import static com.hnac.hzims.operational.main.constant.MainConstants.*; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -33,8 +34,8 @@ public class RealTargetScheduledTask { |
|
|
|
* @return |
|
|
|
* @return |
|
|
|
* @throws Exception |
|
|
|
* @throws Exception |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
// @XxlJob(LOAD_EM_INFO)
|
|
|
|
@XxlJob(LOAD_EM_INFO) |
|
|
|
// @Scheduled(cron = "0/40 * * * * ? ")
|
|
|
|
//@Scheduled(cron = "0/40 * * * * ? ")
|
|
|
|
public ReturnT<String> loadEmInfo() { |
|
|
|
public ReturnT<String> loadEmInfo() { |
|
|
|
service.loadEmInfo(); |
|
|
|
service.loadEmInfo(); |
|
|
|
return new ReturnT<>("SUCCESS"); |
|
|
|
return new ReturnT<>("SUCCESS"); |
|
|
@ -128,8 +129,8 @@ public class RealTargetScheduledTask { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取站点近3年发电量数据 |
|
|
|
* 获取站点近3年发电量数据 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
// @XxlJob(ELECTRICITY_GENERATION_RECENT_YEAR)
|
|
|
|
@XxlJob(ELECTRICITY_GENERATION_RECENT_YEAR) |
|
|
|
@Scheduled(cron = "0/40 * * * * ? ") |
|
|
|
//@Scheduled(cron = "0/40 * * * * ? ")
|
|
|
|
public ReturnT<String> loadPowerData() { |
|
|
|
public ReturnT<String> loadPowerData() { |
|
|
|
// if (Func.isBlank(param)) {
|
|
|
|
// if (Func.isBlank(param)) {
|
|
|
|
// param = DateUtil.format(new Date(), "yyyy-MM");
|
|
|
|
// param = DateUtil.format(new Date(), "yyyy-MM");
|
|
|
@ -141,8 +142,8 @@ public class RealTargetScheduledTask { |
|
|
|
* 获取風電和儲能站点近3年发电量数据 |
|
|
|
* 获取風電和儲能站点近3年发电量数据 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private final static String wind_recent_year_power_data = "hzims:operation:wind:power:data"; |
|
|
|
private final static String wind_recent_year_power_data = "hzims:operation:wind:power:data"; |
|
|
|
// @XxlJob(WIND_POWER_GENERATION_RECENT_YEAR)
|
|
|
|
@XxlJob(WIND_POWER_GENERATION_RECENT_YEAR) |
|
|
|
@Scheduled(cron = "0/40 * * * * ? ") |
|
|
|
//@Scheduled(cron = "0/40 * * * * ? ")
|
|
|
|
public ReturnT<String> loadWindPowerData() { |
|
|
|
public ReturnT<String> loadWindPowerData() { |
|
|
|
// if (Func.isBlank(param)) {
|
|
|
|
// if (Func.isBlank(param)) {
|
|
|
|
// param = DateUtil.format(new Date(), "yyyy-MM");
|
|
|
|
// param = DateUtil.format(new Date(), "yyyy-MM");
|
|
|
|