|
@@ -91,6 +91,7 @@ public class CaseNumServiceImpl extends ServiceImpl<ICaseNumMapper, CaseNumEntit
|
|
|
continue;
|
|
|
}
|
|
|
Model model = modelService.getIsNullNewByNum(num,param.getType());
|
|
|
+ model.setUpdateTime(null);
|
|
|
model.setModelDateType("obj");
|
|
|
model.setType(param.getType());
|
|
|
model.setModelType("pointcloud"); //深时点云类型
|
|
@@ -134,17 +135,11 @@ public class CaseNumServiceImpl extends ServiceImpl<ICaseNumMapper, CaseNumEntit
|
|
|
if(ossGlbPath.contains("lod_")){
|
|
|
if(ossGlbPath.contains("lod_0")){
|
|
|
ossGlbPaths.add(queryPath +ossGlbPath);
|
|
|
- File file = new File(localGlbPath);
|
|
|
- if(file!=null){
|
|
|
- modelSize += file.length();
|
|
|
- }
|
|
|
+ modelSize += uploadToOssUtil.getSize(ossGlbPath);
|
|
|
}
|
|
|
continue;
|
|
|
}
|
|
|
- File file = new File(localGlbPath);
|
|
|
- if(file!=null){
|
|
|
- modelSize += file.length();
|
|
|
- }
|
|
|
+ modelSize += uploadToOssUtil.getSize(ossGlbPath);
|
|
|
ossGlbPaths.add(queryPath +ossGlbPath);
|
|
|
}
|
|
|
return JSONArray.toJSONString(ossGlbPaths);
|