diff --git a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/FixSelectFlowDetailUtils.java b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/FixSelectFlowDetailUtils.java index 4a23b15..0e11b5e 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/FixSelectFlowDetailUtils.java +++ b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/FixSelectFlowDetailUtils.java @@ -128,16 +128,16 @@ public class FixSelectFlowDetailUtils { String savePath = "/home/ruoyi/uploadPath/upload"; String resultFilePath = saveFolderPath + "/" + fileName; String fileDownloadUrlnew = fileDownloadUrl.substring(1,fileDownloadUrl.length()-1); - FileTransformation.downLoadFileByUrl(fileDownloadUrlnew,resultFilePath); - Thread.sleep(3000); - - Long caseAppliId = sealSignRecord.getCaseAppliId(); - CaseAttach caseAttach = new CaseAttach(); - caseAttach.setCaseAppliId(caseAppliId); - caseAttach.setAnnexType(3); - caseAttach.setAnnexPath(savePath); - caseAttach.setAnnexName(saveName); - caseAttachMapper.updateCaseAttachBycaseid(caseAttach); + boolean b = FileTransformation.downLoadFileByUrl(fileDownloadUrlnew, resultFilePath); + if(b) { + Long caseAppliId = sealSignRecord.getCaseAppliId(); + CaseAttach caseAttach = new CaseAttach(); + caseAttach.setCaseAppliId(caseAppliId); + caseAttach.setAnnexType(3); + caseAttach.setAnnexPath(savePath); + caseAttach.setAnnexName(saveName); + caseAttachMapper.updateCaseAttachBycaseid(caseAttach); + } } } @@ -152,15 +152,8 @@ public class FixSelectFlowDetailUtils { } catch (EsignDemoException e) { e.printStackTrace(); - } catch (InterruptedException e) { - e.printStackTrace(); } - - - - - }