Commit e0586618 by huluobin

dashboard 缓存

parent f54447c3
...@@ -56,6 +56,7 @@ public class DashboardServiceImpl implements DashboardService { ...@@ -56,6 +56,7 @@ public class DashboardServiceImpl implements DashboardService {
.stream() .stream()
.map(str -> LocalDateTime.parse(str, DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSX"))) .map(str -> LocalDateTime.parse(str, DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSX")))
.map(localDateTime -> localDateTime.withSecond(0) .map(localDateTime -> localDateTime.withSecond(0)
.withNano(0)
.withMinute(localDateTime.getMinute() - localDateTime.getMinute() % expireTime)) .withMinute(localDateTime.getMinute() - localDateTime.getMinute() % expireTime))
.map(LocalDateTime::toString) .map(LocalDateTime::toString)
.collect(Collectors.toList()); .collect(Collectors.toList());
......
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