请求波司登获取数据·

master
yechenhao 6 years ago
parent e807e79388
commit ca3633795c

@ -267,7 +267,7 @@ public class CustomerService {
;
PoiStoreStaff poiStoreStaff = poiStoreStaffDOMapper.selectOne(staf);
QueryWrapper<OpSellerCustomerRelation> wrapper1 = new QueryWrapper<>();
wrapper1.eq("customer_id", opCustomer.getId()).eq("user_id", poiStoreStaff.getUserId()).eq("store_id", shopId).last("limit 1");
wrapper1.eq("customer_id", opCustomer.getId()).eq("user_id", poiStoreStaff.getId()).eq("store_id", shopId).last("limit 1");
OpSellerCustomerRelation opSellerCustomerRelation = opSellerCustomerRelationDOMapper.selectOne(wrapper1);
if (null == opSellerCustomerRelation) {
//不存在就添加

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

Loading…
Cancel
Save