From 0ad53b755fb839f3275940530229d4705824e7e0 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 10 七月 2024 14:16:35 +0800
Subject: [PATCH] 修复bug
---
server/admin_sys_timer/src/main/java/com/doumee/task/ScheduleTool.java | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/server/admin_timer/src/main/java/com/doumee/task/ScheduleCommonTool.java b/server/admin_sys_timer/src/main/java/com/doumee/task/ScheduleTool.java
similarity index 93%
rename from server/admin_timer/src/main/java/com/doumee/task/ScheduleCommonTool.java
rename to server/admin_sys_timer/src/main/java/com/doumee/task/ScheduleTool.java
index 2a6b41e..4237c2a 100644
--- a/server/admin_timer/src/main/java/com/doumee/task/ScheduleCommonTool.java
+++ b/server/admin_sys_timer/src/main/java/com/doumee/task/ScheduleTool.java
@@ -20,17 +20,21 @@
import java.util.Date;
/**
- * 瀹氭椂浠诲姟
+ * 瀹氭椂浠诲姟锛堝簾寮冿級
* @author jiangping
* @date 2021-10-10 14:40:35
* https://www.bejson.com/othertools/cron/ cron 琛ㄨ揪寮忕敓鎴愬湴鍧�
*/
-//@Component
-//@EnableScheduling
-public class ScheduleCommonTool {
+@Component
+@EnableScheduling
+public class ScheduleTool {
@Autowired
+ private HkSyncParkServiceImpl hkSyncParkService;
+ @Autowired
private HkSyncImgServiceImpl hkSyncImgService;
+ @Autowired
+ private HkSyncEmpowerServiceImpl hkSyncEmpowerService;
@Autowired
private HkSyncOrgUserToHKServiceImpl hkSyncOrgUserService;
@Autowired
@@ -61,7 +65,7 @@
* 姣忓垎閽熸媺鍙栦竴娆′粖鏃ョ殑璁垮棰勭害鏁版嵁
* @throws Exception
*/
- @Scheduled(fixedRate= 30*1000)
+ @Scheduled(fixedRate= 3*60*1000)
public void syncVistAppointData() throws Exception {
if(Constants.DEALING_FROM_HK_VISIT){
return ;
@@ -126,6 +130,7 @@
}
+
/**
* 瀹氭椂鍐荤粨鍐呴儴浜哄憳
*/
@@ -137,7 +142,7 @@
* 姣忓ぉ娓呯悊瓒呰繃涓�鍛ㄧ殑鎺ュ彛鏃ュ織鏁版嵁锛堟竻闄ゅ拰瀹夐槻骞冲彴瀵规帴鐨勬帴鍙f暟鎹級
* @throws Exception
*/
- @Scheduled(cron= "0 0 23 * * ?")
+// @Scheduled(cron= "0 0 23 * * ?")
public void clearThreeMonthLog() throws Exception {
interfaceLogService.clearThreeMonthLog();
}
--
Gitblit v1.9.3