|
|
@@ -827,6 +827,31 @@ public class MsSignSealServiceImpl implements MsSignSealService {
|
|
827
|
827
|
|
|
828
|
828
|
}
|
|
829
|
829
|
|
|
|
830
|
+ @Override
|
|
|
831
|
+ public AjaxResult msCaseSignUrlResAPP(MsSignSealDTO dto) throws EsignDemoException {
|
|
|
832
|
+ Long caseId = dto.getCaseId();
|
|
|
833
|
+ MsCaseAffiliate caseAffiliate = msCaseAffiliateMapper.selectByPrimaryKey(caseId);
|
|
|
834
|
+ SealSignRecord sealSignRecordres = new SealSignRecord();
|
|
|
835
|
+ MsSealSignRecord mssealSignRecord = new MsSealSignRecord();
|
|
|
836
|
+ mssealSignRecord.setCaseAppliId(caseId);
|
|
|
837
|
+ List<MsSealSignRecord> sealSignRecords = sealSignRecordMapper.selectSealSignRecord(mssealSignRecord);
|
|
|
838
|
+ if (sealSignRecords != null && sealSignRecords.size() > 0) {
|
|
|
839
|
+ String signFlowid = sealSignRecords.get(0).getSignFlowId();
|
|
|
840
|
+ SealSignRecord sealSignRecord = new SealSignRecord();
|
|
|
841
|
+ sealSignRecord.setPensonAccount(caseAffiliate.getRespondentPhone());
|
|
|
842
|
+ sealSignRecord.setSignFlowid(signFlowid);
|
|
|
843
|
+
|
|
|
844
|
+ Gson gson = new Gson();
|
|
|
845
|
+ EsignHttpResponse signUrl = SignAward.signUrlMediation(sealSignRecord);
|
|
|
846
|
+ JsonObject signUrlJsonObject = gson.fromJson(signUrl.getBody(), JsonObject.class);
|
|
|
847
|
+ JsonObject signUrlData = signUrlJsonObject.getAsJsonObject("data");
|
|
|
848
|
+ String urlapply = signUrlData.get("shortUrl").getAsString();
|
|
|
849
|
+ sealSignRecordres.setSealUrl(urlapply);
|
|
|
850
|
+ }
|
|
|
851
|
+
|
|
|
852
|
+ return AjaxResult.success(sealSignRecordres);
|
|
|
853
|
+ }
|
|
|
854
|
+
|
|
830
|
855
|
/**
|
|
831
|
856
|
* 通过邮件发送裁决书文件
|
|
832
|
857
|
*
|