//根据id去重
examRoomModelLists = examRoomModelLists.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(// 利用 TreeSet 的排序去重构造函数来达到去重元素的目的// 根据firstName去重() -> new TreeSet<>(Comparator.comparing(ExamRoomModel::getId))), ArrayList::new));