|
|
@@ -77,14 +77,17 @@ public class FixSelectFlowDetailUtils {
|
|
77
|
77
|
caseApplication.setId(sealSignRecord.getCaseAppliId());
|
|
78
|
78
|
|
|
79
|
79
|
CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
|
|
80
|
|
- if((caseApplicationselect.getCaseStatus()!=null)&&(caseApplicationselect.getCaseStatus().intValue()==CaseApplicationConstants.SIGN_ARBITRATION)){
|
|
81
|
|
- caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATED_SEAL);
|
|
82
|
|
- caseApplicationMapper.submitCaseApplication(caseApplication);
|
|
|
80
|
+ if(caseApplicationselect!=null){
|
|
|
81
|
+ if((caseApplicationselect.getCaseStatus()!=null)&&(caseApplicationselect.getCaseStatus().intValue()==CaseApplicationConstants.SIGN_ARBITRATION)){
|
|
|
82
|
+ caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATED_SEAL);
|
|
|
83
|
+ caseApplicationMapper.submitCaseApplication(caseApplication);
|
|
83
|
84
|
|
|
84
|
|
- //修改"签署用印记录表"的状态为待用印
|
|
85
|
|
- sealSignRecord.setSignFlowStatus(2);
|
|
86
|
|
- sealSignRecordMapper.updataSealSignRecord(sealSignRecord);
|
|
|
85
|
+ //修改"签署用印记录表"的状态为待用印
|
|
|
86
|
+ sealSignRecord.setSignFlowStatus(2);
|
|
|
87
|
+ sealSignRecordMapper.updataSealSignRecord(sealSignRecord);
|
|
|
88
|
+ }
|
|
87
|
89
|
}
|
|
|
90
|
+
|
|
88
|
91
|
}
|
|
89
|
92
|
if((psnsignStatus.intValue()==2)&&(orgsignStatus.intValue()==2)){
|
|
90
|
93
|
//更新立案申请状态为待送达
|
|
|
@@ -92,25 +95,27 @@ public class FixSelectFlowDetailUtils {
|
|
92
|
95
|
caseApplication.setId(sealSignRecord.getCaseAppliId());
|
|
93
|
96
|
|
|
94
|
97
|
CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
|
|
95
|
|
- if((caseApplicationselect.getCaseStatus()!=null)&&(caseApplicationselect.getCaseStatus().intValue()==CaseApplicationConstants.ARBITRATED_SEAL)){
|
|
96
|
|
- caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATION_DELIVERY);
|
|
97
|
|
- //下载审核完成的裁决书,
|
|
98
|
|
- String signFlowId = sealSignRecord.getSignFlowid();
|
|
99
|
|
- EsignHttpResponse fileDownload = SaaSAPIFileUtils.fileDownloadUrl(signFlowId);
|
|
100
|
|
- JsonObject fileDownloadJsonObject = gson.fromJson(fileDownload.getBody(),JsonObject.class);
|
|
101
|
|
- JsonObject fileDownloadData = fileDownloadJsonObject.getAsJsonObject("data");
|
|
102
|
|
- JsonArray filesArray = fileDownloadData.get("files").getAsJsonArray();
|
|
103
|
|
- if(filesArray!=null&&filesArray.size()>0){
|
|
104
|
|
- JsonObject fileObject = (JsonObject)filesArray.get(0);
|
|
105
|
|
- String fileDownloadUrl = fileObject.get("downloadUrl").toString();
|
|
106
|
|
- //修改"签署用印记录表"的状态为签署完成
|
|
107
|
|
- sealSignRecord.setSignFlowStatus(3);
|
|
108
|
|
- sealSignRecord.setFileDownloadUrl(fileDownloadUrl.substring(1,fileDownloadUrl.length()-1));
|
|
109
|
|
- sealSignRecordMapper.updataSealSignRecord(sealSignRecord);
|
|
110
|
|
- String filearbitraUrl = fileDownloadUrl.substring(1,fileDownloadUrl.length()-1);
|
|
111
|
|
- caseApplication.setFilearbitraUrl(filearbitraUrl);
|
|
112
|
|
- caseApplicationMapper.submitCaseApplication(caseApplication);
|
|
113
|
|
-
|
|
|
98
|
+ if(caseApplicationselect!=null){
|
|
|
99
|
+ if((caseApplicationselect.getCaseStatus()!=null)&&(caseApplicationselect.getCaseStatus().intValue()==CaseApplicationConstants.ARBITRATED_SEAL)){
|
|
|
100
|
+ caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATION_DELIVERY);
|
|
|
101
|
+ //下载审核完成的裁决书,
|
|
|
102
|
+ String signFlowId = sealSignRecord.getSignFlowid();
|
|
|
103
|
+ EsignHttpResponse fileDownload = SaaSAPIFileUtils.fileDownloadUrl(signFlowId);
|
|
|
104
|
+ JsonObject fileDownloadJsonObject = gson.fromJson(fileDownload.getBody(),JsonObject.class);
|
|
|
105
|
+ JsonObject fileDownloadData = fileDownloadJsonObject.getAsJsonObject("data");
|
|
|
106
|
+ JsonArray filesArray = fileDownloadData.get("files").getAsJsonArray();
|
|
|
107
|
+ if(filesArray!=null&&filesArray.size()>0){
|
|
|
108
|
+ JsonObject fileObject = (JsonObject)filesArray.get(0);
|
|
|
109
|
+ String fileDownloadUrl = fileObject.get("downloadUrl").toString();
|
|
|
110
|
+ //修改"签署用印记录表"的状态为签署完成
|
|
|
111
|
+ sealSignRecord.setSignFlowStatus(3);
|
|
|
112
|
+ sealSignRecord.setFileDownloadUrl(fileDownloadUrl.substring(1,fileDownloadUrl.length()-1));
|
|
|
113
|
+ sealSignRecordMapper.updataSealSignRecord(sealSignRecord);
|
|
|
114
|
+ String filearbitraUrl = fileDownloadUrl.substring(1,fileDownloadUrl.length()-1);
|
|
|
115
|
+ caseApplication.setFilearbitraUrl(filearbitraUrl);
|
|
|
116
|
+ caseApplicationMapper.submitCaseApplication(caseApplication);
|
|
|
117
|
+
|
|
|
118
|
+ }
|
|
114
|
119
|
}
|
|
115
|
120
|
}
|
|
116
|
121
|
|