Java8 Stream Function
//.toInstant().atZone(ZoneId.systemDefault()).toLocalDate() Map<Integer, WorkOrderOperationLogDO> workOrderIdLastestEnterSeaTimeWorkOrderOperationLogDOMap = workOrderOperationLogDOs.parallelStream().collect( Collectors.toMap(WorkOrderOperationLogDO::getWorkOrderId, Function.identity(), (c1, c2) -> c1.getCreatedAt().getTime() > c2.getCreatedAt().getTime() ? c1 : c2));