Parcourir la source

定时任务间隔时间改为时间段提交

hxl13994548489 il y a 1 an
Parent
commit
05939dc8a3

+ 2 - 2
src/main/java/com/ydtech/modules/order/timer/UpdateOrderTimer.java

@@ -36,7 +36,7 @@ public class UpdateOrderTimer {
      *  @Description:  每10分钟执行下更新订单时间
      */
     @Async
-    @Scheduled(cron = "0 0/10 * * * ?")
+    @Scheduled(cron = "0 0/30 * * * ?")
     public void updateOrderDateMinite() {
         String benginDate = DateUtil.getDateFormat(new Date(), "yyyy-MM-dd")+" 00:00:00";
         String endDate = DateUtil.getDateFormat(new Date(), "yyyy-MM-dd")+" 23:59:59";
@@ -89,7 +89,7 @@ public class UpdateOrderTimer {
       *  @Description:  自动更新结算表中签单日期为空的数据
       */
     @Async
-    @Scheduled(cron = "0 0/10 * * * ?")
+    @Scheduled(cron = "0 0/30 * * * ?")
     public void updateOrderPlyDateMinite() {
         String benginDate = DateUtil.getDateFormat(new Date(), "yyyy-MM-dd")+" 00:00:00";
         String endDate = DateUtil.getDateFormat(new Date(), "yyyy-MM-dd")+" 23:59:59";