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.money.extract.ExtractRecordService;
|
|
@Component
|
public class DeleteRecordJob {
|
|
@Resource
|
private ExtractRecordService extractRecordService;
|
|
|
//每天0点 清除ExtractRecord表中记录
|
@Scheduled(cron = "0 0 0 * * ?")
|
public void deleteExtractRecord() {
|
extractRecordService.deleteExtractRecord();
|
}
|
|
|
}
|