Pārlūkot izejas kodu

实现和解功能

qitz 2 gadus atpakaļ
vecāks
revīzija
d88a440264

+ 6
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/entity/mscase/MsCaseApplication.java Parādīt failu

@@ -222,4 +222,10 @@ public class MsCaseApplication {
222 222
     @Column(name = "mediation_agreement")
223 223
     private String mediationAgreement;
224 224
 
225
+    /**
226
+     * 是否和解,0-否,1-是
227
+     */
228
+    @Column(name = "is_reconci")
229
+    private Integer isReconci;
230
+
225 231
 }

+ 7
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/mscase/MsCaseAttachVO.java Parādīt failu

@@ -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 Parādīt failu

@@ -1173,7 +1173,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
1173 1173
         MsCaseApplication caseApplication = msCaseApplicationMapper.selectByPrimaryKey(id);
1174 1174
         // 查询案件相关人员
1175 1175
         MsCaseAffiliate caseAffiliate = msCaseAffiliateMapper.selectByPrimaryKey(id);
1176
-
1176
+        Integer isReconci = attach.getIsReconci();
1177 1177
         if(attach.getAnnexId()!=null){
1178 1178
             MsCaseAttach caseAttach = msCaseAttachMapper.queryAnnexById(attach.getAnnexId());
1179 1179
             if (caseAttach.getAnnexType() == AnnexTypeEnum.MEDIATE_BOOK.getCode()) {
@@ -1306,7 +1306,67 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
1306 1306
                                     }
1307 1307
                                 }
1308 1308
                             }
