|
@@ -1,5 +1,7 @@
|
|
|
package com.fdkankan.contro.mq.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.collection.CollUtil;
|
|
|
+import cn.hutool.core.io.FileUtil;
|
|
|
import cn.hutool.core.util.ZipUtil;
|
|
|
import com.fdkankan.common.constant.CommonSuccessStatus;
|
|
|
import com.fdkankan.contro.entity.ScenePlus;
|
|
@@ -110,6 +112,17 @@ public class BuildE57SceneServiceImpl implements IBuildSceneService {
|
|
|
public void downLoadSource(BuildSceneCallMessage buildSceneMqMessage,String path){
|
|
|
String ossPath = getOssPath(buildSceneMqMessage.getPath());
|
|
|
fYunFileService.downloadFileByCommand(path + "/capture", ossPath);
|
|
|
+
|
|
|
+ //下载点位校准文件
|
|
|
+ //上传点位校准相关文件(小)
|
|
|
+ String localExtraPath = path + "/extras";
|
|
|
+ String ossExtras = String.format(UploadFilePath.scene_result_data_path, buildSceneMqMessage.getSceneNum()) + "extras";
|
|
|
+ List<String> extras = fYunFileService.listRemoteFiles(ossExtras);
|
|
|
+ if(CollUtil.isNotEmpty(extras)){
|
|
|
+ extras.parallelStream().forEach(key->{
|
|
|
+ fYunFileService.downloadFile(key, localExtraPath);
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|