|
@@ -260,7 +260,7 @@ public class FlowPoolService {
|
|
|
Collectors.collectingAndThen(
|
|
|
Collectors.toList(),
|
|
|
list -> list.stream()
|
|
|
- .sorted(Comparator.comparingDouble(DouHotVideoProvince::getTgi).reversed()) // 按 tgi 降序
|
|
|
+ .sorted(Comparator.comparingDouble(DouHotVideoProvince::getRate).reversed()) // 按 占比 降序
|
|
|
.limit(10) // 取前10个
|
|
|
.map(DouHotVideoProvince::getName) // 只取 name 字段
|
|
|
.collect(Collectors.toList())
|