文章目录
样例代码
String tableContentId = params.getTableContentId();
// 对比两个列表
List<AuditOrderDTO> filterResultList;
List<AuditOrderDTO> sourceList;
if(CollectionUtils.isEmpty(sourceList)){
return Lists.newArrayList();
}
List<AuditOrderDTO> filterResultList = updateEntityList.stream().filter(e -> {
if(ObjectUtil.isNotNull()
&& StringUtil.isNoneBlank(t.getContexts.getId)){
if(t.getContexts().getId().equals(tableContentId){
return true;
}
}
return false;
}).collect(Collectors.toList());