18792927508 vor 2 Jahren
Ursprung
Commit
533ce8d465

+ 1
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseEvidenceServiceImpl.java Datei anzeigen

@@ -119,12 +119,12 @@ public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
119 119
                     caseApplication.setCaseStatus(4);
120 120
                     caseApplicationMapper.submitCaseApplication(caseApplication);
121 121
                 }
122
+            }
122 123
                 CaseAttach caseAttachselect = new CaseAttach();
123 124
                 caseAttachselect.setAnnexId(caseAttach.getAnnexId());
124 125
                 caseAttachselect.setAnnexName(caseAttach.getAnnexName());
125 126
                 caseAttachselect.setAnnexType(caseAttach.getAnnexType());
126 127
                 return AjaxResult.success("上传成功", caseAttachselect);
127
-            }
128 128
         } catch (IOException e) {
129 129
             e.printStackTrace();
130 130
         }

+ 13
- 4
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CasePaymentServiceImpl.java Datei anzeigen

@@ -185,11 +185,20 @@ public class CasePaymentServiceImpl implements ICasePaymentService {
185 185
         CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
186 186
         caseApplication1.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT_CONFIRM);
187 187
         //修改案件状态
188
-        caseApplicationMapper.submitCaseApplication(caseApplication1);
189
-        // 新增日志
190
-        CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.PENDING_PAYMENT_CONFIRM,"");
188
+        int i = caseApplicationMapper.submitCaseApplication(caseApplication1);
189
+        if(i>0) {
190
+            // 修改支付状态
191
+            CasePaymentRecord paymentRecord = new CasePaymentRecord();
192
+            paymentRecord.setPayType(payDTO.getPayType());
193
+            paymentRecord.setCaseId(payDTO.getCaseId());
194
+            paymentRecord.setPaymentStatus(1);
195
+            casePaymentRecordMapper.saveRecord(paymentRecord);
196
+            // 新增日志
197
+            CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.PENDING_PAYMENT_CONFIRM, "");
191 198
 
192
-        return AjaxResult.success("确认缴费成功");
199
+            return AjaxResult.success("确认缴费成功");
200
+        }
201
+        return AjaxResult.success("确认缴费失败");
193 202
     }
194 203
 
195 204
 

+ 3
- 1
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml Datei anzeigen

@@ -7,6 +7,7 @@
7 7
     <resultMap type="CaseApplication" id="CaseApplicationResult">
8 8
         <id     property="id"       column="id"      />
9 9
         <result property="caseNum"       column="case_num"      />
10
+        <result property="caseName"       column="case_name"      />
10 11
         <result property="caseSubjectAmount"     column="case_subject_amount"    />
11 12
         <result property="registerDate"     column="register_date"    />
12 13
         <result property="arbitratMethod"        column="arbitrat_method"        />
@@ -516,6 +517,7 @@
516 517
         CASE c.arbitrat_method when 1 then '开庭审理' when 2 then '书面审理'
517 518
         ELSE '无审理方式'
518 519
         END arbitratMethodName,
520
+         c.case_name,
519 521
         c.case_status ,
520 522
         CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
521 523
         when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
@@ -596,7 +598,7 @@ order by c.create_time desc limit 1
596 598
                CASE c.pay_type when 0 then '线上支付' when 0 then '线下支付' else '' end payTypeName
597 599
         from case_application c left join case_payment_record p on c.id  = p.case_id
598 600
         where c.case_status  = 3
599
-          AND c.id = #{id} and p.payment_status=1
601
+          AND c.id = #{id} and p.payment_status=1 limit 1
600 602
 
601 603
     </select>
602 604
     <select id="selectCaseNumLike" resultType="java.lang.Integer">