|
|
@ -59,22 +59,24 @@ public class CustomerViewService {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 客户概览main
|
|
|
|
* 客户概览main
|
|
|
|
* @param userId 用户id
|
|
|
|
* @param userId 用户id
|
|
|
|
* @param regionId 区域id
|
|
|
|
* @param organizationId 零售公司id
|
|
|
|
* @param shopId 店铺id
|
|
|
|
* @param shopId 店铺id
|
|
|
|
* @param sellerId 导购id
|
|
|
|
|
|
|
|
* @param sevenDayStartTime 近七天开始时间
|
|
|
|
* @param sevenDayStartTime 近七天开始时间
|
|
|
|
* @param sevenDayEndTime 近七天结束时间
|
|
|
|
* @param sevenDayEndTime 近七天结束时间
|
|
|
|
* @return 客户概览VO
|
|
|
|
* @return 客户概览VO
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public CustomerViewVO selectCustomerViewMain(Long userId, Long regionId, Long shopId, Long sellerId, String sevenDayStartTime, String sevenDayEndTime){
|
|
|
|
public CustomerViewVO selectCustomerViewMain(Long userId, Long organizationId, Long shopId, String sevenDayStartTime, String sevenDayEndTime){
|
|
|
|
CustomerViewVO customerViewVO = new CustomerViewVO();
|
|
|
|
CustomerViewVO customerViewVO = new CustomerViewVO();
|
|
|
|
//shopIds
|
|
|
|
//shopIds
|
|
|
|
List<Long> shopIds = getShopIds(userId, regionId, shopId);
|
|
|
|
// List<Long> shopIds = getShopIds(userId, regionId, shopId);
|
|
|
|
|
|
|
|
List<Long> shopIds = new ArrayList<>();
|
|
|
|
//客户list
|
|
|
|
//客户list
|
|
|
|
List<OpCustomer> customerList = opCustomerDOMapper.selectCustomerList(shopIds, sellerId, null, null, null);
|
|
|
|
List<OpCustomer> customerList = opCustomerDOMapper.selectCustomerList(shopIds, null, null, null, null);
|
|
|
|
//会员list
|
|
|
|
//会员list
|
|
|
|
List<OpVip> vipList = opVipDOMapper.selectVipList(shopIds, null, null);
|
|
|
|
List<OpVip> vipList = opVipDOMapper.selectVipList(shopIds, null, null);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//5大块客户数
|
|
|
|
|
|
|
|
|
|
|
|
//设置客户,关联,vip人数
|
|
|
|
//设置客户,关联,vip人数
|
|
|
|
setCustomerAndVipSize(customerList, vipList, customerViewVO);
|
|
|
|
setCustomerAndVipSize(customerList, vipList, customerViewVO);
|
|
|
|
//近七天新增list
|
|
|
|
//近七天新增list
|
|
|
|