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