Commit 960c51fc authored by duanruiming's avatar duanruiming

[update] 微观大数据平台-饼图优化

parent 75e8b59c
...@@ -1860,7 +1860,9 @@ public class TrendServiceImpl implements TrendService { ...@@ -1860,7 +1860,9 @@ public class TrendServiceImpl implements TrendService {
try { try {
String crossId = commonCrossIdVO.getCrossId(); String crossId = commonCrossIdVO.getCrossId();
//Instant instant = Instant.ofEpochSecond(1705456500L); //Instant instant = Instant.ofEpochSecond(1705456500L);
Instant instant = Instant.ofEpochSecond(new Date().getTime()); Date date = new Date();
long time = date.getTime() / 1000;
Instant instant = Instant.ofEpochSecond(time);
LocalDateTime localDateTime = LocalDateTime.ofInstant(instant, ZoneId.of("+8")); LocalDateTime localDateTime = LocalDateTime.ofInstant(instant, ZoneId.of("+8"));
// 00:00 // 00:00
LocalDateTime startOfDay = localDateTime.withHour(0).withMinute(0).withSecond(0); LocalDateTime startOfDay = localDateTime.withHour(0).withMinute(0).withSecond(0);
......
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