Map<String, BigDecimal> teacherContribution = resultList.stream().collect(Collectors.toMap(RankingTeacherTotal::getUserId, RankingTeacherTotal::getValue, (e1, e2) -> e1));
Map<String, BigDecimal> teacherContribution = resultList.stream().collect(Collectors.toMap(RankingTeacherTotal::getUserId, RankingTeacherTotal::getValue, (e1, e2) -> e1));