From 6c40e04eb7c2060feb2533735cd3089d438965e5 Mon Sep 17 00:00:00 2001
From: nidapeng <jp@doumee.com>
Date: 星期二, 19 三月 2024 17:19:36 +0800
Subject: [PATCH] 整理

---
 server/dmvisit_admin/src/main/java/com/doumee/task/ScheduleTool.java |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/server/dmvisit_admin/src/main/java/com/doumee/task/ScheduleTool.java b/server/dmvisit_admin/src/main/java/com/doumee/task/ScheduleTool.java
index 7fa2107..5fa143f 100644
--- a/server/dmvisit_admin/src/main/java/com/doumee/task/ScheduleTool.java
+++ b/server/dmvisit_admin/src/main/java/com/doumee/task/ScheduleTool.java
@@ -26,8 +26,8 @@
  * @date 2021-10-10 14:40:35
  * https://www.bejson.com/othertools/cron/  cron 琛ㄨ揪寮忕敓鎴愬湴鍧�
  */
-//@Component
-//@EnableScheduling
+@Component
+@EnableScheduling
 public class ScheduleTool {
 
     @Autowired
@@ -127,31 +127,30 @@
     public void syncVisitData()  {
         hkSyncVisitService.syncVisitData();
     }
-    /**
+ /*   *//**
      * 瀹氭椂鍚屾鍐呴儴浜哄憳鎺堟潈鍒版捣搴风郴缁�
      * @throws Exception
-     */
-    @Scheduled(fixedDelay= 60*1000)
+     *//*
+    @Scheduled(fixedDelay= 3*1000)
     public void syncEmpowerData()  {
-
         hkSyncEmpowerService.syncEmpowerData();
     }
-    /**
+    *//**
      * 瀹氭椂鏌ヨ浜哄憳涓嬪彂娴峰悍缁撴灉锛堜换鍔℃槸鍚﹀凡涓嬭浇缁撴潫锛�
      * @throws Exception
-     */
+     *//*
     @Scheduled(fixedDelay= 60*1000)
     public void syncEmpowerResultData()  {
         hkSyncEmpowerService.syncEmpowerResultData();
     }
-    /**
+    *//**
      * 瀹氭椂鏌ヨ浜哄憳瀹為檯涓嬪彂鏉冮檺缁撴灉锛屾槸鍚﹀凡缁忎笅杞芥垚鍔�
      * @throws Exception
-     */
+     *//*
     @Scheduled(fixedDelay= 60*1000)
     public void syncEmpowerDetailData()  {
         hkSyncEmpowerService.syncEmpowerDetailData();
-    }
+    }*/
     /**
      * 瀹氭椂鍚屾杞﹁締鍖呮湡鍒版捣搴风郴缁�
      * @throws Exception

--
Gitblit v1.9.3