dengsixing 8 hónapja
szülő
commit
5302cccb81

+ 6 - 0
src/main/java/com/fdkankan/contro/entity/ScenePlus.java

@@ -104,6 +104,12 @@ public class ScenePlus implements Serializable {
     private String threeCamType;
 
     /**
+     * 是否有ai识别
+     */
+    @TableField("has_ai")
+    private Integer hasAi;
+
+    /**
      * 创建时间
      */
     @TableField("create_time")

+ 6 - 2
src/main/java/com/fdkankan/contro/mq/service/impl/BuildSceneServiceImpl.java

@@ -407,7 +407,8 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
             //上传全景图俯视图
             this.uploadFloorCad(path, sceneCode, uploadFiles);
 
-            this.uploadFreespace(sceneCode, path, uploadFiles);
+            Integer hasAi = this.uploadFreespace(sceneCode, path, uploadFiles);
+            scenePlus.setHasAi(hasAi);
 
             log.info("开始上传场景计算结果数据,num:{}", sceneCode);
             //由于3dtiles算法mesh文件发生变化,所以这里需要先清除一下oss的mesh目录,避免存在旧算法obj文件
@@ -551,11 +552,13 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
         }
     }
 
-    void uploadFreespace(String num, String path, Map<String, String> map){
+    private Integer uploadFreespace(String num, String path, Map<String, String> map){
         String plyPath = path + "/results/laserData/cover/final_freespace.ply";
         String pngPath = path + "/results/laserData/cover/final_freespace.png";
         String infoJsonPath = path + "/results/laserData/cover/info.json";
+        Integer hasAi = CommonStatus.NO.code().intValue();
         if(FileUtil.exist(plyPath)){
+            hasAi = CommonStatus.YES.code().intValue();
             map.put(plyPath, String.format(UploadFilePath.IMG_VIEW_PATH, num) + "cover/" + FileUtil.getName(plyPath));
         }
         if(FileUtil.exist(pngPath)){
@@ -564,6 +567,7 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
         if(FileUtil.exist(infoJsonPath)){
             map.put(infoJsonPath, String.format(UploadFilePath.IMG_VIEW_PATH, num) + "cover/" + FileUtil.getName(infoJsonPath));
         }
+        return hasAi;
     }
 
     private void sendMqForBcgn(String num){