From 785f8a2f558166eec7ad5f2facd5cee041ab0c3b Mon Sep 17 00:00:00 2001 From: qdxkrs <39894542+qdxkrs@users.noreply.github.com> Date: Wed, 22 Jun 2022 18:02:47 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=89=93=E5=BC=80=E6=B0=94=E8=B1=A1?= =?UTF-8?q?=E7=AB=99=E4=BF=A1=E6=81=AF=E8=8E=B7=E5=8F=96"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 90f22fa887873adfe18358b423fa4270fde22ae4. --- .../common/schedule/SaticScheduleTask.java | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/main/java/com/xkrs/microservice/common/schedule/SaticScheduleTask.java b/src/main/java/com/xkrs/microservice/common/schedule/SaticScheduleTask.java index a7d3788..4c69ec8 100644 --- a/src/main/java/com/xkrs/microservice/common/schedule/SaticScheduleTask.java +++ b/src/main/java/com/xkrs/microservice/common/schedule/SaticScheduleTask.java @@ -28,25 +28,25 @@ public class SaticScheduleTask { @Resource private WeatherGet weatherGet; - /** - * 定时获取数据,每天9:31 触发 - */ - @Scheduled(cron = "00 31 9 ? * *") - private void dailyReportFireLastTasks() { - LocalDate pdfStartDate = LocalDate.of(2021, 5, 20); - String url = "http://47.105.215.208:8005/intfa/queryData/16079680"; - Map postParam = new HashMap<>(8); +// /** +// * 定时获取数据,每天9:31 触发 +// */ +// @Scheduled(cron = "00 31 9 ? * *") +// private void dailyReportFireLastTasks() { +// LocalDate pdfStartDate = LocalDate.of(2021, 5, 20); +// String url = "http://47.105.215.208:8005/intfa/queryData/16079680"; +// Map postParam = new HashMap<>(8); +// +// } - } - - /** - * 定时获取气象站数据 每 5 分钟触发 - */ - @Scheduled(cron = "0 0/5 * * * ?") - private void configureTasks() { - logger.info("执行静态定时任务时间: " + LocalDateTime.now()); - weatherGet.findWeather(); - } +// /** +// * 定时获取气象站数据 每 5 分钟触发 +// */ +// @Scheduled(cron = "0 0/5 * * * ?") +// private void configureTasks() { +// logger.info("执行静态定时任务时间: " + LocalDateTime.now()); +// weatherGet.findWeather(); +// } public static void main(String[] args) { String url = "http://47.105.215.208:8005/intfa/queryData/16079680";