Commit c81583bd authored by wujiang's avatar wujiang

修复代码

parent e46ea76c
...@@ -1889,19 +1889,19 @@ public class HealthStatusIndicatorServiceImpl { ...@@ -1889,19 +1889,19 @@ public class HealthStatusIndicatorServiceImpl {
//@Scheduled(cron = "0 0 0/1 * * ?") //@Scheduled(cron = "0 0 0/1 * * ?")
@Async("async") @Async("async")
@PostConstruct // @PostConstruct
public void healthWarningHour() { public void healthWarningHour() {
// if (!openHealth) { // if (!openHealth) {
// return; // return;
// } // }
// Date time = new Date(); Date time = new Date();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); // SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date time=null; // Date time=null;
try { // try {
time = simpleDateFormat.parse("2024-06-04 17:00:00"); // time = simpleDateFormat.parse("2024-06-04 17:00:00");
} catch (ParseException e1) { // } catch (ParseException e1) {
e1.printStackTrace(); // e1.printStackTrace();
} // }
String format = DateUtil.format(time, "yyyy-MM-dd HH:00:00"); String format = DateUtil.format(time, "yyyy-MM-dd HH:00:00");
// Date date = DateUtils.dateAddHours(time, -13); // Date date = DateUtils.dateAddHours(time, -13);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment