|
@@ -21,6 +21,7 @@ import com.fdkankan.common.util.FileUtils;
|
|
import com.fdkankan.common.util.SnowflakeIdGenerator;
|
|
import com.fdkankan.common.util.SnowflakeIdGenerator;
|
|
import com.fdkankan.contro.constant.RedisConstants;
|
|
import com.fdkankan.contro.constant.RedisConstants;
|
|
import com.fdkankan.contro.entity.*;
|
|
import com.fdkankan.contro.entity.*;
|
|
|
|
+import com.fdkankan.contro.enums.CameraTypeEnum;
|
|
import com.fdkankan.contro.mapper.ISceneFileBuildMapper;
|
|
import com.fdkankan.contro.mapper.ISceneFileBuildMapper;
|
|
import com.fdkankan.contro.service.*;
|
|
import com.fdkankan.contro.service.*;
|
|
import com.fdkankan.contro.vo.ResponseSceneFile;
|
|
import com.fdkankan.contro.vo.ResponseSceneFile;
|
|
@@ -374,7 +375,8 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
String algorithm = jsonObject.getString("location") != null && "1".equals(jsonObject.getString("location")) ? "sfm" : "slam";
|
|
String algorithm = jsonObject.getString("location") != null && "1".equals(jsonObject.getString("location")) ? "sfm" : "slam";
|
|
|
|
|
|
ScenePlusVO scenePlusVO = this.createScenePlus(sceneNum, cameraDetail.getCameraId(), jsonObject.getString("creator"),
|
|
ScenePlusVO scenePlusVO = this.createScenePlus(sceneNum, cameraDetail.getCameraId(), jsonObject.getString("creator"),
|
|
- jsonObject.getString("pwd"),cameraType, dataSource, icon, cameraDetail.getUserId(), userName,algorithm,
|
|
|
|
|
|
+ jsonObject.getString("pwd"),cameraType, jsonObject.getJSONObject("cam").getIntValue("type"),
|
|
|
|
+ dataSource, icon, cameraDetail.getUserId(), userName,algorithm,
|
|
jsonObject.getJSONArray("points").size(), jsonObject.getString("name"), jsonObject.getString("info"),
|
|
jsonObject.getJSONArray("points").size(), jsonObject.getString("name"), jsonObject.getString("info"),
|
|
jsonObject.getInteger("scenetype"), jsonObject.getString("gps"), rebuild,
|
|
jsonObject.getInteger("scenetype"), jsonObject.getString("gps"), rebuild,
|
|
jsonObject.getInteger("resolution"), firmwareVersion.toString(), sceneUrl, buildType, cameraDetail.getCooperationUser());
|
|
jsonObject.getInteger("resolution"), firmwareVersion.toString(), sceneUrl, buildType, cameraDetail.getCooperationUser());
|
|
@@ -765,7 +767,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
}
|
|
}
|
|
|
|
|
|
public ScenePlusVO createScenePlus(String projectNum, Long cameraId, String phoneId, String sceneKey,
|
|
public ScenePlusVO createScenePlus(String projectNum, Long cameraId, String phoneId, String sceneKey,
|
|
- Long cameraType, String dataSource, String pic, Long userId, String userName,
|
|
|
|
|
|
+ Long cameraType, int camType, String dataSource, String pic, Long userId, String userName,
|
|
String algorithm, Integer sceneShootCount, String sceneName,
|
|
String algorithm, Integer sceneShootCount, String sceneName,
|
|
String sceneDec, Integer sceneType, String gps,Integer type,
|
|
String sceneDec, Integer sceneType, String gps,Integer type,
|
|
Integer resolution, String firmwareVersion, String url, String buildType,
|
|
Integer resolution, String firmwareVersion, String url, String buildType,
|
|
@@ -778,25 +780,28 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
scenePlus.setCameraId(cameraId);
|
|
scenePlus.setCameraId(cameraId);
|
|
scenePlus.setPhoneId(phoneId);
|
|
scenePlus.setPhoneId(phoneId);
|
|
scenePlus.setNum(projectNum);
|
|
scenePlus.setNum(projectNum);
|
|
- scenePlus.setSceneSource(1);
|
|
|
|
|
|
+ scenePlus.setSceneSource(SceneSource.BM.code());
|
|
scenePlusExt.setDataSource(dataSource);
|
|
scenePlusExt.setDataSource(dataSource);
|
|
|
|
|
|
if(resolution == null || resolution.intValue() == 0){
|
|
if(resolution == null || resolution.intValue() == 0){
|
|
scenePlusExt.setSceneScheme(cameraType.intValue());
|
|
scenePlusExt.setSceneScheme(cameraType.intValue());
|
|
}else {
|
|
}else {
|
|
- scenePlusExt.setSceneScheme(4);
|
|
|
|
|
|
+ scenePlusExt.setSceneScheme(SceneScheme.BM.code());
|
|
}
|
|
}
|
|
|
|
|
|
//转台相机用4k图
|
|
//转台相机用4k图
|
|
- if(cameraType.longValue() == 13 ){
|
|
|
|
- scenePlus.setSceneSource(3);
|
|
|
|
- scenePlusExt.setSceneScheme(10);
|
|
|
|
|
|
+ if(cameraType.longValue() == 13){
|
|
|
|
+ scenePlus.setSceneSource(SceneSource.ZT.code());
|
|
|
|
+ scenePlusExt.setSceneScheme(SceneScheme.FOUR_K.code());
|
|
}
|
|
}
|
|
|
|
|
|
//激光相机
|
|
//激光相机
|
|
- if(cameraType.longValue() == 14 ){
|
|
|
|
- scenePlus.setSceneSource(4);
|
|
|
|
- scenePlusExt.setSceneScheme(10);
|
|
|
|
|
|
+ if(cameraType.longValue() == 14){
|
|
|
|
+ scenePlus.setSceneSource(SceneSource.JG.code());
|
|
|
|
+ scenePlusExt.setSceneScheme(SceneScheme.FOUR_K.code());
|
|
|
|
+ if(camType == CameraTypeEnum.LASER_SG.getType()){
|
|
|
|
+ scenePlus.setSceneSource(SceneSource.SG.code());
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
if(ModelKind.THREE_D_TILE.code().equals(modelKind)
|
|
if(ModelKind.THREE_D_TILE.code().equals(modelKind)
|