wfansh 3 months ago
parent
commit
ed6b122077

+ 3 - 4
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/adweb/dmp/service/RealtimeReportService.java

@@ -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类型解析异常
     }

+ 1 - 1
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/adweb/dmp/service/impl/GADailyReportServiceImpl.java

@@ -119,7 +119,7 @@ public class GADailyReportServiceImpl extends ServiceImpl<GADailyReportMapper, G
 
         // 3. 根据日期排序并返回
         return dailyStatsVOs.values().stream()
-                .sorted(Comparator.comparing(DailyStatsVO::getDate)) // 日期升序排序
+                .sorted(Comparator.comparing(DailyStatsVO::getDate)) // 日期升序排序
                 .collect(Collectors.toList()); // 使用toList()方法返回UnmodifiableList,导致Redis类型解析异常
     }