From 67508a2e3d00e59d429966ab42f4a45002b31dc6 Mon Sep 17 00:00:00 2001
From: nidapeng <jp@doumee.com>
Date: 星期五, 12 四月 2024 12:12:28 +0800
Subject: [PATCH] 最新版本

---
 server/dmvisit_admin/src/main/java/com/doumee/task/ScheduleTool.java |   23 +++++++++++++++--------
 1 files changed, 15 insertions(+), 8 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 da5d9f1..5794c0d 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
@@ -5,12 +5,10 @@
 import com.doumee.core.constants.ResponseStatus;
 import com.doumee.core.exception.BusinessException;
 import com.doumee.core.utils.Constants;
+import com.doumee.service.business.InterfaceLogService;
 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.*;
 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;
 import com.doumee.service.business.impl.hksync.fhk.HkSyncVisitFromHKServiceImpl;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -21,7 +19,7 @@
 import java.util.Date;
 
 /**
- * 瀹氭椂浠诲姟
+ * 瀹氭椂浠诲姟锛堝簾寮冿級
  * @author jiangping
  * @date 2021-10-10 14:40:35
  * https://www.bejson.com/othertools/cron/  cron 琛ㄨ揪寮忕敓鎴愬湴鍧�
@@ -46,6 +44,8 @@
     private HkSyncVisitServiceImpl hkSyncVisitService;
     @Autowired
     private MemberService memberService;
+    @Autowired
+    private InterfaceLogService interfaceLogService;
     /**
      * 鏄惁寮�鍙戣��
      */
@@ -143,7 +143,8 @@
     public void syncEmpowerResultData()  {
         hkSyncEmpowerService.syncEmpowerResultData();
     }
-    *//**
+    */
+    /**
      * 瀹氭椂鏌ヨ浜哄憳瀹為檯涓嬪彂鏉冮檺缁撴灉锛屾槸鍚﹀凡缁忎笅杞芥垚鍔�
      * @throws Exception
      *//*
@@ -160,7 +161,6 @@
         hkSyncParkService.syncParkBookData();
     }
 
-
     /**
      * 瀹氭椂鍐荤粨鍐呴儴浜哄憳
      */
@@ -168,5 +168,12 @@
     public void memberFreeze()  {
         memberService.memberFreeze();
     }
-
+    /**
+     * 姣忓ぉ娓呯悊瓒呰繃涓�鍛ㄧ殑鎺ュ彛鏃ュ織鏁版嵁锛堟竻闄ゅ拰瀹夐槻骞冲彴瀵规帴鐨勬帴鍙f暟鎹級
+     * @throws Exception
+     */
+    @Scheduled(cron= "0 0 23 * * ?")
+    public void clearThreeMonthLog() throws Exception {
+        interfaceLogService.clearThreeMonthLog();
+    }
 }

--
Gitblit v1.9.3