1309
-                                        /*DeptIdentify deptIdentify1 = new DeptIdentify();
1309
+
1310
+                            if(isReconci.intValue()==1){
1311
+                                EsignHttpResponse response3 = SignAward.createByFileReconci(sealSignRecord);
1312
+
1313
+                                JSONObject jsonObject3 = JSONObject.parseObject(response3.getBody());
1314
+                                if (jsonObject3 != null) {
1315
+                                    if (jsonObject3.getIntValue("code") == 0) {
1316
+                                        //获取签署流程ID
1317
+                                        JSONObject data1 = jsonObject3.getJSONObject("data");
1318
+                                        String signFlowId = data1.getString("signFlowId");
1319
+                                        //保存案件id,文件id,文件名称.流程id到签署用印记录表里
1320
+                                        sealSignRecord.setCaseAppliId(caseApplication.getId());
1321
+                                        sealSignRecord.setSignFlowid(signFlowId);
1322
+                                        sealSignRecord.setSignFlowStatus(1);//待签名
1323
+                                        MsSealSignRecord msSealSignRecord = new MsSealSignRecord();
1324
+                                        BeanUtil.copyProperties(sealSignRecord, msSealSignRecord);
1325
+                                        msSealSignRecord.setFileId(sealSignRecord.getFileid());
1326
+                                        msSealSignRecord.setFileName(sealSignRecord.getFilename());
1327
+                                        msSealSignRecord.setSignFlowId(sealSignRecord.getSignFlowid());
1328
+                                        sealSignRecordMapper.insert(msSealSignRecord);
1329
+
1330
+                                        SealSignRecord sealSignRecordapply = new SealSignRecord();
1331
+                                        sealSignRecordapply.setSignFlowid(signFlowId);
1332
+                                        sealSignRecordapply.setPensonAccount(caseAffiliate.getContactTelphoneAgent());
1333
+                                        EsignHttpResponse signUrl = SignAward.signUrlMediation(sealSignRecordapply);
1334
+                                        JsonObject signUrlJsonObject = gson.fromJson(signUrl.getBody(), JsonObject.class);
1335
+                                        JsonObject signUrlData = signUrlJsonObject.getAsJsonObject("data");
1336
+                                        String urlapply = signUrlData.get("shortUrl").getAsString();
1337
+                                        String urlapplynew = urlapply.substring(urlapply.lastIndexOf("/")+1);
1338
+
1339
+                                        //发送签名链接短信,尊敬的{1}用户,您的{2}调解案件,签名链接{3},请点击链接签名,如非本人操作,请忽略本短信
1340
+                                        SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
1341
+                                        request.setTemplateId("2047719");
1342
+                                        request.setPhone(caseAffiliate.getContactTelphoneAgent());
1343
+                                        request.setTemplateParamSet(new String[]{caseAffiliate.getNameAgent(), caseApplication.getCaseNum(),urlapplynew});
1344
+                                        Boolean aBoolean = SmsUtils.sendSms(request);
1345
+
1346
+                                        SealSignRecord sealSignRecordRespon = new SealSignRecord();
1347
+                                        sealSignRecordRespon.setSignFlowid(signFlowId);
1348
+                                        sealSignRecordRespon.setPensonAccount(caseAffiliate.getRespondentPhone());
1349
+                                        EsignHttpResponse signUrlRespon = SignAward.signUrlMediation(sealSignRecordRespon);
1350
+                                        JsonObject signUrlJsonObjectRespon = gson.fromJson(signUrlRespon.getBody(), JsonObject.class);
1351
+                                        JsonObject signUrlDataRespon = signUrlJsonObjectRespon.getAsJsonObject("data");
1352
+                                        String urlRespon = signUrlDataRespon.get("shortUrl").getAsString();
1353
+                                        String urlResponnew = urlRespon.substring(urlRespon.lastIndexOf("/")+1);
1354
+
1355
+                                        SmsUtils.SendSmsRequest request1 = new SmsUtils.SendSmsRequest();
1356
+                                        request1.setTemplateId("2047719");
1357
+                                        request1.setPhone(caseAffiliate.getRespondentPhone());
1358
+                                        request1.setTemplateParamSet(new String[]{caseAffiliate.getRespondentName(), caseApplication.getCaseNum(),urlResponnew});
1359
+                                        Boolean aBoolean1 = SmsUtils.sendSms(request1);
1360
+
1361
+                                    } else {
1362
+                                        throw new ServiceException(jsonObject3.getString("message"));
1363
+                                    }
1364
+                                } else {
1365
+                                    return AjaxResult.error();
1366
+                                }
1367
+
1368
+                            }else {
1369
+                                /*DeptIdentify deptIdentify1 = new DeptIdentify();
1310 1370
                                         deptIdentify1.setSealStatus(1); // 印章状态为启用
1311 1371
                                         //根据机构名称查询部门id
1312 1372
                                         SysDept sysDept = new SysDept();
@@ -1324,106 +1384,109 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
1324 1384
                                                 sealIds.add(sealId);
1325 1385
                                             }
1326 1386
                                         }*/
