JDK1.8 Stream获取非重复值
List<ScSchedule> scScheduleListExistLine = scScheduleRepository.findScheduleExistLines(weekly, Constants.WERKS_HD);
//获取非重复值
List<String> lines = scScheduleListExistLine.stream().map(ScSchedule::getLine).distinct().collect(Collectors.toList()); //方法1
List<String> lines = scScheduleListExistLine.stream().map(m -> m.getLine()).distinct().collect(Collectors.toList()); //方法2