dengsixing 8 hónapja
szülő
commit
5ed68dafd2

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

@@ -96,6 +96,12 @@ public class BuildReverseE57SceneServiceImpl implements IBuildSceneService {
             String destPath = dataSource + "/capture/" + FileUtil.getName(zipPath);
             fyunUtil.yunDownloadSs(fyunType, bucket, zipPath, destPath);
             ZipUtil.unzip(destPath, dataSource + "/capture/", CharsetUtil.CHARSET_GBK);
+            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);