From 2e7ba2bc0fbefa6ee0b44eaf1990a493795efe4a Mon Sep 17 00:00:00 2001
From: lishuai <260038442@qq.com>
Date: 星期二, 26 十二月 2023 16:33:36 +0800
Subject: [PATCH] 导出字段对接调整提交

---
 server/dmvisit_admin/src/main/java/com/doumee/task/ScheduleTool.java |   88 ++++++++++++++++++++++++++++++++++++++------
 1 files changed, 76 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 58d4b0c..326d4c9 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
@@ -1,24 +1,16 @@
 package com.doumee.task;
 
 
-import com.doumee.biz.system.SystemDictDataBiz;
+import com.doumee.service.business.MemberService;
+import com.doumee.service.business.impl.hksync.HkSyncEmpowerServiceImpl;
 import com.doumee.service.business.impl.hksync.HkSyncImgServiceImpl;
-import org.apache.http.client.methods.CloseableHttpResponse;
-import org.apache.http.client.methods.HttpGet;
-import org.apache.http.client.utils.URIBuilder;
-import org.apache.http.impl.client.CloseableHttpClient;
-import org.apache.http.impl.client.HttpClients;
-import org.apache.http.util.EntityUtils;
+import com.doumee.service.business.impl.hksync.HkSyncOrgUserServiceImpl;
+import com.doumee.service.business.impl.hksync.HkSyncVisitServiceImpl;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.scheduling.annotation.EnableScheduling;
 import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Component;
-
-import java.io.IOException;
-import java.net.URI;
-import java.util.Date;
-import java.util.Map;
 
 /**
  * 瀹氭椂浠诲姟
@@ -32,6 +24,14 @@
 
     @Autowired
     private HkSyncImgServiceImpl hkSyncImgService;
+    @Autowired
+    private HkSyncEmpowerServiceImpl hkSyncEmpowerService;
+    @Autowired
+    private HkSyncOrgUserServiceImpl hkSyncOrgUserService;
+    @Autowired
+    private HkSyncVisitServiceImpl hkSyncVisitService;
+    @Autowired
+    private MemberService memberService;
     /**
      * 鏄惁寮�鍙戣��
      */
@@ -47,6 +47,70 @@
     public void downloadHkImg() throws Exception {
         hkSyncImgService.downHKImgs(0);
     }
+    /**
+     * 瀹氭椂鍚屾缁勭粐淇℃伅鍒版捣搴风郴缁�
+     * @throws Exception
+     */
+    @Scheduled(fixedDelay= 60*1000)
+    public void syncOrgData() {
+        hkSyncOrgUserService.syncOrgData();
+    }
+    /**
+     * 瀹氭椂鍚屾鐢ㄦ埛淇℃伅鍒版捣搴风郴缁�
+     * @throws Exception
+     */
+    @Scheduled(fixedDelay= 60*1000)
+    public void syncUserData()  {
+        hkSyncOrgUserService.syncUserData();
+    }
+    /**
+     * 瀹氭椂鍚屾鐢宠閫氳繃鐨勮瀹㈡暟鎹埌娴峰悍绯荤粺
+     * @throws Exception
+     */
+    @Scheduled(fixedDelay= 60*1000)
+    public void syncVisitData()  {
+        hkSyncVisitService.syncVisitData();
+    }
+    /**
+     * 瀹氭椂鍚屾鍐呴儴浜哄憳鎺堟潈鍒版捣搴风郴缁�
+     * @throws Exception
+     */
+    @Scheduled(fixedDelay= 60*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();
+    }
 
 
+    /**
+     * 瀹氭椂鍐荤粨鍐呴儴浜哄憳
+     */
+    @Scheduled(fixedDelay= 60*1000)
+    public void memberFreeze()  {
+        memberService.memberFreeze();
+    }
+
 }

--
Gitblit v1.9.3