dengsixing 7 months ago
parent
commit
8e5f8f054a

+ 6 - 0
src/main/java/com/fdkankan/contro/mq/service/impl/BuildReverseE57SceneServiceImpl.java

@@ -102,6 +102,12 @@ public class BuildReverseE57SceneServiceImpl implements IBuildSceneService {
             //下载资源到本地
             String destPath = dataSource + "/capture/";
             fYunFileService.downloadFileByCommand(destPath, key);
+            List<File> files = FileUtil.loopFiles(dataSource + "/capture/");
+            files.stream().forEach(file->{
+                if(file.getAbsolutePath().endsWith(".e57")){
+                    FileUtil.rename(file, "input.e57", true);
+                }
+            });
 
             //发送mq,就进行计算
 //            message.setPath(path);