|
@@ -6,12 +6,8 @@ import com.fdkankan.common.constant.CommonStatus;
|
|
import com.fdkankan.common.constant.CommonSuccessStatus;
|
|
import com.fdkankan.common.constant.CommonSuccessStatus;
|
|
import com.fdkankan.common.constant.SceneStatus;
|
|
import com.fdkankan.common.constant.SceneStatus;
|
|
import com.fdkankan.contro.constant.RedisConstants;
|
|
import com.fdkankan.contro.constant.RedisConstants;
|
|
-import com.fdkankan.contro.entity.OrigFileUpload;
|
|
|
|
-import com.fdkankan.contro.entity.OrigFileUploadBatch;
|
|
|
|
-import com.fdkankan.contro.entity.ScenePlus;
|
|
|
|
-import com.fdkankan.contro.service.IOrigFileUploadBatchService;
|
|
|
|
-import com.fdkankan.contro.service.IOrigFileUploadService;
|
|
|
|
-import com.fdkankan.contro.service.IScenePlusService;
|
|
|
|
|
|
+import com.fdkankan.contro.entity.*;
|
|
|
|
+import com.fdkankan.contro.service.*;
|
|
import com.fdkankan.contro.util.HttpUtilExt;
|
|
import com.fdkankan.contro.util.HttpUtilExt;
|
|
import com.fdkankan.model.constants.ConstantFilePath;
|
|
import com.fdkankan.model.constants.ConstantFilePath;
|
|
import com.fdkankan.rabbitmq.util.RabbitMqProducer;
|
|
import com.fdkankan.rabbitmq.util.RabbitMqProducer;
|
|
@@ -42,6 +38,16 @@ public class UploadShootingListener {
|
|
private IScenePlusService scenePlusService;
|
|
private IScenePlusService scenePlusService;
|
|
@Resource
|
|
@Resource
|
|
private RedisUtil redisUtil;
|
|
private RedisUtil redisUtil;
|
|
|
|
+ @Autowired
|
|
|
|
+ private ICommonService commonService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private ISceneEditInfoService sceneEditInfoService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private ISceneEditInfoExtService sceneEditInfoExtService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private IScenePlusExtService scenePlusExtService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private ISceneEditControlsService sceneEditControlsService;
|
|
|
|
|
|
|
|
|
|
@RabbitListener(
|
|
@RabbitListener(
|
|
@@ -55,6 +61,22 @@ public class UploadShootingListener {
|
|
Integer index = params.getInteger("index");
|
|
Integer index = params.getInteger("index");
|
|
String uuid = params.getString("uuid");
|
|
String uuid = params.getString("uuid");
|
|
try {
|
|
try {
|
|
|
|
+
|
|
|
|
+ //查出所有uuid相关的上传中的点位批次号
|
|
|
|
+
|
|
|
|
+ //遍历检查点位相关文件是否齐全,如果齐全改为进入计算
|
|
|
|
+
|
|
|
|
+ //下载文件
|
|
|
|
+
|
|
|
|
+ //调用算法
|
|
|
|
+
|
|
|
|
+ //上传文件
|
|
|
|
+
|
|
|
|
+ //写表
|
|
|
|
+
|
|
|
|
+ //处理删除点位
|
|
|
|
+
|
|
|
|
+
|
|
List<OrigFileUpload> fileUploadList = origFileUploadService.getByBatchId(batchId);
|
|
List<OrigFileUpload> fileUploadList = origFileUploadService.getByBatchId(batchId);
|
|
String path = ConstantFilePath.BUILD_MODEL_PATH + "upload_while_shooting/" + uuid + "/" + index + "/";
|
|
String path = ConstantFilePath.BUILD_MODEL_PATH + "upload_while_shooting/" + uuid + "/" + index + "/";
|
|
for (OrigFileUpload origFileUpload : fileUploadList) {
|
|
for (OrigFileUpload origFileUpload : fileUploadList) {
|
|
@@ -91,8 +113,14 @@ public class UploadShootingListener {
|
|
}
|
|
}
|
|
if(status == CommonSuccessStatus.SUCCESS.code()){
|
|
if(status == CommonSuccessStatus.SUCCESS.code()){
|
|
status = SceneStatus.PREVIEW.code();
|
|
status = SceneStatus.PREVIEW.code();
|
|
|
|
+ ScenePlusExt scenePlusExt = scenePlusExtService.getScenePlusExtByPlusId(scenePlus.getId());
|
|
|
|
+ SceneEditInfo sceneEditInfo = sceneEditInfoService.getByScenePlusId(scenePlus.getId());
|
|
|
|
+ SceneEditInfoExt sceneEditInfoExt = sceneEditInfoExtService.getByEditInfoId(sceneEditInfo.getId());
|
|
|
|
+ SceneEditControls sceneEditControls = sceneEditControlsService.getBySceneEditId(sceneEditInfo.getId());
|
|
|
|
+ commonService.writeSceneJson(num,new JSONObject(), sceneEditInfo,
|
|
|
|
+ sceneEditInfoExt,sceneEditControls, scenePlus,scenePlusExt, null);
|
|
}else{
|
|
}else{
|
|
- log.info("点云系统处理失败,num:{}", num);
|
|
|
|
|
|
+ status = SceneStatus.FAILD.code();
|
|
}
|
|
}
|
|
scenePlus.setSceneStatus(status);
|
|
scenePlus.setSceneStatus(status);
|
|
scenePlusService.updateById(scenePlus);
|
|
scenePlusService.updateById(scenePlus);
|