Przeglądaj źródła

审核裁决书功能

qitz 2 lat temu
rodzic
commit
ada0e3740a

+ 11
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java Wyświetl plik

170
         return toAjax(caseApplicationService.verificationArbitrateRecord(caseApplication));
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 Wyświetl plik

26
     /** 仲裁方式 */
26
     /** 仲裁方式 */
27
     private int arbitratMethod;
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
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
40
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
32
     private Date hearDate;
41
     private Date hearDate;
81
     private int openCourtHear;
90
     private int openCourtHear;
82
     /** 案件状态名称 */
91
     /** 案件状态名称 */
83
     private String caseStatusName;
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
     public String getCaseStatusName() {
104
     public String getCaseStatusName() {
86
         return caseStatusName;
105
         return caseStatusName;
403
         this.arbitratMethod = arbitratMethod;
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
     public Date getHearDate() {
427
     public Date getHearDate() {
415
         return hearDate;
428
         return hearDate;

+ 2
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseApplicationService.java Wyświetl plik

31
     int pendTralSure(CaseApplication caseApplication);
31
     int pendTralSure(CaseApplication caseApplication);
32
 
32
 
33
     int verificationArbitrateRecord(CaseApplication caseApplication);
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 Wyświetl plik

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
     @Override
290
     @Override
273
     @Transactional
291
     @Transactional
274
     public int pendTralSure(CaseApplication caseApplication) {
292
     public int pendTralSure(CaseApplication caseApplication) {