|
|
|
@ -183,7 +183,7 @@ public class AlarmQuartz {
|
|
|
|
|
}
|
|
|
|
|
// 获取数据库中最新的时间
|
|
|
|
|
LocalDateTime nowTime = alarmService.findNowTime();
|
|
|
|
|
log.info("==========================获取数据库中最新的时间{}", nowTime);
|
|
|
|
|
log.info("==========================获取数据库中最新的时间小于当前时间{}", nowTime);
|
|
|
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
|
|
|
|
|
String yesterdayStr = nowTime.format(formatter);
|
|
|
|
|
log.info("==========================格式化后最新的时间{}", yesterdayStr);
|
|
|
|
|