1327
-                            String orgnizeName = sealSignRecord.getOrgnizeName(); //机构名称
1328
-                            String orgnizeNamepsnName = sealSignRecord.getOrgnizeNamepsnName(); //机构经办人姓名
1329
-                            String orgnizeNamePsnAccount = sealSignRecord.getOrgnizeNamePsnAccount(); //机构经办人联系方式
1330
-                            //查询机构信息
1331
-                            DeptIdentify deptIdentify1 = new DeptIdentify();
1332
-                            deptIdentify1.setIdentifyName(orgnizeName);
1333
-                            deptIdentify1.setOperName(orgnizeNamepsnName);
1334
-                            deptIdentify1.setOperPhone(orgnizeNamePsnAccount);
1335
-                            List<DeptIdentify> deptIdentifies = deptIdentifyMapper.selectDeptIdentify(deptIdentify1);
1336
-                            if (deptIdentifies != null && deptIdentifies.size() > 0) {
1337
-                                Long iddeptIdent = deptIdentifies.get(0).getId();
1338
-                                SealManage sealManage = new SealManage();
1339
-                                sealManage.setIdentifyId(iddeptIdent);
1340
-                                List<String> sealIdList = new ArrayList<>();
1341
-                                List<SealManage> selectSealList = sealManageMapper.selectSealList(sealManage);
1342
-                                if (selectSealList != null && selectSealList.size() > 0) {
1343
-                                    for (SealManage manage : selectSealList) {
1344
-                                        Integer sealStatus = manage.getSealStatus();
1345
-                                        Integer isUse = manage.getIsUse();
1346
-                                        if (sealStatus == 1 && isUse ==1) {
1347
-                                            sealIdList.add(manage.getSealId());
1387
+                                String orgnizeName = sealSignRecord.getOrgnizeName(); //机构名称
1388
+                                String orgnizeNamepsnName = sealSignRecord.getOrgnizeNamepsnName(); //机构经办人姓名
1389
+                                String orgnizeNamePsnAccount = sealSignRecord.getOrgnizeNamePsnAccount(); //机构经办人联系方式
1390
+                                //查询机构信息
1391
+                                DeptIdentify deptIdentify1 = new DeptIdentify();
1392
+                                deptIdentify1.setIdentifyName(orgnizeName);
1393
+                                deptIdentify1.setOperName(orgnizeNamepsnName);
1394
+                                deptIdentify1.setOperPhone(orgnizeNamePsnAccount);
1395
+                                List<DeptIdentify> deptIdentifies = deptIdentifyMapper.selectDeptIdentify(deptIdentify1);
1396
+                                if (deptIdentifies != null && deptIdentifies.size() > 0) {
1397
+                                    Long iddeptIdent = deptIdentifies.get(0).getId();
1398
+                                    SealManage sealManage = new SealManage();
1399
+                                    sealManage.setIdentifyId(iddeptIdent);
1400
+                                    List<String> sealIdList = new ArrayList<>();
1401
+                                    List<SealManage> selectSealList = sealManageMapper.selectSealList(sealManage);
1402
+                                    if (selectSealList != null && selectSealList.size() > 0) {
1403
+                                        for (SealManage manage : selectSealList) {
1404
+                                            Integer sealStatus = manage.getSealStatus();
1405
+                                            Integer isUse = manage.getIsUse();
1406
+                                            if (sealStatus == 1 && isUse ==1) {
1407
+                                                sealIdList.add(manage.getSealId());
1408
+                                            }
1348 1409
                                         }
1349
-                                    }
1350
-                                    EsignHttpResponse response3 = SignAward.createByFileMediation(sealSignRecord, sealIdList);
1351
-
1352
-                                    JSONObject jsonObject3 = JSONObject.parseObject(response3.getBody());
1353
-                                    if (jsonObject3 != null) {
1354
-                                        if (jsonObject3.getIntValue("code") == 0) {
1355
-                                            //获取签署流程ID
1356
-                                            JSONObject data1 = jsonObject3.getJSONObject("data");
1357
-                                            String signFlowId = data1.getString("signFlowId");
1358
-                                            //保存案件id,文件id,文件名称.流程id到签署用印记录表里
1359
-                                            sealSignRecord.setCaseAppliId(caseApplication.getId());
1360
-                                            sealSignRecord.setSignFlowid(signFlowId);
1361
-                                            sealSignRecord.setSignFlowStatus(1);//待签名
1362
-                                            MsSealSignRecord msSealSignRecord = new MsSealSignRecord();
1363
-                                            BeanUtil.copyProperties(sealSignRecord, msSealSignRecord);
1364
-                                            msSealSignRecord.setFileId(sealSignRecord.getFileid());
1365
-                                            msSealSignRecord.setFileName(sealSignRecord.getFilename());
1366
-                                            msSealSignRecord.setSignFlowId(sealSignRecord.getSignFlowid());
1367
-                                            msSealSignRecord.setOrgnNamePsnAcc(sealSignRecord.getOrgnizeNamePsnAccount());
1368
-                                            msSealSignRecord.setOrgnNamePsnName(sealSignRecord.getOrgnizeNamepsnName());
1369
-                                            sealSignRecordMapper.insert(msSealSignRecord);
1370
-
1371
-                                            SealSignRecord sealSignRecordapply = new SealSignRecord();
1372
-                                            sealSignRecordapply.setSignFlowid(signFlowId);
1373
-                                            sealSignRecordapply.setPensonAccount(caseAffiliate.getContactTelphoneAgent());
1374
-                                            EsignHttpResponse signUrl = SignAward.signUrlMediation(sealSignRecordapply);
1375
-                                            JsonObject signUrlJsonObject = gson.fromJson(signUrl.getBody(), JsonObject.class);
1376
-                                            JsonObject signUrlData = signUrlJsonObject.getAsJsonObject("data");
1377
-                                            String urlapply = signUrlData.get("shortUrl").getAsString();
1378
-                                            String urlapplynew = urlapply.substring(urlapply.lastIndexOf("/")+1);
1379
-
1380
-                                            //发送签名链接短信,尊敬的{1}用户,您的{2}调解案件,签名链接{3},请点击链接签名,如非本人操作,请忽略本短信
1381
-                                            SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
1382
-                                            request.setTemplateId("2047719");
1383
-                                            request.setPhone(caseAffiliate.getContactTelphoneAgent());
1384
-                                            request.setTemplateParamSet(new String[]{caseAffiliate.getNameAgent(), caseApplication.getCaseNum(),urlapplynew});
1385
-                                            Boolean aBoolean = SmsUtils.sendSms(request);
1386
-
1387
-                                            SealSignRecord sealSignRecordRespon = new SealSignRecord();
1388
-                                            sealSignRecordRespon.setSignFlowid(signFlowId);
1389
-                                            sealSignRecordRespon.setPensonAccount(caseAffiliate.getRespondentPhone());
1390
-                                            EsignHttpResponse signUrlRespon = SignAward.signUrlMediation(sealSignRecordRespon);
1391
-                                            JsonObject signUrlJsonObjectRespon = gson.fromJson(signUrlRespon.getBody(), JsonObject.class);
1392
-                                            JsonObject signUrlDataRespon = signUrlJsonObjectRespon.getAsJsonObject("data");
1393
-                                            String urlRespon = signUrlDataRespon.get("shortUrl").getAsString();
1394
-                                            String urlResponnew = urlRespon.substring(urlRespon.lastIndexOf("/")+1);
1395
-
1396
-                                            SmsUtils.SendSmsRequest request1 = new SmsUtils.SendSmsRequest();
1397
-                                            request1.setTemplateId("2047719");
1398
-                                            request1.setPhone(caseAffiliate.getRespondentPhone());
1399
-                                            request1.setTemplateParamSet(new String[]{caseAffiliate.getRespondentName(), caseApplication.getCaseNum(),urlResponnew});
1400
-                                            Boolean aBoolean1 = SmsUtils.sendSms(request1);
1401
-
1402
-                                            SealSignRecord sealSignRecordMedi = new SealSignRecord();
1403
-                                            sealSignRecordMedi.setSignFlowid(signFlowId);
1404
-                                            sealSignRecordMedi.setPensonAccount(sealSignRecord.getPensonAccountMedi());
1405
-                                            EsignHttpResponse signUrlResponMedi = SignAward.signUrlMediation(sealSignRecordMedi);
1406
-                                            JsonObject signUrlJsonObjectResponMedi = gson.fromJson(signUrlResponMedi.getBody(), JsonObject.class);
1407
-                                            JsonObject signUrlDataResponMedi = signUrlJsonObjectResponMedi.getAsJsonObject("data");
1408
-                                            String urlResponMedi = signUrlDataResponMedi.get("shortUrl").getAsString();
1409
-                                            String urlResponnewMedi = urlResponMedi.substring(urlResponMedi.lastIndexOf("/")+1);
1410
-
1411
-                                            SmsUtils.SendSmsRequest requestMedi = new SmsUtils.SendSmsRequest();
1412
-                                            requestMedi.setTemplateId("2047719");
1413
-                                            requestMedi.setPhone(sealSignRecord.getPensonAccountMedi());
1414
-                                            requestMedi.setTemplateParamSet(new String[]{sealSignRecord.getPensonNameMedi(), caseApplication.getCaseNum(),urlResponnewMedi});
1415
-                                            Boolean aBooleanMedi = SmsUtils.sendSms(requestMedi);
1410
+                                        EsignHttpResponse response3 = SignAward.createByFileMediation(sealSignRecord, sealIdList);
1411
+
1412
+                                        JSONObject jsonObject3 = JSONObject.parseObject(response3.getBody());
1413
+                                        if (jsonObject3 != null) {
1414
+                                            if (jsonObject3.getIntValue("code") == 0) {
1415
+                                                //获取签署流程ID
1416
+                                                JSONObject data1 = jsonObject3.getJSONObject("data");
1417
+                                                String signFlowId = data1.getString("signFlowId");
1418
+                                                //保存案件id,文件id,文件名称.流程id到签署用印记录表里
1419
+                                                sealSignRecord.setCaseAppliId(caseApplication.getId());
1420
+                                                sealSignRecord.setSignFlowid(signFlowId);
1421
+                                                sealSignRecord.setSignFlowStatus(1);//待签名
1422
+                                                MsSealSignRecord msSealSignRecord = new MsSealSignRecord();
1423
+                                                BeanUtil.copyProperties(sealSignRecord, msSealSignRecord);
1424
+                                                msSealSignRecord.setFileId(sealSignRecord.getFileid());
1425
+                                                msSealSignRecord.setFileName(sealSignRecord.getFilename());
1426
+                                                msSealSignRecord.setSignFlowId(sealSignRecord.getSignFlowid());
1427
+                                                msSealSignRecord.setOrgnNamePsnAcc(sealSignRecord.getOrgnizeNamePsnAccount());
1428
+                                                msSealSignRecord.setOrgnNamePsnName(sealSignRecord.getOrgnizeNamepsnName());
1429
+                                                sealSignRecordMapper.insert(msSealSignRecord);
1430
+
1431
+                                                SealSignRecord sealSignRecordapply = new SealSignRecord();
1432
+                                                sealSignRecordapply.setSignFlowid(signFlowId);
1433
+                                                sealSignRecordapply.setPensonAccount(caseAffiliate.getContactTelphoneAgent());
1434
+                                                EsignHttpResponse signUrl = SignAward.signUrlMediation(sealSignRecordapply);
1435
+                                                JsonObject signUrlJsonObject = gson.fromJson(signUrl.getBody(), JsonObject.class);
1436
+                                                JsonObject signUrlData = signUrlJsonObject.getAsJsonObject("data");
1437
+                                                String urlapply = signUrlData.get("shortUrl").getAsString();
1438
+                                                String urlapplynew = urlapply.substring(urlapply.lastIndexOf("/")+1);
1439
+
1440
+                                                //发送签名链接短信,尊敬的{1}用户,您的{2}调解案件,签名链接{3},请点击链接签名,如非本人操作,请忽略本短信
1441
+                                                SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
1442
+                                                request.setTemplateId("2047719");
1443
+                                                request.setPhone(caseAffiliate.getContactTelphoneAgent());
1444
+                                                request.setTemplateParamSet(new String[]{caseAffiliate.getNameAgent(), caseApplication.getCaseNum(),urlapplynew});
1445
+                                                Boolean aBoolean = SmsUtils.sendSms(request);
1446
+
1447
+                                                SealSignRecord sealSignRecordRespon = new SealSignRecord();
1448
+                                                sealSignRecordRespon.setSignFlowid(signFlowId);
1449
+                                                sealSignRecordRespon.setPensonAccount(caseAffiliate.getRespondentPhone());
1450
+                                                EsignHttpResponse signUrlRespon = SignAward.signUrlMediation(sealSignRecordRespon);
1451
+                                                JsonObject signUrlJsonObjectRespon = gson.fromJson(signUrlRespon.getBody(), JsonObject.class);
1452
+                                                JsonObject signUrlDataRespon = signUrlJsonObjectRespon.getAsJsonObject("data");
1453
+                                                String urlRespon = signUrlDataRespon.get("shortUrl").getAsString();
1454
+                                                String urlResponnew = urlRespon.substring(urlRespon.lastIndexOf("/")+1);
1455
+
1456
+                                                SmsUtils.SendSmsRequest request1 = new SmsUtils.SendSmsRequest();
1457
+                                                request1.setTemplateId("2047719");
1458
+                                                request1.setPhone(caseAffiliate.getRespondentPhone());
1459
+                                                request1.setTemplateParamSet(new String[]{caseAffiliate.getRespondentName(), caseApplication.getCaseNum(),urlResponnew});
1460
+                                                Boolean aBoolean1 = SmsUtils.sendSms(request1);
1461
+
1462
+                                                SealSignRecord sealSignRecordMedi = new SealSignRecord();
1463
+                                                sealSignRecordMedi.setSignFlowid(signFlowId);
1464
+                                                sealSignRecordMedi.setPensonAccount(sealSignRecord.getPensonAccountMedi());
1465
+                                                EsignHttpResponse signUrlResponMedi = SignAward.signUrlMediation(sealSignRecordMedi);
1466
+                                                JsonObject signUrlJsonObjectResponMedi = gson.fromJson(signUrlResponMedi.getBody(), JsonObject.class);
1467
+                                                JsonObject signUrlDataResponMedi = signUrlJsonObjectResponMedi.getAsJsonObject("data");
1468
+                                                String urlResponMedi = signUrlDataResponMedi.get("shortUrl").getAsString();
1469
+                                                String urlResponnewMedi = urlResponMedi.substring(urlResponMedi.lastIndexOf("/")+1);
1470
+
1471
+                                                SmsUtils.SendSmsRequest requestMedi = new SmsUtils.SendSmsRequest();
1472
+                                                requestMedi.setTemplateId("2047719");
1473
+                                                requestMedi.setPhone(sealSignRecord.getPensonAccountMedi());
1474
+                                                requestMedi.setTemplateParamSet(new String[]{sealSignRecord.getPensonNameMedi(), caseApplication.getCaseNum(),urlResponnewMedi});
1475
+                                                Boolean aBooleanMedi = SmsUtils.sendSms(requestMedi);
1416 1476
 
1477
+                                            } else {
1478
+                                                throw new ServiceException(jsonObject3.getString("message"));
1479
+                                            }
1417 1480
                                         } else {
1418
-                                            throw new ServiceException(jsonObject3.getString("message"));
1481
+                                            return AjaxResult.error();
1419 1482
                                         }
1420
-                                    } else {
1421
-                                        return AjaxResult.error();
1422 1483
                                     }
1484
+                                } else {
1485
+                                    return AjaxResult.error();
1423 1486
                                 }
1424
-                            } else {
1425
-                                return AjaxResult.error();
1426 1487
                             }
1488
+
1489
+
1427 1490
                         }else {
1428 1491
                             return AjaxResult.error();
1429 1492
                         }

+ 121
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/SignAward.java Parādīt failu

@@ -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 Parādīt failu

@@ -37,6 +37,7 @@
37 37
     <result column="mediation_url" jdbcType="LONGVARCHAR" property="mediationUrl" />
38 38
     <result column="adjudica_counter_reason" jdbcType="LONGVARCHAR" property="adjudicaCounterReason" />
39 39
     <result column="mediation_agreement" jdbcType="LONGVARCHAR" property="mediationAgreement" />
40
+    <result column="is_reconci" jdbcType="INTEGER" property="isReconci" />
40 41
   </resultMap>
41 42
 
42 43
   <select id="listMediator" resultMap="BaseResultMap">