Przeglądaj źródła

Merge branch 'qtz' of SH-Arbitrate/Mediation-Backend into dev

qtz 2 lat temu
rodzic
commit
9a8fbe0ef3

+ 6
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/entity/mscase/MsCaseApplication.java Wyświetl plik

@@ -196,4 +196,10 @@ public class MsCaseApplication {
196 196
     @Column(name = "mediation_agreement")
197 197
     private String mediationAgreement;
198 198
 
199
+    /**
200
+     * 是否和解,0-否,1-是
201
+     */
202
+    @Column(name = "is_reconci")
203
+    private Integer isReconci;
204
+
199 205
 }

+ 7
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/mscase/MsCaseAttachVO.java Wyświetl plik

@@ -3,6 +3,8 @@ package com.ruoyi.wisdomarbitrate.domain.vo.mscase;
3 3
 import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAttach;
4 4
 import lombok.*;
5 5
 
6
+import javax.persistence.Column;
7
+
6 8
 @Getter
7 9
 @Setter
8 10
 @ToString
@@ -14,4 +16,9 @@ public class MsCaseAttachVO extends MsCaseAttach {
14 16
      * 案件状态ID
15 17
      */
16 18
     private Integer caseFlowId;
19
+
20
+    /**
21
+     * 是否和解,0-否,1-是
22
+     */
23
+    private Integer isReconci;
17 24
 }

+ 158
- 95
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCaseApplicationServiceImpl.java Wyświetl plik

@@ -1227,7 +1227,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
1227 1227
         MsCaseApplication caseApplication = msCaseApplicationMapper.selectByPrimaryKey(id);
1228 1228
         // 查询案件相关人员
1229 1229
         MsCaseAffiliate caseAffiliate = msCaseAffiliateMapper.selectByPrimaryKey(id);
1230
-
1230
+        Integer isReconci = attach.getIsReconci();
1231 1231
         if(attach.getAnnexId()!=null){
1232 1232
             MsCaseAttach caseAttach = msCaseAttachMapper.queryAnnexById(attach.getAnnexId());
1233 1233
             if (caseAttach.getAnnexType() == AnnexTypeEnum.MEDIATE_BOOK.getCode()) {
@@ -1360,7 +1360,67 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
1360 1360
                                     }
1361 1361
                                 }
1362 1362
                             }
