|
@@ -394,7 +394,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
fYunFileService.uploadFile(localDataPath + "status.json", dataViewPath + "status.json");
|
|
fYunFileService.uploadFile(localDataPath + "status.json", dataViewPath + "status.json");
|
|
}
|
|
}
|
|
|
|
|
|
- BuildSceneCallMessage mqMessage = getBuildSceneMqMessage(sceneNum, cameraType, algorithm, jsonObject.getInteger("resolution"), buildType,
|
|
|
|
|
|
+ BuildSceneCallMessage mqMessage = getBuildSceneMqMessage(sceneNum, cameraType, algorithm, jsonObject, buildType,
|
|
scenePlusVO.getDataSource());
|
|
scenePlusVO.getDataSource());
|
|
|
|
|
|
if (cameraDetail.getCompanyId() != null) {
|
|
if (cameraDetail.getCompanyId() != null) {
|
|
@@ -482,7 +482,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
FileUtils.writeFile(localDataPath + "status.json", statusJson.toString());
|
|
FileUtils.writeFile(localDataPath + "status.json", statusJson.toString());
|
|
fYunFileService.uploadFile(localDataPath + "status.json", dataViewPath + "status.json");
|
|
fYunFileService.uploadFile(localDataPath + "status.json", dataViewPath + "status.json");
|
|
}
|
|
}
|
|
- BuildSceneCallMessage mqMessage = getBuildSceneMqMessage(sceneNum, cameraType, algorithm, jsonObject.getInteger("resolution"), buildType,
|
|
|
|
|
|
+ BuildSceneCallMessage mqMessage = getBuildSceneMqMessage(sceneNum, cameraType, algorithm, jsonObject, buildType,
|
|
scenePlusVO.getDataSource());
|
|
scenePlusVO.getDataSource());
|
|
if (cameraDetail.getCompanyId() != null) {
|
|
if (cameraDetail.getCompanyId() != null) {
|
|
Company company = companyService.getById(cameraDetail.getCompanyId());
|
|
Company company = companyService.getById(cameraDetail.getCompanyId());
|
|
@@ -1081,17 +1081,19 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
}
|
|
}
|
|
|
|
|
|
public BuildSceneCallMessage getBuildSceneMqMessage(String projectNum,
|
|
public BuildSceneCallMessage getBuildSceneMqMessage(String projectNum,
|
|
- Long cameraType, String algorithm, Integer resolution,
|
|
|
|
|
|
+ Long cameraType, String algorithm, JSONObject fdageJson,
|
|
String buildType, String dataSource) {
|
|
String buildType, String dataSource) {
|
|
BuildSceneCallMessage mqMsg = new BuildSceneCallMessage();
|
|
BuildSceneCallMessage mqMsg = new BuildSceneCallMessage();
|
|
mqMsg.setSceneNum(projectNum);
|
|
mqMsg.setSceneNum(projectNum);
|
|
mqMsg.setCameraType(String.valueOf(cameraType));
|
|
mqMsg.setCameraType(String.valueOf(cameraType));
|
|
mqMsg.setAlgorithm(algorithm);
|
|
mqMsg.setAlgorithm(algorithm);
|
|
- mqMsg.setResolution(String.valueOf(resolution));
|
|
|
|
|
|
+ mqMsg.setResolution(String.valueOf(fdageJson.getInteger("resolution")));
|
|
mqMsg.setBuildType(buildType);
|
|
mqMsg.setBuildType(buildType);
|
|
mqMsg.setPath(dataSource);
|
|
mqMsg.setPath(dataSource);
|
|
mqMsg.setCreateTime(DateUtil.format(Calendar.getInstance().getTime(), DateExtUtil.dateStyle));
|
|
mqMsg.setCreateTime(DateUtil.format(Calendar.getInstance().getTime(), DateExtUtil.dateStyle));
|
|
- mqMsg.setExt(new HashMap<>());
|
|
|
|
|
|
+ Map<String, Object> ext = new HashMap<>();
|
|
|
|
+ ext.put("location", fdageJson.getInteger("location"));
|
|
|
|
+ mqMsg.setExt(ext);
|
|
return mqMsg;
|
|
return mqMsg;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1174,11 +1176,11 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
message = this.getBuildSceneMqMessage(
|
|
message = this.getBuildSceneMqMessage(
|
|
num, cameraType,
|
|
num, cameraType,
|
|
fdageData.getString("location") != null && "1".equals(fdageData.getString("location")) ? "sfm" : "slam",
|
|
fdageData.getString("location") != null && "1".equals(fdageData.getString("location")) ? "sfm" : "slam",
|
|
- fdageData.getInteger("resolution"), buildType, path);
|
|
|
|
|
|
+ fdageData, buildType, path);
|
|
}else{
|
|
}else{
|
|
message = this.getBuildSceneMqMessage(
|
|
message = this.getBuildSceneMqMessage(
|
|
num, cameraType, fdageData.getString("location") != null && "1".equals(fdageData.getString("location")) ? "sfm" : "slam",
|
|
num, cameraType, fdageData.getString("location") != null && "1".equals(fdageData.getString("location")) ? "sfm" : "slam",
|
|
- fdageData.getInteger("resolution"), buildType,
|
|
|
|
|
|
+ fdageData, buildType,
|
|
path);
|
|
path);
|
|
}
|
|
}
|
|
if(deleteExtras){
|
|
if(deleteExtras){
|
|
@@ -1286,7 +1288,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
|
|
|
BuildSceneCallMessage buildSceneMqMessage = this.getBuildSceneMqMessage(
|
|
BuildSceneCallMessage buildSceneMqMessage = this.getBuildSceneMqMessage(
|
|
num, cameraType, fdageData.getString("location") != null && "1".equals(fdageData.getString("location")) ? "sfm" : "slam",
|
|
num, cameraType, fdageData.getString("location") != null && "1".equals(fdageData.getString("location")) ? "sfm" : "slam",
|
|
- fdageData.getInteger("resolution"), buildType, path);
|
|
|
|
|
|
+ fdageData, buildType, path);
|
|
rabbitMqProducer.sendByWorkQueue(queueV3ModelingPre, buildSceneMqMessage);
|
|
rabbitMqProducer.sendByWorkQueue(queueV3ModelingPre, buildSceneMqMessage);
|
|
|
|
|
|
//重算的场景,先移除该场景对应的容量
|
|
//重算的场景,先移除该场景对应的容量
|
|
@@ -1432,7 +1434,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
|
|
|
BuildSceneCallMessage buildSceneMqMessage = this.getBuildSceneMqMessage(
|
|
BuildSceneCallMessage buildSceneMqMessage = this.getBuildSceneMqMessage(
|
|
sceneNum, cameraType, jsonObject.getString("location") != null && "1".equals(jsonObject.getString("location")) ? "sfm" : "slam",
|
|
sceneNum, cameraType, jsonObject.getString("location") != null && "1".equals(jsonObject.getString("location")) ? "sfm" : "slam",
|
|
- jsonObject.getInteger("resolution"), buildType, dataSource);
|
|
|
|
|
|
+ jsonObject, buildType, dataSource);
|
|
rabbitMqProducer.sendByWorkQueue(queueV3ModelingPre, buildSceneMqMessage);
|
|
rabbitMqProducer.sendByWorkQueue(queueV3ModelingPre, buildSceneMqMessage);
|
|
|
|
|
|
}
|
|
}
|