Java8集合过滤filter List<DiCpPathVO> cpPathVOS = diCpPathVOS.stream() .filter(diCpPathVO -> diCpPathVO.getBorrowerTypes().equals("cp")) .collect(Collectors.toList());