Commit fc64184b authored by wujipeng's avatar wujipeng
Browse files

定时任务表达式修改

parent 4c4717af
......@@ -48,7 +48,7 @@ public class OpsTask {
}
//每天执行一次,七天内要到期的证书
@Scheduled(cron = "0 10 * * * ?")
@Scheduled(cron = "0 0 10 * * ?")
public void fast() {
//查询有没有本月要到期的ssl证书
//获取本月开始时间和结束时间
......
......@@ -29,7 +29,7 @@ public class ProjectTask {
private UserService userService;
//每天执行一次,七天内要到期的项目
@Scheduled(cron = "0 10 * * * ?")
@Scheduled(cron = "0 0 10 * * ?")
public void projectRemind() {
List<ProjectEntity> sevenDaysProject = projectService.selectSevenDaysProject();
//有要到期的合同,需要邮箱提醒
......
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