| | |
| | | import org.springframework.scheduling.annotation.Scheduled;
|
| | | import org.springframework.stereotype.Component;
|
| | |
|
| | | import com.yeshi.fanli.service.inter.user.ExtractRecordService;
|
| | | import com.yeshi.fanli.service.inter.user.PassWordErrorRecordService;
|
| | | import com.yeshi.fanli.service.inter.money.extract.ExtractRecordService;
|
| | |
|
| | | @Component
|
| | | public class DeleteRecordJob {
|
| | |
| | | @Resource
|
| | | private ExtractRecordService extractRecordService;
|
| | |
|
| | | @Resource
|
| | | private PassWordErrorRecordService passWordErrorRecordService;
|
| | | |
| | |
|
| | | //每天0点 清除ExtractRecord表中记录
|
| | | @Scheduled(cron = "0 0 0 * * ?")
|
| | | public void deleteExtractRecord() {
|
| | | extractRecordService.deleteExtractRecord();
|
| | | }
|
| | | |
| | | //每天0点 清除yeshi_ec_password_error_record表中记录
|
| | | @Scheduled(cron = "0 0 0 * * ?")
|
| | | public void deletePasswordErrorRecord() {
|
| | | passWordErrorRecordService.deletePasswordErrorRecord();
|
| | | }
|
| | |
|
| | |
|
| | | }
|