From 165078645b8cfe800aeda7206e89ebd901c7e6c8 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期二, 19 十二月 2023 18:13:54 +0800
Subject: [PATCH] ERP接口

---
 server/dmvisit_admin/src/main/java/com/doumee/task/ScheduleTool.java |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 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 4955c56..c94d5b0 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
@@ -2,6 +2,8 @@
 
 
 import com.doumee.service.business.impl.hksync.HkSyncImgServiceImpl;
+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;
@@ -20,6 +22,10 @@
 
     @Autowired
     private HkSyncImgServiceImpl hkSyncImgService;
+    @Autowired
+    private HkSyncOrgUserServiceImpl hkSyncOrgUserService;
+    @Autowired
+    private HkSyncVisitServiceImpl hkSyncVisitService;
     /**
      * 鏄惁寮�鍙戣��
      */
@@ -35,5 +41,29 @@
     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 syncVisitData() {
+        hkSyncVisitService.syncVisitData();
+    }
+    /**
+     * 瀹氭椂鍚屾鐢ㄦ埛淇℃伅鍒版捣搴风郴缁�
+     * @throws Exception
+     */
+//    @Scheduled(fixedDelay= 60*1000)
+//    public void syncUserData()  {
+//        hkSyncImgService.syncUserData();
+//    }
 
 }

--
Gitblit v1.9.3