JDK8 List根据某一字段筛选重复数据
String codes = lineVOList.stream().filter(ro->!ObjectUtils.isEmpty(ro.getCode()))
.collect(Collectors.groupingBy(lineVO::getCode,Collectors.counting()))
.entrySet().stream().filter(e->e.getValue()>1).map(Map.Entry::getKey).collect(Collectors.joining(","));