其他分享
首页 > 其他分享> > 筛选两个集合不同数据

筛选两个集合不同数据

作者:互联网


List<SqSupplierBiznoDetailVO> collect = newSupplierBiznoDetail.stream().filter(e -> {
    for (SqSupplierBiznoDetailVO s : originalSupplierBiznoDetail) {
        if (e.getSupplierCode().equals(s.getSupplierCode()) && e.getSupplierName().equals(s.getSupplierName())) {
            return false;
        }
    }
    return true;
}).collect(Collectors.toList());

 

标签:newSupplierBiznoDetail,getSupplierCode,getSupplierName,equals,collect,集合,return,
来源: https://www.cnblogs.com/lboke/p/16655719.html