定时任务 #190

Merged
wangqiong123 merged 1 commits from wq into dev 2023-11-03 10:27:04 +00:00
Showing only changes of commit 32480b58b3 - Show all commits
@@ -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();
}
}