From 3b21b61d28097c72811ce5a0a6a72b7722c68b1d Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期四, 20 二月 2025 11:21:10 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/2.0.1' into 2.0.1 --- server/web/src/main/java/com/doumee/task/ScheduleTool.java | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-) diff --git a/server/web/src/main/java/com/doumee/task/ScheduleTool.java b/server/web/src/main/java/com/doumee/task/ScheduleTool.java index 2f51645..51654b8 100644 --- a/server/web/src/main/java/com/doumee/task/ScheduleTool.java +++ b/server/web/src/main/java/com/doumee/task/ScheduleTool.java @@ -10,6 +10,7 @@ import com.doumee.core.wx.WxPayProperties; import com.doumee.dao.business.model.Sites; import com.doumee.dao.system.model.SystemDictData; +import com.doumee.jtt808.web.service.Jtt808Service; import com.doumee.service.business.*; import com.doumee.service.system.SystemDictDataService; import lombok.extern.slf4j.Slf4j; @@ -35,17 +36,27 @@ @Slf4j public class ScheduleTool { + @Autowired + private Jtt808Service jtt808Service; + /** * 绔欑偣杞﹁締婊℃灦鐜囬璀� * @throws Exception */ - @Scheduled(fixedDelay = 1000L *20L ) - public void reSubMqtt() throws Exception { - log.info("=====================妫�鏌ユ槸鍚﹂渶瑕侀噸鏂拌闃�===========start============"); - MqttClientInit.isSubClientValid(); - log.info("=====================妫�鏌ユ槸鍚﹂渶瑕侀噸鏂拌闃�===========end============"); - } +// @Scheduled(fixedDelay = 1000L *20L ) +// public void reSubMqtt() throws Exception { +// log.info("=====================妫�鏌ユ槸鍚﹂渶瑕侀噸鏂拌闃�===========start============"); +// MqttClientInit.isSubClientValid(); +// log.info("=====================妫�鏌ユ槸鍚﹂渶瑕侀噸鏂拌闃�===========end============"); +// } + @Scheduled(fixedDelay = 1000L * 5L ) + public void autoBackBike() throws Exception { + log.info("=====================涓存椂鍋滆溅瓒呮椂 鑷姩杩樿溅===========start============"); + jtt808Service.autoBackBike(); + log.info("=====================涓存椂鍋滆溅瓒呮椂 鑷姩杩樿溅===========end============"); + } + } -- Gitblit v1.9.3