|
@@ -60,7 +60,6 @@ public class RealtimeReportService {
|
|
|
|
|
|
/**
|
|
|
* 拉取Google Analytics - Period报表(today, yesterday, thisWeek, lastWeek, thisMonth, lastMonth,
|
|
|
- * allTime)
|
|
|
*
|
|
|
* <p>填充各时间段询盘数据
|
|
|
*/
|
|
@@ -262,7 +261,7 @@ public class RealtimeReportService {
|
|
|
|
|
|
// 6. 根据日期排序并返回
|
|
|
return dailyStatsVOs.values().stream()
|
|
|
- .sorted(Comparator.comparing(DailyStatsVO::getDate)) // 排日期升序排序
|
|
|
+ .sorted(Comparator.comparing(DailyStatsVO::getDate)) // 按日期升序排序
|
|
|
.collect(Collectors.toList()); // 使用toList()方法返回UnmodifiableList,导致Redis类型解析异常
|
|
|
}
|
|
|
|
|
@@ -416,7 +415,7 @@ public class RealtimeReportService {
|
|
|
.sorted(
|
|
|
Comparator.comparingInt(SourceMediumStatsVO::getTotalUsers)
|
|
|
.thenComparingDouble(SourceMediumStatsVO::getAvgSessionDuration)
|
|
|
- .reversed())
|
|
|
+ .reversed()) // 按totalUsers和avgSessionDuration降序排序
|
|
|
.collect(Collectors.toList()); // 使用toList()方法返回UnmodifiableList,导致Redis类型解析异常
|
|
|
}
|
|
|
|
|
@@ -491,7 +490,7 @@ public class RealtimeReportService {
|
|
|
.sorted(
|
|
|
Comparator.comparingInt(PagePathStatsVO::getPageViews)
|
|
|
.thenComparingDouble(PagePathStatsVO::getAvgTimeOnPage)
|
|
|
- .reversed())
|
|
|
+ .reversed()) // 按pageViews和avgTimeOnPage降序排序
|
|
|
.limit(limit)
|
|
|
.collect(Collectors.toList()); // 使用toList()方法返回UnmodifiableList,导致Redis类型解析异常
|
|
|
}
|