|
@@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.fdkankan.common.constant.CommonSuccessStatus;
|
|
|
import com.fdkankan.common.constant.RecStatus;
|
|
|
import com.fdkankan.common.constant.SceneStatus;
|
|
|
+import com.fdkankan.common.util.CmdUtils;
|
|
|
import com.fdkankan.common.util.SnowflakeIdGenerator;
|
|
|
import com.fdkankan.contro.entity.SceneFileBuild;
|
|
|
import com.fdkankan.contro.entity.SceneOrigBd;
|
|
@@ -76,7 +77,10 @@ public class MjServiceImpl implements MjService {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
- httpClient.downloadFile(fileUrl, zipDir, zipName);
|
|
|
+ FileUtil.mkdir(zipDir);
|
|
|
+ String downloadCmd = "wget -O " + zipDir + zipName + " " + fileUrl;
|
|
|
+ CmdUtils.callLineSh(downloadCmd);
|
|
|
+// httpClient.downloadFile(fileUrl, zipDir, zipName);
|
|
|
// String unzipCmd = "unzip -O GBK " + zipDir + zipName + " -d " + zipDir;
|
|
|
|
|
|
// CmdUtils.callLine(unzipCmd);
|
|
@@ -126,7 +130,9 @@ public class MjServiceImpl implements MjService {
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
- ZipUtil.unzip(new File("D:\\Downloads\\916ed6689_202501101516307030\\916ed6689_202501101516307030.zip"), new File("D:\\Downloads\\aaa\\bbb"));
|
|
|
+// ZipUtil.unzip(new File("D:\\Downloads\\916ed6689_202501101516307030\\916ed6689_202501101516307030.zip"), new File("D:\\Downloads\\aaa\\bbb"));
|
|
|
+ String substring = "/mnt/data/bd/0ef1b470-4f3a-49b4-bd66-7e0584cce660/".substring(0, "/mnt/data/bd/0ef1b470-4f3a-49b4-bd66-7e0584cce660/".lastIndexOf("/"));
|
|
|
+ System.out.println(substring);
|
|
|
}
|
|
|
|
|
|
}
|