Explorar el Código

1、新增全量去重

liqihao hace 1 año
padre
commit
12dbe5a553

+ 1 - 2
hx-customer/src/main/java/com/fjhx/customer/service/xiaoman/impl/XiaomanCustomerServiceImpl.java

@@ -184,8 +184,7 @@ public class XiaomanCustomerServiceImpl extends ServiceImpl<XiaomanCustomerMappe
         if (!vo.getCustomers().isEmpty()){
            List<CustomerInfoVo.Customer> newCistomer  = new ArrayList<>();
              vo.getCustomers().stream().collect(Collectors.groupingBy(CustomerInfoVo.Customer::getEmail)).forEach((k,v)->{
-                CustomerInfoVo.Customer customer1 = v.stream().sorted(Comparator.comparing(CustomerInfoVo.Customer::getCustomerId).reversed()).collect(Collectors.toList())
-                        .get(v.size() - 1);
+                CustomerInfoVo.Customer customer1 = v.get(v.size() - 1);
                  newCistomer.add(customer1);
             });