|
|
@@ -6,10 +6,12 @@ import com.google.gson.JsonObject;
|
|
6
|
6
|
import com.ruoyi.common.core.domain.entity.EsignHttpResponse;
|
|
7
|
7
|
import com.ruoyi.common.enums.EsignRequestType;
|
|
8
|
8
|
import com.ruoyi.common.exception.EsignDemoException;
|
|
|
9
|
+import com.ruoyi.common.utils.DateUtils;
|
|
9
|
10
|
import com.ruoyi.common.utils.EsignApplicaConfig;
|
|
10
|
11
|
import com.ruoyi.common.utils.EsignHttpHelper;
|
|
11
|
12
|
import com.ruoyi.wisdomarbitrate.domain.SealSignRecord;
|
|
12
|
13
|
|
|
|
14
|
+import java.util.Date;
|
|
13
|
15
|
import java.util.Map;
|
|
14
|
16
|
|
|
15
|
17
|
public class SignAward {
|
|
|
@@ -62,32 +64,32 @@ public class SignAward {
|
|
62
|
64
|
// System.out.println("签署短链接:"+sealUrl);
|
|
63
|
65
|
|
|
64
|
66
|
//查询签署流程详情
|
|
65
|
|
- EsignHttpResponse signFlowDetail = signFlowDetail(sealSignRecord);
|
|
66
|
|
- JsonObject signFlowDetailJsonObject = gson.fromJson(signFlowDetail.getBody(),JsonObject.class);
|
|
67
|
|
- JsonObject flowDetailData = signFlowDetailJsonObject.getAsJsonObject("data");
|
|
68
|
|
- JsonArray signersArray = flowDetailData.get("signers").getAsJsonArray();
|
|
69
|
|
- for (int i = 0; i < signersArray.size(); i++) {
|
|
70
|
|
- JsonObject signerObject = (JsonObject)signersArray.get(i);
|
|
71
|
|
- Integer psnsignStatus ;
|
|
72
|
|
- Integer orgsignStatus ;
|
|
73
|
|
- if(!(signerObject.get("psnSigner").toString()).equals("null")){
|
|
74
|
|
- JsonObject psnSignerData = signerObject.getAsJsonObject("psnSigner");
|
|
75
|
|
- if(psnSignerData!=null){
|
|
76
|
|
- psnsignStatus = signerObject.get("signStatus").getAsInt();
|
|
77
|
|
- sealSignRecord.setPsnsignStatus(psnsignStatus);
|
|
78
|
|
- }
|
|
79
|
|
- }
|
|
80
|
|
- if(!(signerObject.get("orgSigner").toString()).equals("null")){
|
|
81
|
|
- JsonObject orgSignerData = signerObject.getAsJsonObject("orgSigner");
|
|
82
|
|
- if(orgSignerData!=null){
|
|
83
|
|
- orgsignStatus = signerObject.get("signStatus").getAsInt();
|
|
84
|
|
- sealSignRecord.setOrgsignStatus(orgsignStatus);
|
|
85
|
|
- }
|
|
86
|
|
-
|
|
87
|
|
- }
|
|
88
|
|
- }
|
|
89
|
|
-
|
|
90
|
|
- System.out.println(signFlowDetailJsonObject);
|
|
|
67
|
+// EsignHttpResponse signFlowDetail = signFlowDetail(sealSignRecord);
|
|
|
68
|
+// JsonObject signFlowDetailJsonObject = gson.fromJson(signFlowDetail.getBody(),JsonObject.class);
|
|
|
69
|
+// JsonObject flowDetailData = signFlowDetailJsonObject.getAsJsonObject("data");
|
|
|
70
|
+// JsonArray signersArray = flowDetailData.get("signers").getAsJsonArray();
|
|
|
71
|
+// for (int i = 0; i < signersArray.size(); i++) {
|
|
|
72
|
+// JsonObject signerObject = (JsonObject)signersArray.get(i);
|
|
|
73
|
+// Integer psnsignStatus ;
|
|
|
74
|
+// Integer orgsignStatus ;
|
|
|
75
|
+// if(!(signerObject.get("psnSigner").toString()).equals("null")){
|
|
|
76
|
+// JsonObject psnSignerData = signerObject.getAsJsonObject("psnSigner");
|
|
|
77
|
+// if(psnSignerData!=null){
|
|
|
78
|
+// psnsignStatus = signerObject.get("signStatus").getAsInt();
|
|
|
79
|
+// sealSignRecord.setPsnsignStatus(psnsignStatus);
|
|
|
80
|
+// }
|
|
|
81
|
+// }
|
|
|
82
|
+// if(!(signerObject.get("orgSigner").toString()).equals("null")){
|
|
|
83
|
+// JsonObject orgSignerData = signerObject.getAsJsonObject("orgSigner");
|
|
|
84
|
+// if(orgSignerData!=null){
|
|
|
85
|
+// orgsignStatus = signerObject.get("signStatus").getAsInt();
|
|
|
86
|
+// sealSignRecord.setOrgsignStatus(orgsignStatus);
|
|
|
87
|
+// }
|
|
|
88
|
+//
|
|
|
89
|
+// }
|
|
|
90
|
+// }
|
|
|
91
|
+
|
|
|
92
|
+// System.out.println(signFlowDetailJsonObject);
|
|
91
|
93
|
|
|
92
|
94
|
|
|
93
|
95
|
}
|