Commit c2a85dbc authored by wujipeng's avatar wujipeng
Browse files

优化

parent 41998311
......@@ -25,7 +25,7 @@ import java.util.Date;
@Builder
public class EmailRecordEntity {
@TableId(type = IdType.AUTO)
@TableId(type = IdType.ASSIGN_ID)
private String id;
private String name;
private String email;
......
......@@ -41,7 +41,8 @@ public class OpsTask {
private EmailRecordService emailRecordService;
//每个月一号执行一次,本月要到期的证书
@Scheduled(cron = "0 0 10 1 * ?")
// @Scheduled(cron = "0 0 10 1 * ?")
@Scheduled(cron = "0/10 * * * * ?")
@Transactional
public void slow() {
//查询有没有本月要到期的ssl证书
......@@ -79,6 +80,7 @@ public class OpsTask {
//每天执行一次,七天内要到期的证书
@Scheduled(cron = "0 0 10 * * ?")
// @Scheduled(cron = "0/10 * * * * ?")
@Transactional
public void fast() {
//查询有没有本月要到期的ssl证书
......
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