|
@@ -177,23 +177,21 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
|
public void cloudPointBuild(String sceneCode, String path) {
|
|
|
log.info("开始同步点云编辑文件");
|
|
|
// 删除旧的文件及目录
|
|
|
-// try {
|
|
|
-// fYunFileService.deleteFile(cloudPointFyunPath + "vision_edit.txt");
|
|
|
-// fYunFileService.deleteFolder(cloudPointFyunPath + "uuidcloud");
|
|
|
-// } catch (IOException e) {
|
|
|
-// log.error("删除文件失败", e);
|
|
|
-// e.printStackTrace();
|
|
|
-// }
|
|
|
-//
|
|
|
-// // 上传点云编辑文件,并通知激光系统
|
|
|
-// fYunFileService.uploadFile(bucket,path + "/results/laserData/vision_edit.txt", String.format(cloudPointFyunPath,sceneCode,sceneCode) + "vision_edit.txt");
|
|
|
-// fYunFileService.uploadFileByCommand(bucket,path + "/results/laserData/uuidcloud", String.format(cloudPointFyunPath,sceneCode,sceneCode) + "uuidcloud");
|
|
|
+ try {
|
|
|
+ fYunFileService.deleteFile(cloudPointFyunPath + "vision_edit.txt");
|
|
|
+ fYunFileService.deleteFolder(cloudPointFyunPath + "uuidcloud");
|
|
|
+ } catch (IOException e) {
|
|
|
+ log.error("删除文件失败", e);
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+
|
|
|
+ // 上传点云编辑文件,并通知激光系统
|
|
|
+ fYunFileService.uploadFile(bucket,path + "/results/laserData/vision_edit.txt", String.format(cloudPointFyunPath,sceneCode,sceneCode) + "vision_edit.txt");
|
|
|
+ fYunFileService.uploadFileByCommand(bucket,path + "/results/laserData/uuidcloud", String.format(cloudPointFyunPath,sceneCode,sceneCode) + "uuidcloud");
|
|
|
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
params.put("sceneNum", sceneCode);
|
|
|
params.put("businessType", 0);
|
|
|
- params.put("visionEditPath", path + "/results/laserData/vision_edit.txt");
|
|
|
- params.put("uuidcloudPath", path + "/results/laserData/uuidcloud");
|
|
|
rabbitMqProducer.sendByWorkQueue(cloudPointBuild, params);
|
|
|
}
|
|
|
}
|