Просмотр исходного кода

Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Backend into wq1

18792927508 2 лет назад
Родитель
Сommit
6f8879c5d1

+ 21
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/entity/dept/MsSealSignRecord.java Просмотреть файл

@@ -144,6 +144,27 @@ public class MsSealSignRecord {
144 144
     @Column(name = "position_ypsn_medi")
145 145
     private double positionYpsnMedi;
146 146
 
147
+    /**
148
+     * 申请人签名状态
149
+     */
150
+    @Column(name = "sign_status_apply")
151
+    private Integer signStatusApply;
152
+    /**
153
+     * 被申请人签名状态
154
+     */
155
+    @Column(name = "sign_status_response")
156
+    private Integer signStatusResponse;
157
+    /**
158
+     * 调解员签名状态
159
+     */
160
+    @Column(name = "sign_status_mediator")
161
+    private Integer signStatusMediator;
162
+    /**
163
+     * 用印状态
164
+     */
165
+    @Column(name = "seal_status")
166
+    private Integer sealStatus;
167
+
147 168
 
148 169
 
149 170
 }

+ 15
- 6
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCaseApplicationServiceImpl.java Просмотреть файл

@@ -2485,11 +2485,9 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
2485 2485
                         CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"");
2486 2486
                         application.setCaseFlowId(caseFlow.getId());
2487 2487
                         application.setCaseStatusName(caseFlow.getCaseStatusName());
2488
+                        application.setMediaResult(mediaResult);
2488 2489
                         msCaseApplicationMapper.updateByPrimaryKey(application);
2489 2490
                     }
2490
-
2491
-                    application.setMediaResult(mediaResult);
2492
-                    msCaseApplicationMapper.updateByPrimaryKeySelective(application);
2493 2491
                     return AjaxResult.success();
2494 2492
                 }else if(mediaResult.intValue()==3){
2495 2493
                     //未达成调解但不再争议
@@ -2500,14 +2498,12 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
2500 2498
                     if(caseFlow != null){
2501 2499
                         application.setCaseFlowId(caseFlow.getId());
2502 2500
                         application.setCaseStatusName(caseFlow.getCaseStatusName());
2501
+                        application.setMediaResult(mediaResult);
2503 2502
                         msCaseApplicationMapper.updateByPrimaryKey(application);
2504 2503
                         // 新增日志
2505 2504
                         CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"");
2506 2505
 
2507 2506
                     }
2508
-
2509
-                    application.setMediaResult(mediaResult);
2510
-                    msCaseApplicationMapper.updateByPrimaryKeySelective(application);
2511 2507
                     return AjaxResult.success();
2512 2508
                 }else if(mediaResult.intValue()==4){
2513 2509
                     //未达成调解但同意引入仲裁
@@ -2532,6 +2528,19 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
2532 2528
                             .header("signstr", signStr)
2533 2529
                             .body(paramsbody)
2534 2530
                             .execute();
2531
+                    // 修改案件状态为结束
2532
+                    Example flowExample = new Example(MsCaseFlow.class);
2533
+                    flowExample.createCriteria().andEqualTo("caseStatusName", "结束");
2534
+                    MsCaseFlow caseFlow = caseFlowMapper.selectOneByExample(flowExample);
2535
+                    if(caseFlow != null){
2536
+                        // 新增日志
2537
+                        CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"");
2538
+                        application.setCaseFlowId(caseFlow.getId());
2539
+                        application.setCaseStatusName(caseFlow.getCaseStatusName());
2540
+                        application.setMediaResult(mediaResult);
2541
+                        msCaseApplicationMapper.updateByPrimaryKey(application);
2542
+                    }
2543
+
2535 2544
                     return AjaxResult.success();
2536 2545
                 }else if(mediaResult.intValue()==5){
2537 2546
                     // 达成和解

+ 4
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/dept/MsSealSignRecordMapper.xml Просмотреть файл

@@ -23,6 +23,10 @@
23 23
     <result column="position_xorg" jdbcType="DOUBLE" property="positionXorg" />
24 24
     <result column="position_yorg" jdbcType="DOUBLE" property="positionYorg" />
25 25
     <result column="file_download_url" jdbcType="LONGVARCHAR" property="fileDownloadUrl" />
26
+    <result column="sign_status_apply" jdbcType="INTEGER" property="signStatusApply" />
27
+    <result column="sign_status_response" jdbcType="INTEGER" property="signStatusResponse" />
28
+    <result column="sign_status_mediator" jdbcType="INTEGER" property="signStatusMediator" />
29
+    <result column="seal_status" jdbcType="INTEGER" property="sealStatus" />
26 30
   </resultMap>
27 31
 
28 32