|
@@ -5,6 +5,7 @@ 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;
|
|
@@ -38,7 +39,7 @@ public class InsureEmailSchedule {
|
|
|
|
|
|
|
|
|
//保险过期
|
|
|
-// @Scheduled(fixedDelay = 60*60* 1000)
|
|
|
+ @Scheduled(fixedDelay = 60* 1000)
|
|
|
public void task3(){
|
|
|
agreementLogic.offInsure();
|
|
|
}
|