修改裁决书下载功能
This commit is contained in:
+17
-3
@@ -37,14 +37,16 @@ public class FixSelectFlowDetailUtils {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private DeptIdentifyMapper deptIdentifyMapper;
|
private DeptIdentifyMapper deptIdentifyMapper;
|
||||||
|
|
||||||
@Scheduled(cron = "0/3 * * * * ?")
|
@Scheduled(cron = "0/10 * * * * ?")
|
||||||
@Transactional
|
@Transactional
|
||||||
public void fixExecuteSelectFlowDetailUtils() throws EsignDemoException {
|
public void fixExecuteSelectFlowDetailUtils(){
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
|
|
||||||
SealSignRecord sealSignRecordselect = new SealSignRecord();
|
SealSignRecord sealSignRecordselect = new SealSignRecord();
|
||||||
// sealSignRecordselect.setSignFlowStatus(1);
|
// sealSignRecordselect.setSignFlowStatus(1);
|
||||||
List<SealSignRecord> sealSignRecords = sealSignRecordMapper.selectSealSignRecordbyStat(sealSignRecordselect);
|
List<SealSignRecord> sealSignRecords = sealSignRecordMapper.selectSealSignRecordbyStat(sealSignRecordselect);
|
||||||
|
|
||||||
|
try {
|
||||||
if(sealSignRecords!=null&&sealSignRecords.size()>0){
|
if(sealSignRecords!=null&&sealSignRecords.size()>0){
|
||||||
for (int i = 0; i < sealSignRecords.size(); i++) {
|
for (int i = 0; i < sealSignRecords.size(); i++) {
|
||||||
SealSignRecord sealSignRecord = sealSignRecords.get(i);
|
SealSignRecord sealSignRecord = sealSignRecords.get(i);
|
||||||
@@ -127,6 +129,7 @@ public class FixSelectFlowDetailUtils {
|
|||||||
String resultFilePath = saveFolderPath + "/" + fileName;
|
String resultFilePath = saveFolderPath + "/" + fileName;
|
||||||
String fileDownloadUrlnew = fileDownloadUrl.substring(1,fileDownloadUrl.length()-1);
|
String fileDownloadUrlnew = fileDownloadUrl.substring(1,fileDownloadUrl.length()-1);
|
||||||
FileTransformation.downLoadFileByUrl(fileDownloadUrlnew,resultFilePath);
|
FileTransformation.downLoadFileByUrl(fileDownloadUrlnew,resultFilePath);
|
||||||
|
Thread.sleep(3000);
|
||||||
|
|
||||||
Long caseAppliId = sealSignRecord.getCaseAppliId();
|
Long caseAppliId = sealSignRecord.getCaseAppliId();
|
||||||
CaseAttach caseAttach = new CaseAttach();
|
CaseAttach caseAttach = new CaseAttach();
|
||||||
@@ -147,10 +150,21 @@ public class FixSelectFlowDetailUtils {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
} catch (EsignDemoException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Scheduled(cron = "0/10 * * * * ?")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Scheduled(cron = "0/30 * * * * ?")
|
||||||
@Transactional
|
@Transactional
|
||||||
public void fixExecuteSelectDeptIndentifyUtils() throws EsignDemoException {
|
public void fixExecuteSelectDeptIndentifyUtils() throws EsignDemoException {
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
|
|||||||
Reference in New Issue
Block a user