From 4ac67e4cb1e4cc483cc4d21a28c431ea1bb60598 Mon Sep 17 00:00:00 2001 From: kevin jiang Date: Wed, 13 May 2020 21:54:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=82=B9=E5=87=BB=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=9C=AC=E6=9C=88=E6=8A=A5=E9=94=99=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=EF=BC=8C=E5=BA=97=E9=93=BAID=E5=8E=BB=E9=87=8D=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/kiisoo/ic/customer/service/CustomerViewService.java | 4 +++- 1 file changed, 3 insertions(+), 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 a59665a..03da7cf 100644 --- a/src/main/java/com/kiisoo/ic/customer/service/CustomerViewService.java +++ b/src/main/java/com/kiisoo/ic/customer/service/CustomerViewService.java @@ -216,7 +216,9 @@ public class CustomerViewService { */ public List getOrgInfoByShopIds(List shopIds, Boolean companyFlag, Boolean regionFlag){ //店铺-客户组织list - List shopOrgInfoList = opCustomerDOMapper.selectCustomerOrgByShopIds(shopIds, LEVEL_CUSTOMER); + List newShopIds = shopIds.stream().distinct().collect(Collectors.toList()); + + List shopOrgInfoList = opCustomerDOMapper.selectCustomerOrgByShopIds(newShopIds, LEVEL_CUSTOMER); if(companyFlag == null || !companyFlag){ return shopOrgInfoList; }