lin
2022-01-08 ddb36e54bd51761138c536ccca889d3f80182334
src/main/java/com/genersoft/iot/vmp/storager/impl/VideoManagerStoragerImpl.java
@@ -486,8 +486,9 @@
      // 更新缓存
      parentPlatformCatch.setParentPlatform(parentPlatform);
      redisCatchStorage.updatePlatformCatchInfo(parentPlatformCatch);
      if (parentPlatform.isEnable()) {
      // 共享所有视频流,需要将现有视频流添加到此平台
      List<GbStream> gbStreams = gbStreamMapper.selectAll();
         List<GbStream> gbStreams = gbStreamMapper.queryStreamNotInPlatform();
      if (gbStreams.size() > 0) {
         for (GbStream gbStream : gbStreams) {
            gbStream.setCatalogId(parentPlatform.getCatalogId());
@@ -498,6 +499,8 @@
            gbStreamService.delPlatformInfo(gbStreams);
         }
      }
      }
      return result > 0;
   }