|
|
@ -217,8 +217,15 @@ public class CustomerViewService {
|
|
|
|
handleChartData(customerList, validCustomerList, customerViewVO);
|
|
|
|
handleChartData(customerList, validCustomerList, customerViewVO);
|
|
|
|
|
|
|
|
|
|
|
|
//设置新增好友,新增好友(去重),vip人数
|
|
|
|
//设置新增好友,新增好友(去重),vip人数
|
|
|
|
setCustomerViewData(customerViewVO, customerList, validCustomerList, selectStartTime, selectEndTime);
|
|
|
|
// setCustomerViewData(customerViewVO, customerList, validCustomerList, selectStartTime, selectEndTime);
|
|
|
|
|
|
|
|
//新增好友
|
|
|
|
|
|
|
|
// Long newCustomerCount = customerList.stream().filter(customerDO -> filterCustomerByRegisterTime(customerDO, selectStartTime, selectEndTime)).count();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Integer newCustomerCount = opCustomerDOMapper.countCustomerByDate(selectStartTime, selectEndTime);
|
|
|
|
|
|
|
|
customerViewVO.setNewCustomer(new Long(newCustomerCount));
|
|
|
|
|
|
|
|
//新增好友(去重)
|
|
|
|
|
|
|
|
Long newValidCustomerCount = validCustomerList.stream().filter(customerDO -> filterCustomerByRegisterTime(customerDO, selectStartTime, selectEndTime)).count();
|
|
|
|
|
|
|
|
customerViewVO.setNewValidCustomer(newValidCustomerCount);
|
|
|
|
return customerViewVO;
|
|
|
|
return customerViewVO;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|