//list: 去重数组
//TradeCharacterVO: 对象类型
//getCompanyName: 去重字段
ArrayList<TradeCharacterVO> allOfCompanyListCollect = list.stream().collect(Collectors.collectingAndThen(
Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(TradeCharacterVO::getCompanyName))), ArrayList::new));