Commit b65a5497 authored by tangwei's avatar tangwei

修改bug

parent e9f5b00d
......@@ -451,6 +451,8 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
video.setBizOrgCode(x.getBizOrgCode());
video.setBizOrgName(x.getBizOrgName());
videos.add(video);
try {
this.baseMapper.insert(video);
// 处理监控和建筑关系
if (!ValidationUtil.isEmpty(x.getBuildingCodes())) {
......@@ -467,7 +469,9 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
videoEquipmentSpecifics.addAll(this.buildVideoEquipmentSpecific(equipMap, video.getId(), x.getEquipmentSpecificCodes(), rowNum));
// 处理监控和多个电力设备关系(1个摄像头对多个电力装备)
videoImportantEquipments.addAll(this.buildVideoImportantEquipment(fireMap, video.getId(), x.getImportantEquipmentCodes(), rowNum));
}catch (Exception e) {
throw new RuntimeException("系统异常!");
}
}
if (!videoSources.isEmpty()) {
videoSourceService.saveBatch(videoSources);
......
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