package com.zy.asrs.task;
|
|
import com.zy.common.service.WatchService;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.scheduling.annotation.Scheduled;
|
import org.springframework.stereotype.Component;
|
|
@Slf4j
|
@Component
|
public class ClearWatchDataScheduler {
|
|
@Autowired
|
private WatchService watchService;
|
|
@Scheduled(cron = "0/5 * * * * ? ")
|
public void clear() {
|
watchService.clearTimeOutData();
|
}
|
|
|
}
|