Browse Source

激光v4场景生成obj,变更modelKind

dsx 2 years ago
parent
commit
172ecc9131

+ 3 - 1
src/main/java/com/fdkankan/contro/mq/service/impl/BuildObjServiceImpl.java

@@ -159,7 +159,8 @@ public class BuildObjServiceImpl implements IBuildSceneService {
     public void downLoadSource(BuildSceneCallMessage message,String path) throws Exception{
     public void downLoadSource(BuildSceneCallMessage message,String path) throws Exception{
 
 
         String ossResultPath = String.format(UploadFilePath.scene_result_data_path, message.getSceneNum());
         String ossResultPath = String.format(UploadFilePath.scene_result_data_path, message.getSceneNum());
-        fYunFileService.downloadFile(ossResultPath + "caches/reconstruction/final.bin", path + "/caches/reconstruction/final.bin");
+        fYunFileService.download
+    13File(ossResultPath + "caches/reconstruction/final.bin", path + "/caches/reconstruction/final.bin");
         fYunFileService.downloadFile(ossResultPath + "caches/reconstruction/chunk.json", path + "/caches/reconstruction/chunk.json");
         fYunFileService.downloadFile(ossResultPath + "caches/reconstruction/chunk.json", path + "/caches/reconstruction/chunk.json");
         fYunFileService.downloadFile(ossResultPath + "caches/floor_group_fix.json", path + "/caches/floor_group_fix.json");
         fYunFileService.downloadFile(ossResultPath + "caches/floor_group_fix.json", path + "/caches/floor_group_fix.json");
         fYunFileService.downloadFileByCommand(path + "/caches/images/", ossResultPath + "caches/images/");
         fYunFileService.downloadFileByCommand(path + "/caches/images/", ossResultPath + "caches/images/");
@@ -273,6 +274,7 @@ public class BuildObjServiceImpl implements IBuildSceneService {
                         && sdTilesSceneSourceList.contains(SceneSource.JG.code())){
                         && sdTilesSceneSourceList.contains(SceneSource.JG.code())){
                     ScenePlusExt scenePlusExt = scenePlusExtService.getScenePlusExtByPlusId(scenePlus.getId());
                     ScenePlusExt scenePlusExt = scenePlusExtService.getScenePlusExtByPlusId(scenePlus.getId());
                     scenePlusExt.setModelKind(ModelKind.THREE_D_TILE.code());
                     scenePlusExt.setModelKind(ModelKind.THREE_D_TILE.code());
+                    scenePlusExtService.updateById(scenePlusExt);
 
 
                     String sceneJsonStr = fYunFileService.getFileContent(String.format(UploadFilePath.DATA_VIEW_PATH, projectNum) + "scene.json");
                     String sceneJsonStr = fYunFileService.getFileContent(String.format(UploadFilePath.DATA_VIEW_PATH, projectNum) + "scene.json");
                     if(StrUtil.isNotEmpty(sceneJsonStr)){
                     if(StrUtil.isNotEmpty(sceneJsonStr)){