This commit is contained in:
parent
361e92bd7e
commit
70dd511f4e
|
@ -114,7 +114,7 @@ public class Controller {
|
||||||
|
|
||||||
@GetMapping("capture1")
|
@GetMapping("capture1")
|
||||||
public Object capture1(){
|
public Object capture1(){
|
||||||
monitorService.start1();
|
monitorService.screenShot1();
|
||||||
|
|
||||||
return "finish capture";
|
return "finish capture";
|
||||||
}
|
}
|
||||||
|
|
|
@ -209,7 +209,7 @@ public class MonitorService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Scheduled(cron = "0 0 8 1/1 * ?")
|
@Scheduled(cron = "0 0 8 1/1 * ?")
|
||||||
public void start1() {
|
public void screenShot1() {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
@ -251,7 +251,7 @@ public class MonitorService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Scheduled(cron = "0 0 8/1 * * ?")
|
@Scheduled(cron = "0 0 8/1 * * ?")
|
||||||
public void start2() {
|
public void screenShot2() {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
@ -476,7 +476,7 @@ public class MonitorService {
|
||||||
//获取当前时间和前一天的UTC时间
|
//获取当前时间和前一天的UTC时间
|
||||||
Map<String,Object> condition = new HashMap<>();
|
Map<String,Object> condition = new HashMap<>();
|
||||||
ZonedDateTime endUTC = ZonedDateTime.now(ZoneOffset.UTC);
|
ZonedDateTime endUTC = ZonedDateTime.now(ZoneOffset.UTC);
|
||||||
ZonedDateTime startUTC = endUTC.minusDays(1);
|
ZonedDateTime startUTC = endUTC.minusDays(30);
|
||||||
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyyMMdd'T'HHmmss'Z'");
|
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyyMMdd'T'HHmmss'Z'");
|
||||||
condition.put("checkStatus",0);
|
condition.put("checkStatus",0);
|
||||||
condition.put("startTime",startUTC);
|
condition.put("startTime",startUTC);
|
||||||
|
|
Loading…
Reference in New Issue