Просмотр исходного кода

Merge branch 'hjb' of SH-Arbitrate/Arbitrate-Backend into dev

hejinbo 2 лет назад
Родитель
Сommit
04db4a633b

+ 4
- 4
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Просмотреть файл

@@ -2844,15 +2844,15 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
2844 2844
             return AjaxResult.error("请选择要上传的文件");
2845 2845
         }
2846 2846
         UUID uuid = UUID.randomUUID();
2847
-        //String targetPath = "/home/ruoyi/uploadPath/upload/unzipFile/"+uuid+ "/";
2848
-        String targetPath = "D:/home/unzip/" + uuid + "/";
2847
+        String targetPath = "/home/ruoyi/uploadPath/upload/unzipFile/"+uuid+ "/";
2848
+       // String targetPath = "D:/home/unzip/" + uuid + "/";
2849 2849
         File zipFile = null;
2850 2850
         InputStream ins = null;
2851 2851
         try {
2852 2852
             ins = file.getInputStream();
2853 2853
             //上传的压缩包保存的路径
2854
-            //String savePath = "/home/ruoyi/uploadPath/upload/zipFile/";
2855
-            String savePath = "D:/home/zipFile/";
2854
+            String savePath = "/home/ruoyi/uploadPath/upload/zipFile/";
2855
+          //  String savePath = "D:/home/zipFile/";
2856 2856
             String saveName = uuid + "_" + file.getOriginalFilename();
2857 2857
             zipFile = new File(savePath + saveName);
2858 2858
             inputChangeToFile(ins, zipFile);