过滤code为空并且name为空的行
List<RpmCostRateDetail> resultList = rpmCostRateDetails.stream().filter(e -> e.getPricingPrdCode() != null && e.getPricingPrdName() != null).collect(Collectors.toList());
去除code重复的行
List<RpmCostRateDetail> collect = resultList.stream().collect(
Collectors.collectingAndThen(
Collectors.toCollection(() -> new TreeSet<RpmCostRateDetail>(Comparator.comparing(RpmCostRateDetail::getPricingPrdCode))), ArrayList::new));