|
|
@@ -4,10 +4,17 @@ package com.ruoyi.wisdomarbitrate.service.impl;
|
|
4
|
4
|
import cn.hutool.core.collection.CollectionUtil;
|
|
5
|
5
|
import cn.hutool.core.util.StrUtil;
|
|
6
|
6
|
|
|
|
7
|
+import com.google.gson.Gson;
|
|
|
8
|
+import com.google.gson.JsonArray;
|
|
|
9
|
+import com.google.gson.JsonObject;
|
|
7
|
10
|
import com.ruoyi.common.annotation.DataScope;
|
|
8
|
11
|
import com.ruoyi.common.constant.CaseApplicationConstants;
|
|
|
12
|
+import com.ruoyi.common.core.domain.entity.EsignHttpResponse;
|
|
9
|
13
|
import com.ruoyi.common.core.domain.entity.SysDept;
|
|
|
14
|
+import com.ruoyi.common.exception.EsignDemoException;
|
|
10
|
15
|
import com.ruoyi.common.exception.ServiceException;
|
|
|
16
|
+import com.ruoyi.common.utils.SignAward;
|
|
|
17
|
+import com.ruoyi.common.utils.bean.SealSignRecord;
|
|
11
|
18
|
import com.ruoyi.wisdomarbitrate.utils.CaseLogUtils;
|
|
12
|
19
|
import com.ruoyi.common.utils.DateUtils;
|
|
13
|
20
|
import com.ruoyi.common.utils.SmsUtils;
|
|
|
@@ -984,4 +991,66 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
984
|
991
|
caseApplicationNew.setFeePayable(caseApplicationinsertDiffer.getFeePayable());
|
|
985
|
992
|
}
|
|
986
|
993
|
|
|
|
994
|
+ @Transactional
|
|
|
995
|
+ public void fixExecuteSelectFlowDetailUtils() throws EsignDemoException {
|
|
|
996
|
+
|
|
|
997
|
+ Gson gson = new Gson();
|
|
|
998
|
+
|
|
|
999
|
+
|
|
|
1000
|
+
|
|
|
1001
|
+ SealSignRecord sealSignRecord = new SealSignRecord();
|
|
|
1002
|
+ sealSignRecord.setSignFlowid("41e6732b48c54c63a91b2379c352212d");
|
|
|
1003
|
+ EsignHttpResponse signFlowDetail = SignAward.signFlowDetail(sealSignRecord);
|
|
|
1004
|
+ JsonObject signFlowDetailJsonObject = gson.fromJson(signFlowDetail.getBody(),JsonObject.class);
|
|
|
1005
|
+ JsonObject flowDetailData = signFlowDetailJsonObject.getAsJsonObject("data");
|
|
|
1006
|
+ JsonArray signersArray = flowDetailData.get("signers").getAsJsonArray();
|
|
|
1007
|
+ for (int i = 0; i < signersArray.size(); i++) {
|
|
|
1008
|
+ JsonObject signerObject = (JsonObject)signersArray.get(i);
|
|
|
1009
|
+ Integer psnsignStatus ;
|
|
|
1010
|
+ Integer orgsignStatus ;
|
|
|
1011
|
+ if(!(signerObject.get("psnSigner").toString()).equals("null")){
|
|
|
1012
|
+ JsonObject psnSignerData = signerObject.getAsJsonObject("psnSigner");
|
|
|
1013
|
+ if(psnSignerData!=null){
|
|
|
1014
|
+ psnsignStatus = signerObject.get("signStatus").getAsInt();
|
|
|
1015
|
+ sealSignRecord.setPsnsignStatus(psnsignStatus);
|
|
|
1016
|
+
|
|
|
1017
|
+ if(psnsignStatus.intValue()==2){
|
|
|
1018
|
+ //更新立案申请状态为待用印
|
|
|
1019
|
+ CaseApplication caseApplication = new CaseApplication();
|
|
|
1020
|
+ caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATED_SEAL);
|
|
|
1021
|
+ caseApplicationMapper.submitCaseApplication(caseApplication);
|
|
|
1022
|
+
|
|
|
1023
|
+ //修改"签署用印记录表"的状态为待用印
|
|
|
1024
|
+
|
|
|
1025
|
+ }
|
|
|
1026
|
+ }
|
|
|
1027
|
+ }
|
|
|
1028
|
+ if(!(signerObject.get("orgSigner").toString()).equals("null")){
|
|
|
1029
|
+ JsonObject orgSignerData = signerObject.getAsJsonObject("orgSigner");
|
|
|
1030
|
+ if(orgSignerData!=null){
|
|
|
1031
|
+ orgsignStatus = signerObject.get("signStatus").getAsInt();
|
|
|
1032
|
+ sealSignRecord.setOrgsignStatus(orgsignStatus);
|
|
|
1033
|
+ //更新立案申请状态为待送达
|
|
|
1034
|
+ CaseApplication caseApplication = new CaseApplication();
|
|
|
1035
|
+ caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATION_DELIVERY);
|
|
|
1036
|
+ caseApplicationMapper.submitCaseApplication(caseApplication);
|
|
|
1037
|
+
|
|
|
1038
|
+ //修改"签署用印记录表"的状态为签署完成
|
|
|
1039
|
+
|
|
|
1040
|
+ //下载审核完成的裁决书,
|
|
|
1041
|
+// SaaSAPIFileUtils.fileDownloadUrl();
|
|
|
1042
|
+
|
|
|
1043
|
+ }
|
|
|
1044
|
+
|
|
|
1045
|
+ }
|
|
|
1046
|
+
|
|
|
1047
|
+ }
|
|
|
1048
|
+
|
|
|
1049
|
+ }
|
|
|
1050
|
+
|
|
|
1051
|
+
|
|
|
1052
|
+
|
|
|
1053
|
+
|
|
|
1054
|
+
|
|
|
1055
|
+
|
|
987
|
1056
|
}
|