Просмотр исходного кода

长文供需看板-全局 push阅读量 fix

wangyunpeng 20 часов назад
Родитель
Сommit
09b4596e46

+ 1 - 4
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recommend/DataDashboardService.java

@@ -4641,6 +4641,7 @@ public class DataDashboardService {
             // 阅读量
             if (Objects.nonNull(item.getViewCount())) {
                 export.setReadCount(export.getReadCount() + item.getViewCount());
+                export.setPushReadCount(export.getPushReadCount() + item.getViewCount());
                 totalReadCount += item.getViewCount();
             }
 
@@ -4650,10 +4651,6 @@ public class DataDashboardService {
                 totalFansCount += item.getFans();
             }
 
-            // push阅读量 = 首层阅读
-            if (Objects.nonNull(item.getFirstLevel())) {
-                export.setPushReadCount(export.getPushReadCount() + item.getFirstLevel());
-            }
         }
 
         // 9. 计算各项比率并设置分析字段