From ad6dfb8323ab40ca8fe4fed94722c755d89c3203 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 28 二月 2024 15:14:47 +0800
Subject: [PATCH] 整理

---
 server/dmvisit_admin/src/main/java/com/doumee/task/ScheduleTool.java |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 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 ea2897d..b947a79 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
@@ -8,6 +8,7 @@
 import com.doumee.service.business.MemberService;
 import com.doumee.service.business.impl.hksync.HkSyncEmpowerServiceImpl;
 import com.doumee.service.business.impl.hksync.HkSyncImgServiceImpl;
+import com.doumee.service.business.impl.hksync.HkSyncParkServiceImpl;
 import com.doumee.service.business.impl.hksync.ferp.HkSyncOrgUserToHKServiceImpl;
 import com.doumee.service.business.impl.hksync.HkSyncVisitServiceImpl;
 import com.doumee.service.business.impl.hksync.fhk.HkSyncVehicleFromHKServiceImpl;
@@ -25,10 +26,12 @@
  * @date 2021-10-10 14:40:35
  * https://www.bejson.com/othertools/cron/  cron 琛ㄨ揪寮忕敓鎴愬湴鍧�
  */
-//@Component
+@Component
 @EnableScheduling
 public class ScheduleTool {
 
+    @Autowired
+    private HkSyncParkServiceImpl hkSyncParkService;
     @Autowired
     private HkSyncImgServiceImpl hkSyncImgService;
     @Autowired
@@ -75,6 +78,14 @@
         }finally {
             Constants.DEALING_FROM_HK_VISIT =false;
         }
+    }
+    /**
+     * 姣�10鍒嗛挓鎷夊彇涓�娆℃渶鏂拌瀹㈢櫥璁扮姸鎬侊紙棰勭害鎴愬姛鍜屽凡鐧昏锛�
+     * @throws Exception
+     */
+    @Scheduled(fixedDelay= 10*60*1000)
+    public void syncVisitOuttimeStatus() throws Exception {
+        hkSyncVisitService.getOutTimeVisitRecord();
     }
     /**
      * 涓嬭浇娴峰悍绯荤粺鍥剧墖鏁版嵁
@@ -147,7 +158,7 @@
      */
     @Scheduled(fixedDelay= 60*1000)
     public void syncParkBookData()  {
-        hkSyncImgService.syncParkBookData();
+        hkSyncParkService.syncParkBookData();
     }
 
 

--
Gitblit v1.9.3