|
@@ -374,6 +374,8 @@ public class ScenePlusServiceImpl extends ServiceImpl<IScenePlusMapper, ScenePlu
|
|
|
sceneEditInfoExt = sceneEditInfoExtService.getByEditInfoId(sceneEditInfo.getId());
|
|
|
|
|
|
//生成sceneJson
|
|
|
+ String sceneJsonPath = String.format(UploadFilePath.DATA_VIEW_PATH+"scene.json", num);
|
|
|
+ String oldSceneJson = ossUtil.getFileContent(bucket, sceneJsonPath);
|
|
|
SceneJsonBean sceneJson = new SceneJsonBean();
|
|
|
BeanUtil.copyProperties(sceneEditInfoExt, sceneJson);
|
|
|
BeanUtil.copyProperties(sceneEditInfo, sceneJson);
|
|
@@ -389,8 +391,11 @@ public class ScenePlusServiceImpl extends ServiceImpl<IScenePlusMapper, ScenePlu
|
|
|
sceneJson.setVideos(scenePlusExt.getVideos());
|
|
|
}
|
|
|
sceneJson.setModelKind(scenePlusExt.getModelKind());
|
|
|
+ if(StrUtil.isNotEmpty(oldSceneJson)){
|
|
|
+ List<JSONObject> mosaicList = JSON.parseObject(oldSceneJson, SceneJsonBean.class).getMosaicList();
|
|
|
+ sceneJson.setMosaicList(mosaicList);
|
|
|
+ }
|
|
|
//本地写sceneJson文件
|
|
|
- String sceneJsonPath = String.format(UploadFilePath.DATA_VIEW_PATH+"scene.json", num);
|
|
|
ossUtil.uploadFileBytes(bucket, sceneJsonPath, JSON.toJSONString(sceneJson).getBytes(StandardCharsets.UTF_8));
|
|
|
|
|
|
//生成floorplan.json
|