1
zj
2024-06-13 8eea5be3b36875bd4ffe70e6c3a5bb07b1d829bf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.yami.trading.huobi.data.job;
 
import com.yami.trading.huobi.data.internal.KlineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
@Component
public class CleanDataJob {
    @Autowired
    private KlineService klineService;
 
    @Scheduled(cron = "0 0 4 * * ?")
    public void taskJob() {
        klineService.clean();
    }
 
}