|
@@ -122,6 +122,7 @@ public class ReportServiceImpl implements ReportService {
|
|
|
*/
|
|
|
@Override
|
|
|
public QueryWxFactoryRes queryWxFactory(QueryWxFactoryReq queryWxFactoryReq) {
|
|
|
+ Long id = userUtil.getUser().getId();
|
|
|
// 是小程序用户主账号 1-是 0-不是
|
|
|
Integer isMainAccount = userUtil.getWholeUser().getIsMainAccount();
|
|
|
QueryWxFactoryRes res = new QueryWxFactoryRes();
|
|
@@ -135,7 +136,7 @@ public class ReportServiceImpl implements ReportService {
|
|
|
List<QueryWxFactoryVO> queryWxFactorySumNumber = reportServiceMapper.queryWxFactorySumNumber(queryWxFactoryReq,getMonth());
|
|
|
Map<String, Long> sumNumberMap = queryWxFactorySumNumber.stream().collect(Collectors.toMap(QueryWxFactoryVO::getMonth, QueryWxFactoryVO::getTotal));
|
|
|
//激活量
|
|
|
- List<QueryWxFactoryVO> queryWxFactoryActivationNumber = reportServiceMapper.queryWxFactoryActivationNumber(queryWxFactoryReq,getMonth());
|
|
|
+ List<QueryWxFactoryVO> queryWxFactoryActivationNumber = reportServiceMapper.queryWxFactoryActivationNumber(queryWxFactoryReq,getMonth(),id);
|
|
|
Map<String, Long> activationNumberMap = queryWxFactoryActivationNumber.stream().collect(Collectors.toMap(QueryWxFactoryVO::getMonth, QueryWxFactoryVO::getActivation));
|
|
|
//信息汇总
|
|
|
queryWxFactorySumSummary.forEach(factorySumNumber->{
|
|
@@ -161,7 +162,7 @@ public class ReportServiceImpl implements ReportService {
|
|
|
List<QueryWxFactoryVO> queryWxFactorySumNumber = reportServiceMapper.queryWxFactorySumNumber(queryWxFactoryReq,null);
|
|
|
AssertUtil.isNull(queryWxFactorySumNumber,"查询为空!");
|
|
|
//激活量
|
|
|
- List<QueryWxFactoryVO> queryWxFactoryActivationNumber = reportServiceMapper.queryWxFactoryActivationNumber(queryWxFactoryReq,null);
|
|
|
+ List<QueryWxFactoryVO> queryWxFactoryActivationNumber = reportServiceMapper.queryWxFactoryActivationNumber(queryWxFactoryReq,null,null);
|
|
|
Map<String, Long> activationNumberMap = queryWxFactoryActivationNumber.stream().collect(Collectors.toMap(QueryWxFactoryVO::getMonth, QueryWxFactoryVO::getActivation));
|
|
|
queryWxFactorySumNumber.forEach(factorySumNumber->{
|
|
|
Long aLong = (null == activationNumberMap.get(factorySumNumber.getMonth()) ? 0L : activationNumberMap.get(factorySumNumber.getMonth()));
|