定时任务注解处理
This commit is contained in:
parent
f98a4cc460
commit
d5332e29e6
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user