|
|
@@ -128,16 +128,16 @@ public class FixSelectFlowDetailUtils {
|
|
128
|
128
|
String savePath = "/home/ruoyi/uploadPath/upload";
|
|
129
|
129
|
String resultFilePath = saveFolderPath + "/" + fileName;
|
|
130
|
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,15 +152,8 @@ public class FixSelectFlowDetailUtils {
|
|
152
|
152
|
|
|
153
|
153
|
} catch (EsignDemoException e) {
|
|
154
|
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
|
|