|
|
|
@ -44,7 +44,7 @@ public class PoiSellerService {
|
|
|
|
|
/**
|
|
|
|
|
* 找到区域或者店铺中所有的导购
|
|
|
|
|
*/
|
|
|
|
|
public List<PoiStoreStaffDTO> getAllSeller(Long regionId, Long shopId, long userId, Long companyId, List<Long> customers){
|
|
|
|
|
public List<PoiStoreStaffDTO> getAllSeller(Long regionId, Long shopId, long userId, Long companyId){
|
|
|
|
|
List<Long> shopIds = new ArrayList<>();
|
|
|
|
|
//先找到店铺
|
|
|
|
|
if(null != shopId){
|
|
|
|
@ -59,13 +59,15 @@ public class PoiSellerService {
|
|
|
|
|
}else if(companyId != null){
|
|
|
|
|
//有公司就查公司店铺
|
|
|
|
|
shopIds.addAll(customerViewService.getCompanyShop(companyId,userId));
|
|
|
|
|
}else if(customers != null){
|
|
|
|
|
for(Long cp : customers){
|
|
|
|
|
//有公司就查公司店铺
|
|
|
|
|
shopIds.addAll(customerViewService.getCompanyShop(cp,userId));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
}
|
|
|
|
|
// else if(customers != null){
|
|
|
|
|
// for(Long cp : customers){
|
|
|
|
|
// //有公司就查公司店铺
|
|
|
|
|
// shopIds.addAll(customerViewService.getCompanyShop(cp,userId));
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
else {
|
|
|
|
|
//什么都没有就全查
|
|
|
|
|
shopIds = privilageDomainService.listUserDatePermission(userId);
|
|
|
|
|
}
|
|
|
|
|