‘linchangsheng’ před 10 měsíci
rodič
revize
99cb63a0bb

+ 2 - 2
mall-server-api/src/main/java/com/gree/mall/manager/logic/policy/AgreementLogic.java

@@ -749,8 +749,8 @@ public class AgreementLogic {
         workerPolicyService.lambdaUpdate()
                 .ge(WorkerPolicy::getEndTime,new Date())
                 .le(WorkerPolicy::getStartTime,new Date())
-                .ne(WorkerPolicy::getStatus,PolicyOrderStatusEnum.YSX.getKey())
-                .set(WorkerPolicy::getStatus,PolicyOrderStatusEnum.YSX.getKey())
+                .ne(WorkerPolicy::getStatus,PolicyOrderStatusEnum.BZZ.getKey())
+                .set(WorkerPolicy::getStatus,PolicyOrderStatusEnum.BZZ.getKey())
                 .update();
 
         policyOrderService.lambdaUpdate()

+ 2 - 1
mall-server-api/src/main/java/com/gree/mall/manager/schedule/InsureEmailSchedule.java

@@ -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();
     }