1363
-                                        /*DeptIdentify deptIdentify1 = new DeptIdentify();
1363
+
1364
+                            if(isReconci.intValue()==1){
1365
+                                EsignHttpResponse response3 = SignAward.createByFileReconci(sealSignRecord);
1366
+
1367
+                                JSONObject jsonObject3 = JSONObject.parseObject(response3.getBody());
1368
+                                if (jsonObject3 != null) {
1369
+                                    if (jsonObject3.getIntValue("code") == 0) {
1370
+                                        //获取签署流程ID
1371
+                                        JSONObject data1 = jsonObject3.getJSONObject("data");
1372
+                                        String signFlowId = data1.getString("signFlowId");
1373
+                                        //保存案件id,文件id,文件名称.流程id到签署用印记录表里
1374
+                                        sealSignRecord.setCaseAppliId(caseApplication.getId());
1375
+                                        sealSignRecord.setSignFlowid(signFlowId);
1376
+                                        sealSignRecord.setSignFlowStatus(1);//待签名
1377
+                                        MsSealSignRecord msSealSignRecord = new MsSealSignRecord();
1378
+                                        BeanUtil.copyProperties(sealSignRecord, msSealSignRecord);
1379
+                                        msSealSignRecord.setFileId(sealSignRecord.getFileid());
1380
+                                        msSealSignRecord.setFileName(sealSignRecord.getFilename());
1381
+                                        msSealSignRecord.setSignFlowId(sealSignRecord.getSignFlowid());
1382
+                                        sealSignRecordMapper.insert(msSealSignRecord);
1383
+
1384
+                                        SealSignRecord sealSignRecordapply = new SealSignRecord();
1385
+                                        sealSignRecordapply.setSignFlowid(signFlowId);
1386
+                                        sealSignRecordapply.setPensonAccount(caseAffiliate.getContactTelphoneAgent());
1387
+                                        EsignHttpResponse signUrl = SignAward.signUrlMediation(sealSignRecordapply);
1388
+                                        JsonObject signUrlJsonObject = gson.fromJson(signUrl.getBody(), JsonObject.class);
1389
+                                        JsonObject signUrlData = signUrlJsonObject.getAsJsonObject("data");
1390
+                                        String urlapply = signUrlData.get("shortUrl").getAsString();
1391
+                                        String urlapplynew = urlapply.substring(urlapply.lastIndexOf("/")+1);
1392
+
1393
+                                        //发送签名链接短信,尊敬的{1}用户,您的{2}调解案件,签名链接{3},请点击链接签名,如非本人操作,请忽略本短信
1394
+                                        SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
1395
+                                        request.setTemplateId("2047719");
1396
+                                        request.setPhone(caseAffiliate.getContactTelphoneAgent());
1397
+                                        request.setTemplateParamSet(new String[]{caseAffiliate.getNameAgent(), caseApplication.getCaseNum(),urlapplynew});
1398
+                                        Boolean aBoolean = SmsUtils.sendSms(request);
1399
+
1400
+                                        SealSignRecord sealSignRecordRespon = new SealSignRecord();
1401
+                                        sealSignRecordRespon.setSignFlowid(signFlowId);
1402
+                                        sealSignRecordRespon.setPensonAccount(caseAffiliate.getRespondentPhone());
1403
+                                        EsignHttpResponse signUrlRespon = SignAward.signUrlMediation(sealSignRecordRespon);
1404
+                                        JsonObject signUrlJsonObjectRespon = gson.fromJson(signUrlRespon.getBody(), JsonObject.class);
1405
+                                        JsonObject signUrlDataRespon = signUrlJsonObjectRespon.getAsJsonObject("data");
1406
+                                        String urlRespon = signUrlDataRespon.get("shortUrl").getAsString();
1407
+                                        String urlResponnew = urlRespon.substring(urlRespon.lastIndexOf("/")+1);
1408
+
1409
+                                        SmsUtils.SendSmsRequest request1 = new SmsUtils.SendSmsRequest();
1410
+                                        request1.setTemplateId("2047719");
1411
+                                        request1.setPhone(caseAffiliate.getRespondentPhone());
1412
+                                        request1.setTemplateParamSet(new String[]{caseAffiliate.getRespondentName(), caseApplication.getCaseNum(),urlResponnew});
1413
+                                        Boolean aBoolean1 = SmsUtils.sendSms(request1);
1414
+
1415
+                                    } else {
1416
+                                        throw new ServiceException(jsonObject3.getString("message"));
1417
+                                    }
1418
+                                } else {
1419
+                                    return AjaxResult.error();
1420
+                                }
1421
+
1422
+                            }else {
1423
+                                /*DeptIdentify deptIdentify1 = new DeptIdentify();
1364 1424
                                         deptIdentify1.setSealStatus(1); // 印章状态为启用
1365 1425
                                         //根据机构名称查询部门id
1366 1426
                                         SysDept sysDept = new SysDept();
@@ -1378,106 +1438,109 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
1378 1438
                                                 sealIds.add(sealId);
1379 1439
                                             }
1380 1440
                                         }*/
