Commit 43aef21c authored by xixinzhao's avatar xixinzhao

视频未关联建筑报错

parent 997b9d32
......@@ -1674,7 +1674,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
x.setVedioFormat(x.getVideoType());
x.setUrl(videoService.getVideoUrl(x.getName(), x.getPresetPosition(), x.getUrl(), x.getCode()));
});
Map<String, List<BuildingVideoVO>> videoBuildMap = videoList.stream().collect(Collectors.groupingBy(BuildingVideoVO::getBuildId));
Map<String, List<BuildingVideoVO>> videoBuildMap = videoList.stream().filter(v -> !ObjectUtils.isEmpty(v.getBuildId())).collect(Collectors.groupingBy(BuildingVideoVO::getBuildId));
companyBuildingList.forEach(c -> {
// 建筑类型数据,填充本级及子级包含的摄像头数量
......
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