List<SupplierInventorySync> supplierInventoryList = supplierInventorySyncs.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(o-> o.getSkuNo() + ";" + o.getSupplierNo() + ";" + o.getWarehouseNo() + ";" + o.getSyncType()))),ArrayList::new));
list 多属性去重
最新推荐文章于 2024-05-13 00:15:33 发布