|
|
|
@ -41,16 +41,16 @@ public class RankScheduled {
|
|
|
|
|
log.info("定时任务:==================总排名完成结束--end======================,用时:{}",timer.interval());
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@Scheduled(cron = "0 0 0 * * ?")
|
|
|
|
|
public void clearLimit(){
|
|
|
|
|
|
|
|
|
|
log.info("定时任务:==================开始重置AI使用次数======================");
|
|
|
|
|
|
|
|
|
|
StuAiLimitExample limitExample = new StuAiLimitExample();
|
|
|
|
|
limitExample.createCriteria().getAllCriteria();
|
|
|
|
|
stuAiLimitMapper.deleteByExample(limitExample);
|
|
|
|
|
log.info("定时任务:==================AI使用次数重置成功!======================");
|
|
|
|
|
}
|
|
|
|
|
// @Scheduled(cron = "0 0 0 * * ?")
|
|
|
|
|
// public void clearLimit(){
|
|
|
|
|
//
|
|
|
|
|
// log.info("定时任务:==================开始重置AI使用次数======================");
|
|
|
|
|
//
|
|
|
|
|
// StuAiLimitExample limitExample = new StuAiLimitExample();
|
|
|
|
|
// limitExample.createCriteria().getAllCriteria();
|
|
|
|
|
// stuAiLimitMapper.deleteByExample(limitExample);
|
|
|
|
|
// log.info("定时任务:==================AI使用次数重置成功!======================");
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|