Explorar el Código

修改定时分账时间

plf hace 4 años
padre
commit
265410f6b1
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. 2 3
      src/main/java/com/caimei/task/SplitAccountTask.java

+ 2 - 3
src/main/java/com/caimei/task/SplitAccountTask.java

@@ -1,7 +1,6 @@
 package com.caimei.task;
 
 import com.caimei.service.PayOrderService;
-import org.springframework.beans.factory.annotation.Value;
 import org.springframework.scheduling.annotation.EnableScheduling;
 import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Component;
@@ -24,8 +23,8 @@ public class SplitAccountTask {
     /**
      * 延时分账,每一小时执行一次
      */
-    //@Scheduled(cron = "0 0 * * * ?")
-    @Scheduled(cron = "0 */1 * * * ?")
+    @Scheduled(cron = "0 0 * * * ?")
+    //@Scheduled(cron = "0 */1 * * * ?")
     public void delayedSplitting() {
         payOrderService.delayedSplitting();
     }