1、c1是集合 List<String> commonInfo = c1.stream().//得到重复的订单数据 collect(Collectors.groupingBy(o -> ("{\"clientName\":\"" + o.getClientName() + "\",\"clientContact\":\"" + o.getClientContact() + "\",\"addFull\":\"" + o.getAddFull() + "\"}"), Collectors.counting())) .entrySet().stream() .filter(entry -> entry.getValue() > 1) .map(entry -> entry.getKey()) .collect(Collectors.toList()); JSONArray json = JSONArray.fromObject(commonInfo);//转化为json List<CommonInfoVo> persons = (List<CommonInfoVo>) JSONArray.toCollection(json, CommonInfoVo.class);//json转换为list对象集合