From 70dd511f4e872fd9427a483a06d8e3ad66dd0888 Mon Sep 17 00:00:00 2001 From: wuweida <2918581207@qq.com> Date: Tue, 24 May 2022 17:29:47 +0800 Subject: [PATCH] 1 --- .../com/hisense/monitormanage/controller/Controller.java | 2 +- .../com/hisense/monitormanage/service/MonitorService.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/hisense/monitormanage/controller/Controller.java b/src/main/java/com/hisense/monitormanage/controller/Controller.java index 945ac74..8576808 100644 --- a/src/main/java/com/hisense/monitormanage/controller/Controller.java +++ b/src/main/java/com/hisense/monitormanage/controller/Controller.java @@ -114,7 +114,7 @@ public class Controller { @GetMapping("capture1") public Object capture1(){ - monitorService.start1(); + monitorService.screenShot1(); return "finish capture"; } diff --git a/src/main/java/com/hisense/monitormanage/service/MonitorService.java b/src/main/java/com/hisense/monitormanage/service/MonitorService.java index 3e2f8b5..03865a8 100644 --- a/src/main/java/com/hisense/monitormanage/service/MonitorService.java +++ b/src/main/java/com/hisense/monitormanage/service/MonitorService.java @@ -209,7 +209,7 @@ public class MonitorService { } @Scheduled(cron = "0 0 8 1/1 * ?") - public void start1() { + public void screenShot1() { try { @@ -251,7 +251,7 @@ public class MonitorService { } @Scheduled(cron = "0 0 8/1 * * ?") - public void start2() { + public void screenShot2() { try { @@ -476,7 +476,7 @@ public class MonitorService { //获取当前时间和前一天的UTC时间 Map condition = new HashMap<>(); ZonedDateTime endUTC = ZonedDateTime.now(ZoneOffset.UTC); - ZonedDateTime startUTC = endUTC.minusDays(1); + ZonedDateTime startUTC = endUTC.minusDays(30); DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyyMMdd'T'HHmmss'Z'"); condition.put("checkStatus",0); condition.put("startTime",startUTC);