Commit f3f15971 authored by 罗林杰's avatar 罗林杰

修改定时任务缓存

parent 4f89e919
......@@ -91,6 +91,9 @@ public class MemInfoServiceImpl extends ServiceImpl<MemInfoRepository,MemInfo>
private MemInfoRepository memInfoRepository;
@Autowired
private MemGoldCoinFlowRepository memGoldCoinFlowRepository;
@Autowired
private SysScheduledTaskLogService sysScheduledTaskLogServiceImpl;
@Value("${cy.init.password}")
private String password;
......@@ -782,6 +785,12 @@ public class MemInfoServiceImpl extends ServiceImpl<MemInfoRepository,MemInfo>
} else {
System.out.println("No keys found.");
}
SysScheduledTaskLog sysScheduledTaskLog = new SysScheduledTaskLog();
sysScheduledTaskLog.setTaskName("用户点赞数据定时任务");
sysScheduledTaskLog.setTaskState("成功");
sysScheduledTaskLog.setTaskTime("每2小时执行一次");
sysScheduledTaskLog.setCreateDate(new Date());
sysScheduledTaskLogServiceImpl.persist(sysScheduledTaskLog);
log.info("用户点赞数据定时任务结束---");
}
......
......@@ -82,7 +82,7 @@ public class ScheduleTasks {
/**
* 退款确认补救
*/
@Scheduled(cron = "0 0/30 * * * ?")
@Scheduled(cron = "0 * * * * ?")
public void executeRefundConfirmOrder() throws IOException, JDOMException {
orderService.executeRefundConfirmOrder();
}
......@@ -90,7 +90,7 @@ public class ScheduleTasks {
/**
* 订单缓存清除
*/
@Scheduled(cron = "0 0 1 * * ?")
@Scheduled(cron = "0 * * * * ?")
public void executeDeleteOrder() {
orderService.executeDeleteOrder();
}
......@@ -98,7 +98,7 @@ public class ScheduleTasks {
/**
* 定时更新访问量表
*/
@Scheduled(cron = "0 * * * * ?")
@Scheduled(cron = "0 0/15 * * * ?")
public void memTrafficSchedule() {
memTrafficService.memTrafficSchedule();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment