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 |   34 ++++++++++++++++++++++------------
 1 files changed, 22 insertions(+), 12 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 101e31a..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
@@ -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;
@@ -29,6 +30,8 @@
 @EnableScheduling
 public class ScheduleTool {
 
+    @Autowired
+    private HkSyncParkServiceImpl hkSyncParkService;
     @Autowired
     private HkSyncImgServiceImpl hkSyncImgService;
     @Autowired
@@ -61,7 +64,7 @@
      * 姣忓垎閽熸媺鍙栦竴娆′粖鏃ョ殑璁垮棰勭害鏁版嵁
      * @throws Exception
      */
-    @Scheduled(fixedDelay= 60*1000)
+    @Scheduled(fixedDelay= 30*1000)
     public void syncVistAppointData() throws Exception {
         if(Constants.DEALING_FROM_HK_VISIT){
             return ;
@@ -71,10 +74,18 @@
             hkSyncVisitFromHKService.syncVistAppointData(new Date());
             Constants.DEALING_FROM_HK_VISIT =false;
         }catch (Exception e){
-            throw  new BusinessException(ResponseStatus.SERVER_ERROR.getCode(), "瀵逛笉璧凤紝娴峰悍鍚屾鏁版嵁澶辫触~");
+//            throw  new BusinessException(ResponseStatus.SERVER_ERROR.getCode(), "瀵逛笉璧凤紝娴峰悍鍚屾鏁版嵁澶辫触~");
         }finally {
             Constants.DEALING_FROM_HK_VISIT =false;
         }
+    }
+    /**
+     * 姣�10鍒嗛挓鎷夊彇涓�娆℃渶鏂拌瀹㈢櫥璁扮姸鎬侊紙棰勭害鎴愬姛鍜屽凡鐧昏锛�
+     * @throws Exception
+     */
+    @Scheduled(fixedDelay= 10*60*1000)
+    public void syncVisitOuttimeStatus() throws Exception {
+        hkSyncVisitService.getOutTimeVisitRecord();
     }
     /**
      * 涓嬭浇娴峰悍绯荤粺鍥剧墖鏁版嵁
@@ -116,38 +127,37 @@
     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
      */
     @Scheduled(fixedDelay= 60*1000)
     public void syncParkBookData()  {
-        hkSyncImgService.syncParkBookData();
+        hkSyncParkService.syncParkBookData();
     }
 
 

--
Gitblit v1.9.3