Commit 35b767fb authored by suhuiguang's avatar suhuiguang

1.视频树接口,统计数量时没有父级数量未统计子数量

parent 19b5cd85
......@@ -662,7 +662,7 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
List<CountDto> videoCountMapList = videoMapper.getVideoCountMapList();
Map<String, Long> videoMap = new HashMap<>();
videoCountMapList.forEach(item -> {
videoMap.put(item.getBizOrgCode(), item.getNum().longValue());
videoMap.put(item.getBizOrgCode(), videoCountMapList.stream().filter(c->c.getBizOrgCode().contains(item.getBizOrgCode())).mapToLong(CountDto::getNum).sum());
});
return videoMap;
}
......
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