Commit 71dcaf0e by “Kongxiangkun”

工作台互动分析优化

parent 8b4ffdec
......@@ -433,22 +433,22 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
eventTrackTypeNumVoList = this.baseMapper.queryNumByType(null,date,dateString,types,subNameList,context.getSiteId(), isPre);
logger.info("埋点统计行为统计查询结果:{}", JSONUtil.toJsonStr(eventTrackTypeNumVoList));
}
// if(CollectionUtil.isNotEmpty(subNameList)){
// List<EventTrackTypeNumVo> finalEventTrackTypeNumVoList = eventTrackTypeNumVoList;
// subNameList.stream().forEach(name->{
// EventTrackTypeNumVo eventTrackTypeNumVo = new EventTrackTypeNumVo();
// eventTrackTypeNumVo.setNum(0);
// eventTrackTypeNumVo.setSubType(name);
// if(CollectionUtil.isNotEmpty(finalEventTrackTypeNumVoList)){
// Optional optional = finalEventTrackTypeNumVoList.stream().filter(e->Objects.equals(e.getSubType(),name)).findFirst();
// if(optional==null||!optional.isPresent()){
// finalEventTrackTypeNumVoList.add(eventTrackTypeNumVo);
// }
// }else{
// finalEventTrackTypeNumVoList.add(eventTrackTypeNumVo);
// }
// });
// }
if(CollectionUtil.isNotEmpty(subNameList)){
List<EventTrackTypeNumVo> finalEventTrackTypeNumVoList = eventTrackTypeNumVoList;
subNameList.stream().forEach(name->{
EventTrackTypeNumVo eventTrackTypeNumVo = new EventTrackTypeNumVo();
eventTrackTypeNumVo.setNum(0);
eventTrackTypeNumVo.setSubType(name);
if(CollectionUtil.isNotEmpty(finalEventTrackTypeNumVoList)){
Optional optional = finalEventTrackTypeNumVoList.stream().filter(e->Objects.equals(e.getSubType(),name)).findFirst();
if(optional==null||!optional.isPresent()){
finalEventTrackTypeNumVoList.add(eventTrackTypeNumVo);
}
}else{
finalEventTrackTypeNumVoList.add(eventTrackTypeNumVo);
}
});
}
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