|
|
@@ -132,8 +132,8 @@ public class ContactHelpLogService {
|
|
|
|
|
|
// 金额榜
|
|
|
List<ContactAgg> byAmount = new ArrayList<>(aggList);
|
|
|
- byAmount.sort(Comparator.comparing(a -> a.totalAmount, Comparator.reverseOrder())
|
|
|
- .thenComparingInt(a -> a.helpCount).reversed());
|
|
|
+ byAmount.sort(Comparator.comparing((ContactAgg a) -> a.totalAmount, Comparator.reverseOrder())
|
|
|
+ .thenComparingInt((ContactAgg a) -> a.helpCount).reversed());
|
|
|
List<ContactAgg> top8ByAmount = byAmount.stream().limit(8).collect(Collectors.toList());
|
|
|
|
|
|
// 合并去重,保持次数榜优先顺序
|