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

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

qtz 2 лет назад
Родитель
Сommit
b8290279fc

+ 14
- 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java Просмотреть файл

72
     }
72
     }
73
 
73
 
74
     /**
74
     /**
75
-     * 提交立案数据
75
+     * 提交立案申请
76
      */
76
      */
77
     @PreAuthorize("@ss.hasPermi('caseApplication:submit')")
77
     @PreAuthorize("@ss.hasPermi('caseApplication:submit')")
78
-    @Log(title = "提交立案数据", businessType = BusinessType.UPDATE)
78
+    @Log(title = "提交立案申请", businessType = BusinessType.UPDATE)
79
     @PostMapping("/submitCaseApplication")
79
     @PostMapping("/submitCaseApplication")
80
     public AjaxResult submitCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
80
     public AjaxResult submitCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
81
     {
81
     {
194
         return toAjax(caseApplicationService.pendingAppointArbotrar(caseApplication));
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 Просмотреть файл

33
     int verificationArbitrateRecord(CaseApplication caseApplication);
33
     int verificationArbitrateRecord(CaseApplication caseApplication);
34
 
34
 
35
     int checkArbitrateRecord(CaseApplication caseApplication);
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 Просмотреть файл

88
     @Transactional
88
     @Transactional
89
     public int submitCaseApplication(CaseApplication caseApplication) {
89
     public int submitCaseApplication(CaseApplication caseApplication) {
90
         //提交立案申请
90
         //提交立案申请
91
-        caseApplication.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT);
91
+        caseApplication.setCaseStatus(CaseApplicationConstants.CASE_CHECK);
92
         int rows = caseApplicationMapper.submitCaseApplication(caseApplication);
92
         int rows = caseApplicationMapper.submitCaseApplication(caseApplication);
93
         return rows;
93
         return rows;
94
     }
94
     }
287
         return rows;
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
     @Override
306
     @Override
291
     @Transactional
307
     @Transactional
292
     public int pendTralSure(CaseApplication caseApplication) {
308
     public int pendTralSure(CaseApplication caseApplication) {

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

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