Commit c81583bd authored by wujiang's avatar wujiang

修复代码

parent e46ea76c
......@@ -1889,19 +1889,19 @@ public class HealthStatusIndicatorServiceImpl {
//@Scheduled(cron = "0 0 0/1 * * ?")
@Async("async")
@PostConstruct
// @PostConstruct
public void healthWarningHour() {
// if (!openHealth) {
// return;
// }
// Date time = new Date();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date time=null;
try {
time = simpleDateFormat.parse("2024-06-04 17:00:00");
} catch (ParseException e1) {
e1.printStackTrace();
}
Date time = new Date();
// SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
// Date time=null;
// try {
// time = simpleDateFormat.parse("2024-06-04 17:00:00");
// } catch (ParseException e1) {
// e1.printStackTrace();
// }
String format = DateUtil.format(time, "yyyy-MM-dd HH:00:00");
// 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