java8对象集合根据字段去重复
//根据投资主体名称去重复
List<DiFiCounterpartySimple> teamMemberInfoArrayList = counterpartySimples.stream().collect(
collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(DiFiCounterpartySimple::getMainBodyName))), ArrayList::new));
实现了SQL : SELECT DISTINCT 的效果