This commit is contained in:
wuweida 2022-05-24 17:29:47 +08:00
parent 361e92bd7e
commit 70dd511f4e
2 changed files with 4 additions and 4 deletions

View File

@ -114,7 +114,7 @@ public class Controller {
@GetMapping("capture1")
public Object capture1(){
monitorService.start1();
monitorService.screenShot1();
return "finish capture";
}

View File

@ -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<String,Object> 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);