|
@@ -9,6 +9,7 @@ import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.fdkankan.common.constant.*;
|
|
|
+import com.fdkankan.common.util.CmdUtils;
|
|
|
import com.fdkankan.common.util.FileUtils;
|
|
|
import com.fdkankan.contro.constant.UserEditDataType;
|
|
|
import com.fdkankan.contro.entity.*;
|
|
@@ -95,7 +96,9 @@ 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);
|
|
|
+// ZipUtil.unzip(destPath, dataSource + "/capture/", CharsetUtil.CHARSET_GBK);
|
|
|
+ String unzipCmd = "unzip destPath";
|
|
|
+ CmdUtils.callLine(unzipCmd);
|
|
|
List<File> files = FileUtil.loopFiles(dataSource + "/capture/");
|
|
|
files.stream().forEach(file->{
|
|
|
if(file.getAbsolutePath().endsWith(".e57")){
|