|
@@ -5,7 +5,6 @@ package com.gree.mall.manager.schedule;
|
|
|
import com.gree.mall.manager.logic.policy.AgreementLogic;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
|
-import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import javax.mail.MessagingException;
|
|
@@ -25,21 +24,21 @@ public class InsureEmailSchedule {
|
|
|
|
|
|
|
|
|
//每小时执行1次
|
|
|
- @Scheduled(fixedDelay = 60*60* 1000)
|
|
|
+// @Scheduled(fixedDelay = 60*60* 1000)
|
|
|
public void task() throws IOException {
|
|
|
agreementLogic.sendEmailSche();
|
|
|
}
|
|
|
|
|
|
|
|
|
//监测今天是否有回执邮件,如果有则表示今天买保险的回执成功
|
|
|
- @Scheduled(fixedDelay = 60* 1000)
|
|
|
+// @Scheduled(fixedDelay = 60* 1000)
|
|
|
public void task2() throws IOException, MessagingException {
|
|
|
agreementLogic.receEmail();
|
|
|
}
|
|
|
|
|
|
|
|
|
//保险过期
|
|
|
- @Scheduled(fixedDelay = 60*60* 1000)
|
|
|
+// @Scheduled(fixedDelay = 60*60* 1000)
|
|
|
public void task3(){
|
|
|
agreementLogic.offInsure();
|
|
|
}
|