定时任务
This commit is contained in:
+3
-10
@@ -128,9 +128,8 @@ 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);
|
||||
|
||||
boolean b = FileTransformation.downLoadFileByUrl(fileDownloadUrlnew, resultFilePath);
|
||||
if(b) {
|
||||
Long caseAppliId = sealSignRecord.getCaseAppliId();
|
||||
CaseAttach caseAttach = new CaseAttach();
|
||||
caseAttach.setCaseAppliId(caseAppliId);
|
||||
@@ -138,6 +137,7 @@ public class FixSelectFlowDetailUtils {
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user