Parcourir la source

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

qtz il y a 2 ans
Parent
révision
b8290279fc

+ 14
- 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java Voir le fichier

@@ -72,10 +72,10 @@ public class CaseApplicationController  extends BaseController {
72 72
     }
73 73
 
74 74
     /**
75
-     * 提交立案数据
75
+     * 提交立案申请
76 76
      */
77 77
     @PreAuthorize("@ss.hasPermi('caseApplication:submit')")
78
-    @Log(title = "提交立案数据", businessType = BusinessType.UPDATE)
78
+    @Log(title = "提交立案申请", businessType = BusinessType.UPDATE)
79 79
     @PostMapping("/submitCaseApplication")
80 80
     public AjaxResult submitCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
81 81
     {
@@ -194,6 +194,18 @@ public class CaseApplicationController  extends BaseController {
194 194
         return toAjax(caseApplicationService.pendingAppointArbotrar(caseApplication));
195 195
     }
196 196
 
197
+    /**
198
+     * 提交立案审查
199
+     */
200
+    @PreAuthorize("@ss.hasPermi('caseApplication:submitCaseApplicationCheck')")
201
+    @Log(title = "提交立案审查", businessType = BusinessType.UPDATE)
202
+    @PostMapping("/submitCaseApplicationCheck")
203
+    public AjaxResult submitCaseApplicationCheck(@Validated @RequestBody CaseApplication caseApplication)
204
+    {
205
+
206
+        return toAjax(caseApplicationService.submitCaseApplicationCheck(caseApplication));
207
+    }
208
+
197 209
 
198 210
 
199 211
 

+ 2
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseApplicationService.java Voir le fichier

@@ -33,4 +33,6 @@ public interface ICaseApplicationService {
33 33
     int verificationArbitrateRecord(CaseApplication caseApplication);
34 34
 
35 35
     int checkArbitrateRecord(CaseApplication caseApplication);
36
+
37
+    int submitCaseApplicationCheck(CaseApplication caseApplication);
36 38
 }

+ 17
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Voir le fichier

@@ -88,7 +88,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
88 88
     @Transactional
89 89
     public int submitCaseApplication(CaseApplication caseApplication) {
90 90
         //提交立案申请
91
-        caseApplication.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT);
91
+        caseApplication.setCaseStatus(CaseApplicationConstants.CASE_CHECK);
92 92
         int rows = caseApplicationMapper.submitCaseApplication(caseApplication);
93 93
         return rows;
94 94
     }
@@ -287,6 +287,22 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
287 287
         return rows;
288 288
     }
289 289
 
290
+    @Override
291
+    @Transactional
292
+    public int submitCaseApplicationCheck(CaseApplication caseApplication) {
293
+        //提交立案审查
294
+        int rows = 0;
295
+        Integer agreeOrNotCheck = caseApplication.getAgreeOrNotCheck();
296
+        if(agreeOrNotCheck.intValue()==1){//同意审核
297
+            caseApplication.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT);
298
+            rows = caseApplicationMapper.submitCaseApplication(caseApplication);
299
+        }else if(agreeOrNotCheck.intValue()==2){//拒绝审核
300
+            caseApplication.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
301
+            rows = caseApplicationMapper.submitCaseApplication(caseApplication);
302
+        }
303
+        return rows;
304
+    }
305
+
290 306
     @Override
291 307
     @Transactional
292 308
     public int pendTralSure(CaseApplication caseApplication) {

+ 0
- 1
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml Voir le fichier

@@ -110,7 +110,6 @@
110 110
         <if test="claimInterestOwed != null ">#{claimInterestOwed},</if>
111 111
         <if test="claimLiquidDamag != null ">#{claimLiquidDamag},</if>
112 112
         <if test="feePayable != null ">#{feePayable},</if>
113
-        <if test="paidExpenses != null ">#{paidExpenses},</if>
114 113
         <if test="beginVideoDate != null ">#{beginVideoDate},</if>
115 114
         <if test="onlineVideoPerson != null  and onlineVideoPerson != ''">#{onlineVideoPerson},</if>
116 115