1381
-                            String orgnizeName = sealSignRecord.getOrgnizeName(); //机构名称
1382
-                            String orgnizeNamepsnName = sealSignRecord.getOrgnizeNamepsnName(); //机构经办人姓名
1383
-                            String orgnizeNamePsnAccount = sealSignRecord.getOrgnizeNamePsnAccount(); //机构经办人联系方式
1384
-                            //查询机构信息
1385
-                            DeptIdentify deptIdentify1 = new DeptIdentify();
1386
-                            deptIdentify1.setIdentifyName(orgnizeName);
1387
-                            deptIdentify1.setOperName(orgnizeNamepsnName);
1388
-                            deptIdentify1.setOperPhone(orgnizeNamePsnAccount);
1389
-                            List<DeptIdentify> deptIdentifies = deptIdentifyMapper.selectDeptIdentify(deptIdentify1);
1390
-                            if (deptIdentifies != null && deptIdentifies.size() > 0) {
1391
-                                Long iddeptIdent = deptIdentifies.get(0).getId();
1392
-                                SealManage sealManage = new SealManage();
1393
-                                sealManage.setIdentifyId(iddeptIdent);
1394
-                                List<String> sealIdList = new ArrayList<>();
1395
-                                List<SealManage> selectSealList = sealManageMapper.selectSealList(sealManage);
1396
-                                if (selectSealList != null && selectSealList.size() > 0) {
1397
-                                    for (SealManage manage : selectSealList) {
1398
-                                        Integer sealStatus = manage.getSealStatus();
1399
-                                        Integer isUse = manage.getIsUse();
1400
-                                        if (sealStatus == 1 && isUse ==1) {
1401
-                                            sealIdList.add(manage.getSealId());
1441
+                                String orgnizeName = sealSignRecord.getOrgnizeName(); //机构名称
1442
+                                String orgnizeNamepsnName = sealSignRecord.getOrgnizeNamepsnName(); //机构经办人姓名
1443
+                                String orgnizeNamePsnAccount = sealSignRecord.getOrgnizeNamePsnAccount(); //机构经办人联系方式
1444
+                                //查询机构信息
1445
+                                DeptIdentify deptIdentify1 = new DeptIdentify();
1446
+                                deptIdentify1.setIdentifyName(orgnizeName);
1447
+                                deptIdentify1.setOperName(orgnizeNamepsnName);
1448
+                                deptIdentify1.setOperPhone(orgnizeNamePsnAccount);
1449
+                                List<DeptIdentify> deptIdentifies = deptIdentifyMapper.selectDeptIdentify(deptIdentify1);
1450
+                                if (deptIdentifies != null && deptIdentifies.size() > 0) {
1451
+                                    Long iddeptIdent = deptIdentifies.get(0).getId();
1452
+                                    SealManage sealManage = new SealManage();
1453
+                                    sealManage.setIdentifyId(iddeptIdent);
1454
+                                    List<String> sealIdList = new ArrayList<>();
1455
+                                    List<SealManage> selectSealList = sealManageMapper.selectSealList(sealManage);
1456
+                                    if (selectSealList != null && selectSealList.size() > 0) {
1457
+                                        for (SealManage manage : selectSealList) {
1458
+                                            Integer sealStatus = manage.getSealStatus();
1459
+                                            Integer isUse = manage.getIsUse();
1460
+                                            if (sealStatus == 1 && isUse ==1) {
1461
+                                                sealIdList.add(manage.getSealId());
1462
+                                            }
1402 1463
                                         }
1403
-                                    }
1404
-                                    EsignHttpResponse response3 = SignAward.createByFileMediation(sealSignRecord, sealIdList);
1405
-
1406
-                                    JSONObject jsonObject3 = JSONObject.parseObject(response3.getBody());
1407
-                                    if (jsonObject3 != null) {
1408
-                                        if (jsonObject3.getIntValue("code") == 0) {
1409
-                                            //获取签署流程ID
1410
-                                            JSONObject data1 = jsonObject3.getJSONObject("data");
1411
-                                            String signFlowId = data1.getString("signFlowId");
1412
-                                            //保存案件id,文件id,文件名称.流程id到签署用印记录表里
1413
-                                            sealSignRecord.setCaseAppliId(caseApplication.getId());
1414
-                                            sealSignRecord.setSignFlowid(signFlowId);
1415
-                                            sealSignRecord.setSignFlowStatus(1);//待签名
1416
-                                            MsSealSignRecord msSealSignRecord = new MsSealSignRecord();
1417
-                                            BeanUtil.copyProperties(sealSignRecord, msSealSignRecord);
1418
-                                            msSealSignRecord.setFileId(sealSignRecord.getFileid());
1419
-                                            msSealSignRecord.setFileName(sealSignRecord.getFilename());
1420
-                                            msSealSignRecord.setSignFlowId(sealSignRecord.getSignFlowid());
1421
-                                            msSealSignRecord.setOrgnNamePsnAcc(sealSignRecord.getOrgnizeNamePsnAccount());
1422
-                                            msSealSignRecord.setOrgnNamePsnName(sealSignRecord.getOrgnizeNamepsnName());
1423
-                                            sealSignRecordMapper.insert(msSealSignRecord);
1424
-
1425
-                                            SealSignRecord sealSignRecordapply = new SealSignRecord();
1426
-                                            sealSignRecordapply.setSignFlowid(signFlowId);
1427
-                                            sealSignRecordapply.setPensonAccount(caseAffiliate.getContactTelphoneAgent());
1428
-                                            EsignHttpResponse signUrl = SignAward.signUrlMediation(sealSignRecordapply);
1429
-                                            JsonObject signUrlJsonObject = gson.fromJson(signUrl.getBody(), JsonObject.class);
1430
-                                            JsonObject signUrlData = signUrlJsonObject.getAsJsonObject("data");
1431
-                                            String urlapply = signUrlData.get("shortUrl").getAsString();
1432
-                                            String urlapplynew = urlapply.substring(urlapply.lastIndexOf("/")+1);
1433
-
1434
-                                            //发送签名链接短信,尊敬的{1}用户,您的{2}调解案件,签名链接{3},请点击链接签名,如非本人操作,请忽略本短信
1435
-                                            SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
1436
-                                            request.setTemplateId("2047719");
1437
-                                            request.setPhone(caseAffiliate.getContactTelphoneAgent());
1438
-                                            request.setTemplateParamSet(new String[]{caseAffiliate.getNameAgent(), caseApplication.getCaseNum(),urlapplynew});
1439
-                                            Boolean aBoolean = SmsUtils.sendSms(request);
1440
-
1441
-                                            SealSignRecord sealSignRecordRespon = new SealSignRecord();
1442
-                                            sealSignRecordRespon.setSignFlowid(signFlowId);
1443
-                                            sealSignRecordRespon.setPensonAccount(caseAffiliate.getRespondentPhone());
1444
-                                            EsignHttpResponse signUrlRespon = SignAward.signUrlMediation(sealSignRecordRespon);
1445
-                                            JsonObject signUrlJsonObjectRespon = gson.fromJson(signUrlRespon.getBody(), JsonObject.class);
1446
-                                            JsonObject signUrlDataRespon = signUrlJsonObjectRespon.getAsJsonObject("data");
1447
-                                            String urlRespon = signUrlDataRespon.get("shortUrl").getAsString();
1448
-                                            String urlResponnew = urlRespon.substring(urlRespon.lastIndexOf("/")+1);
1449
-
1450
-                                            SmsUtils.SendSmsRequest request1 = new SmsUtils.SendSmsRequest();
1451
-                                            request1.setTemplateId("2047719");
1452
-                                            request1.setPhone(caseAffiliate.getRespondentPhone());
1453
-                                            request1.setTemplateParamSet(new String[]{caseAffiliate.getRespondentName(), caseApplication.getCaseNum(),urlResponnew});
1454
-                                            Boolean aBoolean1 = SmsUtils.sendSms(request1);
1455
-
1456
-                                            SealSignRecord sealSignRecordMedi = new SealSignRecord();
1457
-                                            sealSignRecordMedi.setSignFlowid(signFlowId);
1458
-                                            sealSignRecordMedi.setPensonAccount(sealSignRecord.getPensonAccountMedi());
1459
-                                            EsignHttpResponse signUrlResponMedi = SignAward.signUrlMediation(sealSignRecordMedi);
1460
-                                            JsonObject signUrlJsonObjectResponMedi = gson.fromJson(signUrlResponMedi.getBody(), JsonObject.class);
1461
-                                            JsonObject signUrlDataResponMedi = signUrlJsonObjectResponMedi.getAsJsonObject("data");
1462
-                                            String urlResponMedi = signUrlDataResponMedi.get("shortUrl").getAsString();
1463
-                                            String urlResponnewMedi = urlResponMedi.substring(urlResponMedi.lastIndexOf("/")+1);
1464
-
1465
-                                            SmsUtils.SendSmsRequest requestMedi = new SmsUtils.SendSmsRequest();
1466
-                                            requestMedi.setTemplateId("2047719");
1467
-                                            requestMedi.setPhone(sealSignRecord.getPensonAccountMedi());
1468
-                                            requestMedi.setTemplateParamSet(new String[]{sealSignRecord.getPensonNameMedi(), caseApplication.getCaseNum(),urlResponnewMedi});
1469
-                                            Boolean aBooleanMedi = SmsUtils.sendSms(requestMedi);
1464
+                                        EsignHttpResponse response3 = SignAward.createByFileMediation(sealSignRecord, sealIdList);
1465
+
1466
+                                        JSONObject jsonObject3 = JSONObject.parseObject(response3.getBody());
1467
+                                        if (jsonObject3 != null) {
1468
+                                            if (jsonObject3.getIntValue("code") == 0) {
1469
+                                                //获取签署流程ID
1470
+                                                JSONObject data1 = jsonObject3.getJSONObject("data");
1471
+                                                String signFlowId = data1.getString("signFlowId");
1472
+                                                //保存案件id,文件id,文件名称.流程id到签署用印记录表里
1473
+                                                sealSignRecord.setCaseAppliId(caseApplication.getId());
1474
+                                                sealSignRecord.setSignFlowid(signFlowId);
1475
+                                                sealSignRecord.setSignFlowStatus(1);//待签名
1476
+                                                MsSealSignRecord msSealSignRecord = new MsSealSignRecord();
1477
+                                                BeanUtil.copyProperties(sealSignRecord, msSealSignRecord);
1478
+                                                msSealSignRecord.setFileId(sealSignRecord.getFileid());
1479
+                                                msSealSignRecord.setFileName(sealSignRecord.getFilename());
1480
+                                                msSealSignRecord.setSignFlowId(sealSignRecord.getSignFlowid());
1481
+                                                msSealSignRecord.setOrgnNamePsnAcc(sealSignRecord.getOrgnizeNamePsnAccount());
1482
+                                                msSealSignRecord.setOrgnNamePsnName(sealSignRecord.getOrgnizeNamepsnName());
1483
+                                                sealSignRecordMapper.insert(msSealSignRecord);
1484
+
1485
+                                                SealSignRecord sealSignRecordapply = new SealSignRecord();
1486
+                                                sealSignRecordapply.setSignFlowid(signFlowId);
1487
+                                                sealSignRecordapply.setPensonAccount(caseAffiliate.getContactTelphoneAgent());
1488
+                                                EsignHttpResponse signUrl = SignAward.signUrlMediation(sealSignRecordapply);
1489
+                                                JsonObject signUrlJsonObject = gson.fromJson(signUrl.getBody(), JsonObject.class);
1490
+                                                JsonObject signUrlData = signUrlJsonObject.getAsJsonObject("data");
1491
+                                                String urlapply = signUrlData.get("shortUrl").getAsString();
1492
+                                                String urlapplynew = urlapply.substring(urlapply.lastIndexOf("/")+1);
1493
+
1494
+                                                //发送签名链接短信,尊敬的{1}用户,您的{2}调解案件,签名链接{3},请点击链接签名,如非本人操作,请忽略本短信
1495
+                                                SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
1496
+                                                request.setTemplateId("2047719");
1497
+                                                request.setPhone(caseAffiliate.getContactTelphoneAgent());
1498
+                                                request.setTemplateParamSet(new String[]{caseAffiliate.getNameAgent(), caseApplication.getCaseNum(),urlapplynew});
1499
+                                                Boolean aBoolean = SmsUtils.sendSms(request);
1500
+
1501
+                                                SealSignRecord sealSignRecordRespon = new SealSignRecord();
1502
+                                                sealSignRecordRespon.setSignFlowid(signFlowId);
1503
+                                                sealSignRecordRespon.setPensonAccount(caseAffiliate.getRespondentPhone());
1504
+                                                EsignHttpResponse signUrlRespon = SignAward.signUrlMediation(sealSignRecordRespon);
1505
+                                                JsonObject signUrlJsonObjectRespon = gson.fromJson(signUrlRespon.getBody(), JsonObject.class);
1506
+                                                JsonObject signUrlDataRespon = signUrlJsonObjectRespon.getAsJsonObject("data");
1507
+                                                String urlRespon = signUrlDataRespon.get("shortUrl").getAsString();
1508
+                                                String urlResponnew = urlRespon.substring(urlRespon.lastIndexOf("/")+1);
1509
+
1510
+                                                SmsUtils.SendSmsRequest request1 = new SmsUtils.SendSmsRequest();
1511
+                                                request1.setTemplateId("2047719");
1512
+                                                request1.setPhone(caseAffiliate.getRespondentPhone());
1513
+                                                request1.setTemplateParamSet(new String[]{caseAffiliate.getRespondentName(), caseApplication.getCaseNum(),urlResponnew});
1514
+                                                Boolean aBoolean1 = SmsUtils.sendSms(request1);
1515
+
1516
+                                                SealSignRecord sealSignRecordMedi = new SealSignRecord();
1517
+                                                sealSignRecordMedi.setSignFlowid(signFlowId);
1518
+                                                sealSignRecordMedi.setPensonAccount(sealSignRecord.getPensonAccountMedi());
1519
+                                                EsignHttpResponse signUrlResponMedi = SignAward.signUrlMediation(sealSignRecordMedi);
1520
+                                                JsonObject signUrlJsonObjectResponMedi = gson.fromJson(signUrlResponMedi.getBody(), JsonObject.class);
1521
+                                                JsonObject signUrlDataResponMedi = signUrlJsonObjectResponMedi.getAsJsonObject("data");
1522
+                                                String urlResponMedi = signUrlDataResponMedi.get("shortUrl").getAsString();
1523
+                                                String urlResponnewMedi = urlResponMedi.substring(urlResponMedi.lastIndexOf("/")+1);
1524
+
1525
+                                                SmsUtils.SendSmsRequest requestMedi = new SmsUtils.SendSmsRequest();
1526
+                                                requestMedi.setTemplateId("2047719");
1527
+                                                requestMedi.setPhone(sealSignRecord.getPensonAccountMedi());
1528
+                                                requestMedi.setTemplateParamSet(new String[]{sealSignRecord.getPensonNameMedi(), caseApplication.getCaseNum(),urlResponnewMedi});
1529
+                                                Boolean aBooleanMedi = SmsUtils.sendSms(requestMedi);
1470 1530
 
1531
+                                            } else {
1532
+                                                throw new ServiceException(jsonObject3.getString("message"));
1533
+                                            }
1471 1534
                                         } else {
1472
-                                            throw new ServiceException(jsonObject3.getString("message"));
1535
+                                            return AjaxResult.error();
1473 1536
                                         }
1474
-                                    } else {
1475
-                                        return AjaxResult.error();
1476 1537
                                     }
1538
+                                } else {
1539
+                                    return AjaxResult.error();
1477 1540
                                 }
1478
-                            } else {
1479
-                                return AjaxResult.error();
1480 1541
                             }
1542
+
1543
+
1481 1544
                         }else {
1482 1545
                             return AjaxResult.error();
1483 1546
                         }

+ 121
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/SignAward.java Wyświetl plik

@@ -488,6 +488,127 @@ public class SignAward {
488 488
         return EsignHttpHelper.doCommHttp(eSignHost, apiaddr, requestType, jsonParm, header, false);
489 489
     }
490 490
 
491
+    /**
492
+     * 发起签署
493
+     *
494
+     * @return
495
+     * @throws EsignDemoException
496
+     */
497
+    public static EsignHttpResponse createByFileReconci(SealSignRecord sealSignRecord ) throws EsignDemoException {
498
+        String apiaddr = "/v3/sign-flow/create-by-file";
499
+
500
+        String fileId = sealSignRecord.getFileid();
501
+        String fileName = sealSignRecord.getFilename();
502
+
503
+        String psnAccount = sealSignRecord.getPensonAccount();
504
+        String psnName = sealSignRecord.getPensonName();
505
+
506
+        String psnAccountRes = sealSignRecord.getPensonAccountRes();
507
+        String psnNameRes = sealSignRecord.getPensonNameRes();
508
+
509
+        String positionPagepsn = sealSignRecord.getPositionPagepsn();
510
+        double positionXpsn = sealSignRecord.getPositionXpsn();
511
+        double positionYpsn = sealSignRecord.getPositionYpsn();
512
+
513
+        String positionPagepsnRes = sealSignRecord.getPositionPagepsnRes();
514
+        double positionXpsnRes = sealSignRecord.getPositionXpsnRes();
515
+        double positionYpsnRes = sealSignRecord.getPositionYpsnRes();
516
+
517
+        String jsonParm = "{\n" +
518
+                "    \"docs\": [\n" +
519
+                "        {\n" +
520
+                "            \"fileId\": \"" + fileId + "\",\n" +
521
+                "            \"fileName\": \"" + fileName + "\"\n" +
522
+                "        }\n" +
523
+                "    ],\n" +
524
+                "    \"signFlowConfig\": {\n" +
525
+                "        \"signFlowTitle\": \"测试合同\",\n" +
526
+                "        \"autoStart\": true,\n" +
527
+                "       \"authConfig\": {\n" +
528
+                "           \"willingnessAuthModes\": [\n" +
529
+                "               \"CODE_SMS\"\n" +
530
+                "           ],\n" +
531
+                "           \"psnAvailableAuthModes\": [\n" +
532
+                "               \"PSN_MOBILE3\"\n" +
533
+                "           ],\n" +
534
+                "           \"orgAvailableAuthModes\": [\n" +
535
+                "               \"ORG_LEGALREP\"\n" +
536
+                "           ]\n" +
537
+                "       },\n" +
538
+
539
+                "       \"signConfig\": {\n" +
540
+                "           \"availableSignClientTypes\":  \"1\"\n" +
541
+                "       },\n" +
542
+
543
+                "        \"autoFinish\": true\n" +
544
+                "    },\n" +
545
+
546
+                "    \"signers\": [\n" +
547
+                "          {\n" +
548
+                "            \"psnSignerInfo\": {\n" +
549
+                "                \"psnAccount\": \"" + psnAccount + "\",\n" +
550
+                "                \"psnInfo\": {\n" +
551
+                "                            \"psnName\": \"" + psnName + "\"\n" +
552
+                "                        }\n" +
553
+                "            },\n" +
554
+                "            \"signFields\": [\n" +
555
+                "                {\n" +
556
+                "                    \"fileId\": \"" + fileId + "\",\n" +
557
+                "                    \"normalSignFieldConfig\": {\n" +
558
+                "                        \"autoSign\": false,\n" +
559
+                "                        \"freeMode\": false,\n" +
560
+                "                        \"movableSignField\": false,\n" +
561
+                "                        \"signFieldPosition\": {\n" +
562
+                "                            \"positionPage\": \"" + positionPagepsn + "\",\n" +
563
+                "                            \"positionX\": " + positionXpsn + ",\n" +
564
+                "                            \"positionY\": " + positionYpsn + "\n" +
565
+                "                        },\n" +
566
+                "                        \"signFieldStyle\": 1\n" +
567
+                "                    },\n" +
568
+                "                    \"signFieldType\": 0\n" +
569
+                "                }\n" +
570
+                "            ],\n" +
571
+                "            \"signerType\": 0\n" +
572
+                "        },\n" +
573
+
574
+                "        {\n" +
575
+                "            \"psnSignerInfo\": {\n" +
576
+                "                \"psnAccount\": \"" + psnAccountRes + "\",\n" +
577
+                "                \"psnInfo\": {\n" +
578
+                "                            \"psnName\": \"" + psnNameRes + "\"\n" +
579
+                "                        }\n" +
580
+                "            },\n" +
581
+                "            \"signFields\": [\n" +
582
+                "                {\n" +
583
+                "                    \"fileId\": \"" + fileId + "\",\n" +
584
+                "                    \"normalSignFieldConfig\": {\n" +
585
+                "                        \"autoSign\": false,\n" +
586
+                "                        \"freeMode\": false,\n" +
587
+                "                        \"movableSignField\": false,\n" +
588
+                "                        \"signFieldPosition\": {\n" +
589
+                "                            \"positionPage\": \"" + positionPagepsnRes + "\",\n" +
590
+                "                            \"positionX\": " + positionXpsnRes + ",\n" +
591
+                "                            \"positionY\": " + positionYpsnRes + "\n" +
592
+                "                        },\n" +
593
+                "                        \"signFieldStyle\": 1\n" +
594
+                "                    },\n" +
595
+                "                    \"signFieldType\": 0\n" +
596
+                "                }\n" +
597
+                "            ],\n" +
598
+                "            \"signerType\": 0\n" +
599
+                "        }\n" +
600
+
601
+                "    ]\n" +
602
+                "}";
603
+
604
+        //请求方法
605
+        EsignRequestType requestType = EsignRequestType.POST;
606
+        //生成请求签名鉴权方式的Header
607
+        Map<String, String> header = EsignHttpHelper.signAndBuildSignAndJsonHeader(eSignAppId, eSignAppSecret, jsonParm, requestType.name(), apiaddr, false);
608
+        //发起接口请求
609
+        return EsignHttpHelper.doCommHttp(eSignHost, apiaddr, requestType, jsonParm, header, false);
610
+    }
611
+
491 612
     /**
492 613
      * 获取合同文件签名链接
493 614
      *

+ 1
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/mscase/MsCaseApplicationMapper.xml Wyświetl plik

@@ -32,6 +32,7 @@
32 32
     <result column="facts" jdbcType="LONGVARCHAR" property="facts" />
33 33
     <result column="mediation_url" jdbcType="LONGVARCHAR" property="mediationUrl" />
34 34
     <result column="mediation_agreement" jdbcType="LONGVARCHAR" property="mediationAgreement" />
35
+    <result column="is_reconci" jdbcType="INTEGER" property="isReconci" />
35 36
   </resultMap>
36 37
 
37 38
   <select id="listMediator" resultMap="BaseResultMap">