From d3ad2ded75dcc39cd25c9b2c1f68d251ad18a818 Mon Sep 17 00:00:00 2001 From: laishajiang <12977614+laishajiang@user.noreply.gitee.com> Date: Mon, 15 Apr 2024 09:46:24 +0800 Subject: [PATCH] =?UTF-8?q?110=E4=B8=BE=E6=8A=A5=E6=8A=95=E8=AF=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/biutag/lan/service/DataSyncScheduler.java | 2 +- .../src/main/java/com/biutag/lan/service/ReportService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mailbox-lan/src/main/java/com/biutag/lan/service/DataSyncScheduler.java b/mailbox-lan/src/main/java/com/biutag/lan/service/DataSyncScheduler.java index a7f65b2..6b199ea 100644 --- a/mailbox-lan/src/main/java/com/biutag/lan/service/DataSyncScheduler.java +++ b/mailbox-lan/src/main/java/com/biutag/lan/service/DataSyncScheduler.java @@ -9,7 +9,7 @@ public class DataSyncScheduler { public DataSyncScheduler(ReportService dataSourceService) { this.dataSourceService = dataSourceService; } - @Scheduled(fixedRate = 3 * 60 * 1000) // 每5分钟执行一次 + @Scheduled(fixedRate = 60 * 60 * 1000) // 每5分钟执行一次 public void syncDataSourcesPeriodically() { dataSourceService.syncData(); } diff --git a/mailbox-lan/src/main/java/com/biutag/lan/service/ReportService.java b/mailbox-lan/src/main/java/com/biutag/lan/service/ReportService.java index 50bb1a8..4d802bb 100644 --- a/mailbox-lan/src/main/java/com/biutag/lan/service/ReportService.java +++ b/mailbox-lan/src/main/java/com/biutag/lan/service/ReportService.java @@ -118,7 +118,7 @@ public class ReportService extends ServiceImpl { public static List getReomteReport() { log.info("110连接成功,准备拉取110数据服务"); - String url = String.format("http://127.0.0.1:8083/api/server/report/list"); + String url = String.format("http://65.47.60.185:8083/api/server/report/list"); HttpResponse httpResponse = HttpUtil.createGet(url) .execute(); JSONObject data = JSON.parseObject(httpResponse.body());