|
|
@@ -4749,6 +4749,15 @@ public class DataDashboardService {
|
|
|
// 需曝比 = 消费占比/push粉丝量占比,SUM记录都为1.0
|
|
|
sumExport.setDemandExposureRate(1.0);
|
|
|
|
|
|
+ // 按 publishCount 倒序、firstLevelContentPoolCount 倒序排序
|
|
|
+ categoryResultList.sort((a, b) -> {
|
|
|
+ int publishCompare = Long.compare(b.getPublishCount(), a.getPublishCount());
|
|
|
+ if (publishCompare != 0) {
|
|
|
+ return publishCompare;
|
|
|
+ }
|
|
|
+ return Long.compare(b.getFirstLevelContentPoolCount(), a.getFirstLevelContentPoolCount());
|
|
|
+ });
|
|
|
+
|
|
|
result.addAll(categoryResultList);
|
|
|
result.add(sumExport);
|
|
|
|