//去重,多个字段,单个字段publicstatic<T>Predicate<T>distinctByKey(Function<?superT,?> keyExtractor){Map<Object,Boolean> seen =newConcurrentHashMap<>();return t -> seen.putIfAbsent(keyExtractor.apply(t),Boolean.TRUE)==null;}List<DsrProoNoticeEntity> distinctValue = value.stream().filter(distinctByKey(DsrProoNoticeEntity::getStyleNo)).filter(distinctByKey(DsrProoNoticeEntity::getStage)).filter(distinctByKey(DsrProoNoticeEntity::getBrand)).filter(distinctByKey(DsrProoNoticeEntity::getSeason)).collect(Collectors.toList());