// 取差集
List<WmSoDetail> chajiDetails = wmSoDetailList.stream()
.filter(item -> !upWmSoDetailList.stream()
.map(e -> e.getSkuCode())
.collect(Collectors.toList())
.contains(item.getSkuCode()))
.collect(Collectors.toList());
//根据某个值过滤
chajiDetails = chajiDetails.stream().filter(e -> !e.getStatus().equals(WmsCodeMaster.SO_FULL_PICKING.getCode())).collect(Collectors.toList());
//key重复 去重
Map<String, WmSoDetail> detailMap = chajiDetails.stream().collect(Collectors.toMap(WmSoDetail::getStatus, item -> item,(k1, k2) -> k1));
//根据某个字段去重
https://www.cnblogs.com/hooly/p/11612811.html
https://blog.csdn.net/weixin_44013783/article/details/109330724