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

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

wangqiong123 2 лет назад
Родитель
Сommit
e6edadb07c

+ 10
- 17
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/FixSelectFlowDetailUtils.java Просмотреть файл

128
                                     String savePath = "/home/ruoyi/uploadPath/upload";
128
                                     String savePath = "/home/ruoyi/uploadPath/upload";
129
                                     String resultFilePath = saveFolderPath + "/" + fileName;
129
                                     String resultFilePath = saveFolderPath + "/" + fileName;
130
                                     String fileDownloadUrlnew  = fileDownloadUrl.substring(1,fileDownloadUrl.length()-1);
130
                                     String fileDownloadUrlnew  = fileDownloadUrl.substring(1,fileDownloadUrl.length()-1);
131
-                                    FileTransformation.downLoadFileByUrl(fileDownloadUrlnew,resultFilePath);
132
-                                    Thread.sleep(3000);
133
-
134
-                                    Long caseAppliId = sealSignRecord.getCaseAppliId();
135
-                                    CaseAttach caseAttach = new CaseAttach();
136
-                                    caseAttach.setCaseAppliId(caseAppliId);
137
-                                    caseAttach.setAnnexType(3);
138
-                                    caseAttach.setAnnexPath(savePath);
139
-                                    caseAttach.setAnnexName(saveName);
140
-                                    caseAttachMapper.updateCaseAttachBycaseid(caseAttach);
131
+                                    boolean b = FileTransformation.downLoadFileByUrl(fileDownloadUrlnew, resultFilePath);
132
+                                   if(b) {
133
+                                       Long caseAppliId = sealSignRecord.getCaseAppliId();
134
+                                       CaseAttach caseAttach = new CaseAttach();
135
+                                       caseAttach.setCaseAppliId(caseAppliId);
136
+                                       caseAttach.setAnnexType(3);
137
+                                       caseAttach.setAnnexPath(savePath);
138
+                                       caseAttach.setAnnexName(saveName);
139
+                                       caseAttachMapper.updateCaseAttachBycaseid(caseAttach);
140
+                                   }
141
 
141
 
142
                                 }
142
                                 }
143
                             }
143
                             }
152
 
152
 
153
         } catch (EsignDemoException e) {
153
         } catch (EsignDemoException e) {
154
             e.printStackTrace();
154
             e.printStackTrace();
155
-        } catch (InterruptedException e) {
156
-            e.printStackTrace();
157
         }
155
         }
158
 
156
 
159
-
160
-
161
-
162
-
163
-
164
     }
157
     }
165
 
158
 
166
 
159