xiewenjie 3 年之前
父節點
當前提交
93a950f464

+ 3 - 1
sxz-core/src/main/java/com/fdkk/sxz/other/listener/RunBuild.java

@@ -1082,6 +1082,9 @@ public class RunBuild {
                         if (new File(filePath + fileId + "_preview.jpg").exists()) {
                             modelUploadEntity.setThumPath((filePath + fileId + "_preview.jpg").replace(buildPath, ""));
                         }
+                        if (new File(filePath + fileId + "_bird.png").exists()) {
+                            modelUploadEntity.setBirdPath((filePath + fileId + "birdPath.png").replace(buildPath, ""));
+                        }
 
                         modelUploadEntity.setStatus(1);
                         modelUploadEntity.setProgress(100);
@@ -1352,7 +1355,6 @@ public class RunBuild {
                         componentModelUploadEntity.setThumStatus(1);
                         componentModelUploadEntity.setThumProgress(100);
                         componentModelUploadEntity.setThumPath(objPath.replace(buildPath, "").replace(".obj", "") + "_preview.jpg");
-                        componentModelUploadEntity.setBirdPath(objPath.replace(buildPath, "").replace(".obj", "") + "_bird.png");
                         componentModelUploadEntity.setMtlPath(objPath.replace(buildPath, "").replace(".obj", "") + ".mtl");
 //                    componentModelUploadEntity.setImgPath(objPath.replace(buildPath, "").replace(".obj", "") + ".jpg");
                         componentModelUploadEntity.setObjPath(objPath.replace(buildPath, ""));

+ 1 - 6
sxz-modules/src/main/java/com/fdkk/sxz/entity/ComponentModelUploadEntity.java

@@ -81,12 +81,7 @@ public class ComponentModelUploadEntity extends BaseEntity {
     @TableField("thum_path")
     @ApiModelProperty(value = "缩略图地址", name = "thum_path")
     private String thumPath;
-    /**
-     * 俯视图
-     */
-    @TableField("bird_path")
-    @ApiModelProperty(value = "俯视图", name = "bird_path")
-    private String birdPath;
+
     /**
      * 0转换中,1转成成功,-1转换失败
      */

+ 5 - 0
sxz-modules/src/main/java/com/fdkk/sxz/entity/ModelUploadEntity.java

@@ -44,6 +44,11 @@ public class ModelUploadEntity extends BaseEntity {
 
     @TableField("file_type")
     private Integer fileType;
+    /**
+     * 俯视图
+     */
+    @TableField("bird_path")
+    private String birdPath;
 
     @TableField("thum_path")
     private String thumPath;