|
|
@@ -25,6 +25,7 @@ import com.ruoyi.wisdomarbitrate.domain.entity.dept.MsSealSignRecord;
|
|
25
|
25
|
import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAffiliate;
|
|
26
|
26
|
import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseApplication;
|
|
27
|
27
|
import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAttach;
|
|
|
28
|
+import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCasePaymentRecord;
|
|
28
|
29
|
import com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsCaseApplicationVO;
|
|
29
|
30
|
import com.ruoyi.wisdomarbitrate.mapper.dept.DeptIdentifyMapper;
|
|
30
|
31
|
import com.ruoyi.wisdomarbitrate.mapper.dept.MsSealSignRecordMapper;
|
|
|
@@ -39,6 +40,7 @@ import com.ruoyi.wisdomarbitrate.utils.SignAward;
|
|
39
|
40
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
40
|
41
|
import org.springframework.stereotype.Service;
|
|
41
|
42
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
43
|
+import tk.mybatis.mapper.entity.Example;
|
|
42
|
44
|
|
|
43
|
45
|
import javax.annotation.Resource;
|
|
44
|
46
|
import java.util.ArrayList;
|
|
|
@@ -82,8 +84,8 @@ public class MsSignSealServiceImpl implements MsSignSealService {
|
|
82
|
84
|
for (MsCaseAttach caseAttach : caseAttachList) {
|
|
83
|
85
|
if (caseAttach.getAnnexType() == 3) {
|
|
84
|
86
|
String annexPath = caseAttach.getAnnexPath();
|
|
85
|
|
- String path = "/home/ruoyi" + annexPath;
|
|
86
|
|
-
|
|
|
87
|
+// String path = "/home/ruoyi" + annexPath;
|
|
|
88
|
+ String path = "D:\\home\\ruoyi\\uploadPath\\upload\\2023\\12\\调解书测试.docx";
|
|
87
|
89
|
//获取文件上传地址
|
|
88
|
90
|
EsignHttpResponse response = SaaSAPIFileUtils.getUploadUrl(path);
|
|
89
|
91
|
String body = response.getBody();
|
|
|
@@ -274,7 +276,7 @@ public class MsSignSealServiceImpl implements MsSignSealService {
|
|
274
|
276
|
SmsUtils.SendSmsRequest request1 = new SmsUtils.SendSmsRequest();
|
|
275
|
277
|
request1.setTemplateId("2047719");
|
|
276
|
278
|
request1.setPhone(caseAffiliate.getRespondentPhone());
|
|
277
|
|
- request1.setTemplateParamSet(new String[]{caseAffiliate.getNameAgent(), caseApplication.getCaseNum(),urlResponnew});
|
|
|
279
|
+ request1.setTemplateParamSet(new String[]{caseAffiliate.getRespondentName(), caseApplication.getCaseNum(),urlResponnew});
|
|
278
|
280
|
Boolean aBoolean1 = SmsUtils.sendSms(request1);
|
|
279
|
281
|
|
|
280
|
282
|
|
|
|
@@ -339,5 +341,31 @@ public class MsSignSealServiceImpl implements MsSignSealService {
|
|
339
|
341
|
|
|
340
|
342
|
}
|
|
341
|
343
|
|
|
|
344
|
+ @Override
|
|
|
345
|
+ public SealSignRecord selectSealUrl(MsSignSealDTO dto) throws EsignDemoException {
|
|
|
346
|
+ Example example = new Example(MsSealSignRecord.class);
|
|
|
347
|
+ Example.Criteria criteria = example.createCriteria();
|
|
|
348
|
+ criteria.andEqualTo("caseAppliId", dto.getCaseId());
|
|
|
349
|
+ List<MsSealSignRecord> sealSignRecords = sealSignRecordMapper.selectByExample(example);
|
|
|
350
|
+
|
|
|
351
|
+ Gson gson = new Gson();
|
|
|
352
|
+ SealSignRecord sealSignRecordReslt = new SealSignRecord();
|
|
|
353
|
+ if (sealSignRecords != null && sealSignRecords.size() > 0) {
|
|
|
354
|
+ MsSealSignRecord sealSignRecordselect = sealSignRecords.get(0);
|
|
|
355
|
+ SealSignRecord sealSignRecord1 = new SealSignRecord();
|
|
|
356
|
+ BeanUtil.copyProperties(sealSignRecordselect, sealSignRecord1);
|
|
|
357
|
+ sealSignRecord1.setSignFlowid(sealSignRecordselect.getSignFlowId());
|
|
|
358
|
+ sealSignRecord1.setOrgnizeNamePsnAccount(sealSignRecordselect.getOrgnNamePsnAcc());
|
|
|
359
|
+ sealSignRecord1.setOrgnizeName(sealSignRecordselect.getOrgnizeName());
|
|
|
360
|
+
|
|
|
361
|
+ EsignHttpResponse signUrl = SignAward.usesealUrl(sealSignRecord1);
|
|
|
362
|
+ JsonObject signUrlJsonObject = gson.fromJson(signUrl.getBody(), JsonObject.class);
|
|
|
363
|
+ JsonObject signUrlData = signUrlJsonObject.getAsJsonObject("data");
|
|
|
364
|
+ String url = signUrlData.get("shortUrl").getAsString();
|
|
|
365
|
+ sealSignRecordReslt.setSealUrl(url);
|
|
|
366
|
+ }
|
|
|
367
|
+ return sealSignRecordReslt;
|
|
|
368
|
+ }
|
|
|
369
|
+
|
|
342
|
370
|
|
|
343
|
371
|
}
|