Kaynağa Gözat

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

hejinbo 2 yıl önce
ebeveyn
işleme
34867898b9

+ 11
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java Dosyayı Görüntüle

@@ -170,6 +170,17 @@ public class CaseApplicationController  extends BaseController {
170 170
         return toAjax(caseApplicationService.verificationArbitrateRecord(caseApplication));
171 171
     }
172 172
 
173
+    /**
174
+     * 审核裁决书
175
+     */
176
+    @PreAuthorize("@ss.hasPermi('caseApplication:checkArbitrateRecord')")
177
+    @Log(title = "审核裁决书", businessType = BusinessType.UPDATE)
178
+    @PostMapping("/checkArbitrateRecord")
179
+    public AjaxResult checkArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication)
180
+    {
181
+        return toAjax(caseApplicationService.checkArbitrateRecord(caseApplication));
182
+    }
183
+
173 184
 
174 185
 
175 186
     /**

+ 20
- 7
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java Dosyayı Görüntüle

@@ -26,7 +26,16 @@ public class CaseApplication  extends BaseEntity {
26 26
     /** 仲裁方式 */
27 27
     private int arbitratMethod;
28 28
     /** 案件状态 */
29
-    private int caseStatus;
29
+    private Integer caseStatus;
30
+
31
+    public Integer getCaseStatus() {
32
+        return caseStatus;
33
+    }
34
+
35
+    public void setCaseStatus(Integer caseStatus) {
36
+        this.caseStatus = caseStatus;
37
+    }
38
+
30 39
     /** 开庭日期 */
31 40
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
32 41
     private Date hearDate;
@@ -81,6 +90,16 @@ public class CaseApplication  extends BaseEntity {
81 90
     private int openCourtHear;
82 91
     /** 案件状态名称 */
83 92
     private String caseStatusName;
93
+    /** 是否同意审核 */
94
+    private Integer agreeOrNotCheck;
95
+
96
+    public Integer getAgreeOrNotCheck() {
97
+        return agreeOrNotCheck;
98
+    }
99
+
100
+    public void setAgreeOrNotCheck(Integer agreeOrNotCheck) {
101
+        this.agreeOrNotCheck = agreeOrNotCheck;
102
+    }
84 103
 
85 104
     public String getCaseStatusName() {
86 105
         return caseStatusName;
@@ -403,13 +422,7 @@ public class CaseApplication  extends BaseEntity {
403 422
         this.arbitratMethod = arbitratMethod;
404 423
     }
405 424
 
406
-    public int getCaseStatus() {
407
-        return caseStatus;
408
-    }
409 425
 
410
-    public void setCaseStatus(int caseStatus) {
411
-        this.caseStatus = caseStatus;
412
-    }
413 426
 
414 427
     public Date getHearDate() {
415 428
         return hearDate;

+ 2
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseApplicationService.java Dosyayı Görüntüle

@@ -31,4 +31,6 @@ public interface ICaseApplicationService {
31 31
     int pendTralSure(CaseApplication caseApplication);
32 32
 
33 33
     int verificationArbitrateRecord(CaseApplication caseApplication);
34
+
35
+    int checkArbitrateRecord(CaseApplication caseApplication);
34 36
 }

+ 18
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Dosyayı Görüntüle

@@ -269,6 +269,24 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
269 269
 
270 270
     }
271 271
 
272
+    @Override
273
+    @Transactional
274
+    public int checkArbitrateRecord(CaseApplication caseApplication) {
275
+        int rows = 0;
276
+        ArbitrateRecord arbitrateRecord = caseApplication.getArbitrateRecord();
277
+        arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord);
278
+        Integer agreeOrNotCheck = caseApplication.getAgreeOrNotCheck();
279
+        if(agreeOrNotCheck.intValue()==1){//同意审核
280
+            caseApplication.setCaseStatus(CaseApplicationConstants.SIGN_ARBITRATION);
281
+            rows = caseApplicationMapper.submitCaseApplication(caseApplication);
282
+        }else if(agreeOrNotCheck.intValue()==2){//拒绝审核
283
+            caseApplication.setCaseStatus(CaseApplicationConstants.VERPRIF_ARBITRATION);
284
+            rows = caseApplicationMapper.submitCaseApplication(caseApplication);
285
+        }
286
+
287
+        return rows;
288
+    }
289
+
272 290
     @Override
273 291
     @Transactional
274 292
     public int pendTralSure(CaseApplication caseApplication) {