Map<String,ExcellentCaseLog> maxCreateTimeMap = caseLogList.stream().collect(Collectors.toMap(ExcellentCaseLog::getExcellentId, Function.identity(), (c1, c2) -> c1.getCreateTime().compareTo(c2.getCreateTime()) > 0 ? c1 : c2));