Commit 71dcaf0e by “Kongxiangkun”

工作台互动分析优化

parent 8b4ffdec
...@@ -433,22 +433,22 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr ...@@ -433,22 +433,22 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
eventTrackTypeNumVoList = this.baseMapper.queryNumByType(null,date,dateString,types,subNameList,context.getSiteId(), isPre); eventTrackTypeNumVoList = this.baseMapper.queryNumByType(null,date,dateString,types,subNameList,context.getSiteId(), isPre);
logger.info("埋点统计行为统计查询结果:{}", JSONUtil.toJsonStr(eventTrackTypeNumVoList)); logger.info("埋点统计行为统计查询结果:{}", JSONUtil.toJsonStr(eventTrackTypeNumVoList));
} }
// if(CollectionUtil.isNotEmpty(subNameList)){ if(CollectionUtil.isNotEmpty(subNameList)){
// List<EventTrackTypeNumVo> finalEventTrackTypeNumVoList = eventTrackTypeNumVoList; List<EventTrackTypeNumVo> finalEventTrackTypeNumVoList = eventTrackTypeNumVoList;
// subNameList.stream().forEach(name->{ subNameList.stream().forEach(name->{
// EventTrackTypeNumVo eventTrackTypeNumVo = new EventTrackTypeNumVo(); EventTrackTypeNumVo eventTrackTypeNumVo = new EventTrackTypeNumVo();
// eventTrackTypeNumVo.setNum(0); eventTrackTypeNumVo.setNum(0);
// eventTrackTypeNumVo.setSubType(name); eventTrackTypeNumVo.setSubType(name);
// if(CollectionUtil.isNotEmpty(finalEventTrackTypeNumVoList)){ if(CollectionUtil.isNotEmpty(finalEventTrackTypeNumVoList)){
// Optional optional = finalEventTrackTypeNumVoList.stream().filter(e->Objects.equals(e.getSubType(),name)).findFirst(); Optional optional = finalEventTrackTypeNumVoList.stream().filter(e->Objects.equals(e.getSubType(),name)).findFirst();
// if(optional==null||!optional.isPresent()){ if(optional==null||!optional.isPresent()){
// finalEventTrackTypeNumVoList.add(eventTrackTypeNumVo); finalEventTrackTypeNumVoList.add(eventTrackTypeNumVo);
// } }
// }else{ }else{
// finalEventTrackTypeNumVoList.add(eventTrackTypeNumVo); finalEventTrackTypeNumVoList.add(eventTrackTypeNumVo);
// } }
// }); });
// } }
return eventTrackTypeNumVoList; return eventTrackTypeNumVoList;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment