年度庆典-BaseRoundRankActService initRank可重复

This commit is contained in:
khalil
2024-01-19 19:17:13 +08:00
parent 681150f964
commit c86558b3d5

View File

@@ -218,7 +218,9 @@ public abstract class BaseRoundRankActService<Provider extends RankObjectProvide
Map<Long, Double> prevScoreMap = prevRankList.stream().map(ScoredEntry::getValue).collect(Collectors.toMap(uid->uid, uid->0d));
RScoredSortedSet<Long> curRank = getRankByRound(curRound);
curRank.addAll(prevScoreMap);
for (Map.Entry<Long, Double> entry: prevScoreMap.entrySet()){
curRank.addScore(entry.getKey(), entry.getValue());
}
}
public void initRank(LocalDateTime now){