#
Junjie
2025-05-23 5ac7766410dda9460fa25f727eae1bd61cb30a1a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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();
    }
 
 
}