|
@@ -253,6 +253,9 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
sceneJson.setVideos(scenePlusExt.getVideos());
|
|
|
}
|
|
|
|
|
|
+ //发布马赛克列表
|
|
|
+ sceneJson.setMosaicList(this.getMosaicList(num));
|
|
|
+
|
|
|
//处理热点数据,生成hot.json
|
|
|
this.publicHotData(num, sceneEditInfo);
|
|
|
|
|
@@ -462,6 +465,7 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
sceneInfoVO.setSceneResolution(scenePlusExt.getSceneResolution());
|
|
|
sceneInfoVO.setSceneFrom(scenePlusExt.getSceneFrom());
|
|
|
sceneInfoVO.setVideos(scenePlusExt.getVideos());
|
|
|
+ sceneInfoVO.setMosaicList(this.getMosaicList(num));
|
|
|
|
|
|
// TODO: 2022/4/24 v3版本停机要切换---------------------------start
|
|
|
// this.setExtData(sceneInfoVO, scenePlus.getCameraId());
|
|
@@ -2408,20 +2412,19 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public ResultData getMosaicList(BaseSceneParamVO param) throws Exception {
|
|
|
+ public List<JSONObject> getMosaicList(String num) throws Exception {
|
|
|
|
|
|
//如果redis数据丢失,从本地文件中同步马赛克数据到redis
|
|
|
- this.syncMosaicFromFileToRedis(param.getNum());
|
|
|
+ this.syncMosaicFromFileToRedis(num);
|
|
|
|
|
|
- String key = String.format(RedisKey.SCENE_MOSAIC_DATA, param.getNum());
|
|
|
+ String key = String.format(RedisKey.SCENE_MOSAIC_DATA, num);
|
|
|
Map<String, String> map = redisUtil.hmget(key);
|
|
|
if(CollUtil.isEmpty(map)){
|
|
|
ResultData.ok(new String[0]);
|
|
|
}
|
|
|
- return ResultData.ok(
|
|
|
- map.values().stream()
|
|
|
+ return map.values().stream()
|
|
|
.map(mosaic-> JSON.parseObject(mosaic))
|
|
|
- .collect(Collectors.toList()));
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
|
|
}
|
|
|
|