|
|
@ -138,7 +138,7 @@ public class PoiStoreStaffService {
|
|
|
|
//导购对应的客户数
|
|
|
|
//导购对应的客户数
|
|
|
|
QueryWrapper<OpSellerCustomerRelation> wrapper2 = new QueryWrapper<>();
|
|
|
|
QueryWrapper<OpSellerCustomerRelation> wrapper2 = new QueryWrapper<>();
|
|
|
|
wrapper2.eq("store_id",shopId);
|
|
|
|
wrapper2.eq("store_id",shopId);
|
|
|
|
wrapper2.eq("user_id",poiStoreStaff.getUserId());
|
|
|
|
wrapper2.eq("user_id",poiStoreStaff.getId());
|
|
|
|
List<OpSellerCustomerRelation> opRelations = opSellerCustomerRelationDOMapper.selectList(wrapper2);
|
|
|
|
List<OpSellerCustomerRelation> opRelations = opSellerCustomerRelationDOMapper.selectList(wrapper2);
|
|
|
|
long count = opRelations.stream().map(OpSellerCustomerRelation::getCustomerId).distinct().count();
|
|
|
|
long count = opRelations.stream().map(OpSellerCustomerRelation::getCustomerId).distinct().count();
|
|
|
|
poiStoreStaffVO.setCustomerNum((int)count);
|
|
|
|
poiStoreStaffVO.setCustomerNum((int)count);
|
|
|
|