|
@@ -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);
|
|
|
});
|
|
|
|