|
|
|
@ -8,7 +8,6 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springblade.core.tool.utils.DateUtil; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.scheduling.annotation.Scheduled; |
|
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
@ -49,6 +48,7 @@ public class GenerationScheduledTask {
|
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@XxlJob(THIRTY_DAY_POWER_GENERATION) |
|
|
|
|
//@Scheduled(cron = "0/40 * * * * ? ")
|
|
|
|
|
public ReturnT<String> thirtyDayPowerGeneration(String param) { |
|
|
|
|
if (Func.isBlank(param)) { |
|
|
|
|
param = DateUtil.format(new Date(), "yyyy-MM"); |
|
|
|
@ -63,6 +63,7 @@ public class GenerationScheduledTask {
|
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@XxlJob(THIS_DAY_POWER_GENERATION) |
|
|
|
|
//@Scheduled(cron = "0/40 * * * * ? ")
|
|
|
|
|
public ReturnT<String> thisDayPowerGeneration(String param) { |
|
|
|
|
if (Func.isBlank(param)) { |
|
|
|
|
param = DateUtil.format(new Date(), "yyyy-MM"); |
|
|
|
@ -77,6 +78,7 @@ public class GenerationScheduledTask {
|
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@XxlJob(LOAD_THREE_YEAR_POWER_GENERATION) |
|
|
|
|
//@Scheduled(cron = "0/40 * * * * ? ")
|
|
|
|
|
public ReturnT<String> loadThreeYearPowerGeneration(String param) { |
|
|
|
|
if (Func.isBlank(param)) { |
|
|
|
|
param = DateUtil.format(new Date(), "yyyy-MM"); |
|
|
|
|