admin
2019-07-30 573c491b4a1ba60e12a5678a01c1546c0077c1ee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.yeshi.fanli.job;
 
import javax.annotation.Resource;
 
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
import com.yeshi.fanli.service.inter.user.ExtractRecordService;
 
@Component
public class DeleteRecordJob {
    
    @Resource
    private ExtractRecordService extractRecordService;
    
 
    //每天0点 清除ExtractRecord表中记录
    @Scheduled(cron = "0 0 0 * * ?")
    public void deleteExtractRecord() {
        extractRecordService.deleteExtractRecord();
    }
 
    
}