List<Parcel> parcels = new ArrayList<>();
parcels.add(new Parcel().setCustomerLength(0.0).setCustomerHeight(0.1));
parcels.add(new Parcel().setCustomerLength(0.001).setCustomerHeight(0.1));
//判断是否为空 为空就置为0.0
Double d1 = parcels.stream().mapToDouble(p -> ObjectUtil.isNotEmpty(p.getCustomerLength()) ? p.getCustomerLength() : 0.0).summaryStatistics().getSum();
log.info("求和::{}", d1 > 0 ? d1 : "NULL");
//提取某个属性为List
List<String> mailNos = dto.getParcel().stream().map(Parcel::getWaybillNo).collect(Collectors.toList());
//拼接某个属性
String waybillNo = parcels.stream().map(Parcel::getWaybillNo).collect(Collectors.joining(","));
//