|
|
@@ -206,6 +206,8 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
private ISceneUploadCountService sceneUploadCountService;
|
|
|
@Autowired
|
|
|
private IWbService wbService;
|
|
|
+ @Autowired
|
|
|
+ private IRelocationBindService relocationBindService;
|
|
|
|
|
|
@Override
|
|
|
public SceneFileBuild findByFileId(String fileId) {
|
|
|
@@ -501,6 +503,8 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
mqMessage.getExt().put("deleteExtras", true);
|
|
|
mqMessage.getExt().put("keepTitle", 0);
|
|
|
if (jsonObject.getIntValue("location") == 7) {
|
|
|
+ //保存重定位绑定关系
|
|
|
+ this.saveRelocationBind(scenePlusVO.getNum(), jsonObject);
|
|
|
//发送到全景看看进行初始化
|
|
|
intermitSceneService.sendMq(scenePlusVO.getNum(), jsonObject, CommonSuccessStatus.WAITING.code());
|
|
|
rabbitMqProducer.sendByWorkQueue(queueIntermitModelingPre, mqMessage);
|
|
|
@@ -521,6 +525,25 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
return scenePlusVO;
|
|
|
}
|
|
|
|
|
|
+ private void saveRelocationBind(String panNum, JSONObject fdageData){
|
|
|
+ String sxUuid = fdageData.getString("parentScene");
|
|
|
+ if(StrUtil.isEmpty(sxUuid)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ ScenePlus scenePlus = scenePlusService.getByFileId(sxUuid);
|
|
|
+ RelocationBind relocationBind = relocationBindService.getByPanNum(panNum);
|
|
|
+ if(relocationBind == null){
|
|
|
+ relocationBind = new RelocationBind();
|
|
|
+ relocationBind.setPanNum(panNum);
|
|
|
+ }
|
|
|
+ relocationBind.setMainUuid(sxUuid);
|
|
|
+ relocationBind.setUpdateTime(null);
|
|
|
+ if(scenePlus != null){
|
|
|
+ relocationBind.setMainNum(scenePlus.getNum());
|
|
|
+ }
|
|
|
+ relocationBindService.saveOrUpdate(relocationBind);
|
|
|
+ }
|
|
|
+
|
|
|
public ScenePlusVO buildV3Scene(ScenePro scenePro, String fileId, String prefix, JSONObject jsonObject, String buildType, long cameraType) throws Exception {
|
|
|
|
|
|
sceneCopyLogService.checkCanBuild(scenePro.getNum());
|