定时任务注解处理

This commit is contained in:
tianfeng 2026-01-29 11:30:58 +08:00
parent f98a4cc460
commit d5332e29e6
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import com.red.circle.other.domain.rocket.RocketStatus;
import com.red.circle.tool.core.date.ZonedDateTimeAsiaRiyadhUtils;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
@ -24,6 +25,7 @@ import java.util.List;
@Slf4j
@Component
@RequiredArgsConstructor
@ConditionalOnProperty(name = "scheduler.rocket-status-sync", havingValue = "true", matchIfMissing = true)
public class RocketStatusSyncTask {
private final RocketStatusGateway rocketStatusGateway;

View File

@ -16,6 +16,7 @@ import com.red.circle.tool.core.date.TimestampUtils;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@ -25,6 +26,7 @@ import java.util.stream.Collectors;
@Slf4j
@Component
@RequiredArgsConstructor
@ConditionalOnProperty(name = "scheduler.cp-ranking-badge", havingValue = "true", matchIfMissing = true)
public class CpRankingBadgeTask {
private final WeekCpValueCountService weekCpValueCountService;