|
@@ -13,10 +13,11 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.fdkankan.common.constant.*;
|
|
|
import com.fdkankan.common.util.FileUtils;
|
|
|
-import com.fdkankan.contro.bean.*;
|
|
|
+import com.fdkankan.contro.bean.SceneJsonBean;
|
|
|
import com.fdkankan.contro.entity.*;
|
|
|
import com.fdkankan.contro.mq.service.IBuildScenePostService;
|
|
|
import com.fdkankan.contro.service.*;
|
|
|
+import com.fdkankan.contro.service.impl.FdkkV4Service;
|
|
|
import com.fdkankan.contro.vo.SceneEditControlsVO;
|
|
|
import com.fdkankan.fyun.config.FYunFileConfig;
|
|
|
import com.fdkankan.fyun.constant.FYunTypeEnum;
|
|
@@ -63,9 +64,6 @@ public class BuildScenePostServiceImpl implements IBuildScenePostService {
|
|
|
@Value("${scene.pro.new.url}")
|
|
|
private String sceneProNewUrl;
|
|
|
|
|
|
- @Value("${4dkk.laserService.host}")
|
|
|
- private String laserHost;
|
|
|
-
|
|
|
@Autowired
|
|
|
private ISceneFileBuildService sceneFileBuildService;
|
|
|
@Autowired
|
|
@@ -94,6 +92,9 @@ public class BuildScenePostServiceImpl implements IBuildScenePostService {
|
|
|
@Autowired
|
|
|
private IFdkkLaserService fdkkLaserService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private FdkkV4Service fdkkV4Service;
|
|
|
+
|
|
|
@Override
|
|
|
public void buildScenePost(BuildSceneResultMqMessage message) throws Exception {
|
|
|
Integer cameraType = Integer.parseInt(message.getCameraType());
|
|
@@ -105,8 +106,8 @@ public class BuildScenePostServiceImpl implements IBuildScenePostService {
|
|
|
String path = message.getPath();
|
|
|
|
|
|
Boolean buildSuccess = message.getBuildSuccess();
|
|
|
- Integer videoVersion = getVideoVersion(path + File.separator + "capture" +File.separator+"data.fdage");
|
|
|
-
|
|
|
+ JSONObject fdageData = getFdageData(path + File.separator + "capture" +File.separator+"data.fdage");
|
|
|
+ Integer videoVersion = fdageData.getInteger("videoVersion");
|
|
|
|
|
|
|
|
|
Integer pushChannel = message.getPushChannel();
|
|
@@ -211,6 +212,11 @@ public class BuildScenePostServiceImpl implements IBuildScenePostService {
|
|
|
//计算成功 激光转台相机 同步 请求
|
|
|
fdkkLaserService.syncBuildResult(scenePlus, scenePlusExt);
|
|
|
}
|
|
|
+
|
|
|
+ if (fdageData.containsKey("exportMeshObj") && fdageData.getIntValue("exportMeshObj") == 1) {
|
|
|
+ fdkkV4Service.upgradeToV4(sceneCode);
|
|
|
+ }
|
|
|
+
|
|
|
log.info("场景计算结果处理结束,场景码:{}", message.getSceneCode());
|
|
|
|
|
|
}catch (Exception e){
|
|
@@ -329,7 +335,7 @@ public class BuildScenePostServiceImpl implements IBuildScenePostService {
|
|
|
|
|
|
}
|
|
|
|
|
|
- private Integer getVideoVersion(String dataFdagePath) {
|
|
|
+ private JSONObject getFdageData(String dataFdagePath) {
|
|
|
log.info("dataFdagePath 文件路径 :{}", dataFdagePath);
|
|
|
String data = FileUtils.readFile(dataFdagePath);
|
|
|
//获取data.fdage的内容
|
|
@@ -337,7 +343,7 @@ public class BuildScenePostServiceImpl implements IBuildScenePostService {
|
|
|
if(data!=null){
|
|
|
dataJson = JSONObject.parseObject(data);
|
|
|
}
|
|
|
- return dataJson.getInteger("videoVersion");
|
|
|
+ return dataJson;
|
|
|
}
|
|
|
|
|
|
private void uploadFloorCad(String path, String num, Map<String, String> uploadFiles){
|