判断list中的对象字段是否为空,不为空则把值统计起来
List<String> elementValueList = elementList.stream().filter(FdRiskDutyElement -> !StringUtil.isEmpty(FdRiskDutyElement.getElementValue())).map(FdRiskDutyElement::getElementValue).collect(Collectors.toList());
判断list中的对象字段是否为空,不为空则把值统计起来
List<String> elementValueList = elementList.stream().filter(FdRiskDutyElement -> !StringUtil.isEmpty(FdRiskDutyElement.getElementValue())).map(FdRiskDutyElement::getElementValue).collect(Collectors.toList());