|
|
@ -216,7 +216,9 @@ public class CustomerViewService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public List<ShopOrgInfoVO> getOrgInfoByShopIds(List<Long> shopIds, Boolean companyFlag, Boolean regionFlag){
|
|
|
|
public List<ShopOrgInfoVO> getOrgInfoByShopIds(List<Long> shopIds, Boolean companyFlag, Boolean regionFlag){
|
|
|
|
//店铺-客户组织list
|
|
|
|
//店铺-客户组织list
|
|
|
|
List<ShopOrgInfoVO> shopOrgInfoList = opCustomerDOMapper.selectCustomerOrgByShopIds(shopIds, LEVEL_CUSTOMER);
|
|
|
|
List<Long> newShopIds = shopIds.stream().distinct().collect(Collectors.toList());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<ShopOrgInfoVO> shopOrgInfoList = opCustomerDOMapper.selectCustomerOrgByShopIds(newShopIds, LEVEL_CUSTOMER);
|
|
|
|
if(companyFlag == null || !companyFlag){
|
|
|
|
if(companyFlag == null || !companyFlag){
|
|
|
|
return shopOrgInfoList;
|
|
|
|
return shopOrgInfoList;
|
|
|
|
}
|
|
|
|
}
|
|
|
|