From 3d21b06a2378d1010094b9d55afed727af4070cb Mon Sep 17 00:00:00 2001 From: yechenhao Date: Sat, 30 May 2020 17:41:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=AE=A2=E6=88=B7=E5=AF=BC?= =?UTF-8?q?=E8=B4=AD=E5=85=B3=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/kiisoo/ic/customer/service/CustomerViewService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/kiisoo/ic/customer/service/CustomerViewService.java b/src/main/java/com/kiisoo/ic/customer/service/CustomerViewService.java index e9e7ba2..d5bf7b2 100644 --- a/src/main/java/com/kiisoo/ic/customer/service/CustomerViewService.java +++ b/src/main/java/com/kiisoo/ic/customer/service/CustomerViewService.java @@ -492,7 +492,7 @@ public class CustomerViewService { List getShopNewCustomerList(List newCustimerList){ //店铺分组 Map> shopIdMap = newCustimerList.stream().collect(Collectors.groupingBy(OpCustomer::getShopId)); - List shopIds = newCustimerList.stream().map(OpCustomer::getShopId).collect(Collectors.toList()); + List shopIds = newCustimerList.stream().filter(item -> item.getValidType() != 3).map(OpCustomer::getShopId).distinct().collect(Collectors.toList()); if(shopIds.size() == 0){ return new ArrayList<>(); }