|
@@ -212,26 +212,6 @@ public class BuildObjServiceImpl implements IBuildSceneService {
|
|
.eq(SceneProEdit::getProId,scenePro.getId()));
|
|
.eq(SceneProEdit::getProId,scenePro.getId()));
|
|
}
|
|
}
|
|
|
|
|
|
- ScenePlus scenePlus = scenePlusService.getScenePlusByNum(projectNum);
|
|
|
|
- if(!ObjectUtils.isEmpty(scenePlus)){
|
|
|
|
- LambdaUpdateWrapper<ScenePlus> plusUpdateWrapper = new LambdaUpdateWrapper<ScenePlus>()
|
|
|
|
- .set(ScenePlus::getSceneStatus, -2).eq(ScenePlus::getNum, projectNum);
|
|
|
|
- scenePlusService.update(plusUpdateWrapper);
|
|
|
|
- SceneEditInfo sceneEditInfo = sceneEditInfoService.getByScenePlusId(scenePlus.getId());
|
|
|
|
- SceneEditControls sceneEditControls = sceneEditControlsService.getBySceneEditId(sceneEditInfo.getId());
|
|
|
|
- sceneEditControls.setShowMap(0);
|
|
|
|
- sceneEditControlsService.updateById(sceneEditControls);
|
|
|
|
-
|
|
|
|
- // 更新scene.json
|
|
|
|
- String dataViewPath = String.format(UploadFilePath.DATA_VIEW_PATH, projectNum);
|
|
|
|
- SceneJsonBean jsonObject =JSONObject.parseObject(fYunFileService.getFileContent(dataViewPath + "scene.json"), SceneJsonBean.class);
|
|
|
|
- jsonObject.getControls().setShowMap(0);
|
|
|
|
- String jsonString = JSON.toJSONString(jsonObject);
|
|
|
|
- fYunFileService.uploadFile(jsonString.getBytes(), dataViewPath + "scene.json");
|
|
|
|
- //更新缓存
|
|
|
|
- redisUtil.set(String.format(RedisKey.SCENE_JSON, projectNum), jsonString);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
// 如果未升级V4,则升级V4
|
|
// 如果未升级V4,则升级V4
|
|
fdkkV4Service.upgradeToV4(projectNum);
|
|
fdkkV4Service.upgradeToV4(projectNum);
|
|
}
|
|
}
|