浏览代码

定时任务

Jxing 6 年之前
父节点
当前提交
e342ce8028
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/main/java/com/sagacloud/route/processors/PeriodTask/OnTimeTaskProcessor.java

+ 3 - 0
src/main/java/com/sagacloud/route/processors/PeriodTask/OnTimeTaskProcessor.java

@@ -27,6 +27,9 @@ public class OnTimeTaskProcessor implements Processor {
             {
                 isTime = true;
                 nextTimeStamps.remove(i);
+                timeStamp += ONEDAY;
+                nextTimeStamps.add(timeStamp);
+                break;
             }
             System.out.println("时间戳:" + timeStamp);
         }