Bläddra i källkod

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

qtz 2 år sedan
förälder
incheckning
672e85fe22

+ 10
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java Visa fil

@@ -206,6 +206,16 @@ public class CaseApplicationController  extends BaseController {
206 206
         return toAjax(caseApplicationService.submitCaseApplicationCheck(caseApplication));
207 207
     }
208 208
 
209
+    /**
210
+     * 确认缴费查询立案信息
211
+     */
212
+    @PostMapping("/selectCaseApplicationConfirm")
213
+    public AjaxResult selectCaseApplicationConfirm(@Validated @RequestBody CaseApplication caseApplication)
214
+    {
215
+        CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplicationConfirm(caseApplication);
216
+        return success(caseApplicationselect);
217
+    }
218
+
209 219
 
210 220
 
211 221
 

+ 21
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java Visa fil

@@ -108,6 +108,27 @@ public class CaseApplication  extends BaseEntity {
108 108
     /** 是否需要开庭审理 */
109 109
     private Integer openCourtHear;
110 110
 
111
+    /** 支付状态 */
112
+    private Integer paymentStatus;
113
+    /** 支付状态描述 */
114
+    private String paymentStatusName;
115
+
116
+    public Integer getPaymentStatus() {
117
+        return paymentStatus;
118
+    }
119
+
120
+    public void setPaymentStatus(Integer paymentStatus) {
121
+        this.paymentStatus = paymentStatus;
122
+    }
123
+
124
+    public String getPaymentStatusName() {
125
+        return paymentStatusName;
126
+    }
127
+
128
+    public void setPaymentStatusName(String paymentStatusName) {
129
+        this.paymentStatusName = paymentStatusName;
130
+    }
131
+
111 132
     public Integer getIsAgreePendTral() {
112 133
         return isAgreePendTral;
113 134
     }

+ 2
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseApplicationMapper.java Visa fil

@@ -20,4 +20,6 @@ public interface CaseApplicationMapper {
20 20
     int deletecaseApplication(CaseApplication caseApplication);
21 21
 
22 22
     CaseApplication selectCaseApplication(CaseApplication caseApplication);
23
+
24
+    CaseApplication selectCaseApplicationConfirm(CaseApplication caseApplication);
23 25
 }

+ 2
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseApplicationService.java Visa fil

@@ -35,4 +35,6 @@ public interface ICaseApplicationService {
35 35
     int checkArbitrateRecord(CaseApplication caseApplication);
36 36
 
37 37
     int submitCaseApplicationCheck(CaseApplication caseApplication);
38
+
39
+    CaseApplication selectCaseApplicationConfirm(CaseApplication caseApplication);
38 40
 }

+ 7
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Visa fil

@@ -310,6 +310,13 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
310 310
         return rows;
311 311
     }
312 312
 
313
+    @Override
314
+    public CaseApplication selectCaseApplicationConfirm(CaseApplication caseApplication) {
315
+        CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplicationConfirm(caseApplication);
316
+
317
+        return caseApplicationselect;
318
+    }
319
+
313 320
     @Override
314 321
     @Transactional
315 322
     public int pendTralSure(CaseApplication caseApplication) {

+ 31
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml Visa fil

@@ -32,6 +32,8 @@
32 32
 
33 33
         <result property="arbitratorId"   column="arbitrator_id"  />
34 34
         <result property="arbitratorName"   column="arbitrator_name"  />
35
+        <result property="paymentStatus"   column="payment_status"  />
36
+        <result property="paymentStatusName"   column="paymentStatusName"  />
35 37
     </resultMap>
36 38
 
37 39
 
@@ -153,6 +155,7 @@
153 155
             <if test="caseStatus != null">case_status = #{caseStatus},</if>
154 156
 
155 157
             <if test="updateBy != null  and updateBy != ''">update_by = #{updateBy},</if>
158
+            <if test="caseNum != null and caseNum != ''">case_num = #{caseNum},</if>
156 159
             update_time = sysdate()
157 160
         </set>
158 161
         where id = #{id}
@@ -207,6 +210,34 @@
207 210
         </where>
208 211
     </select>
209 212
 
213
+    <select id="selectCaseApplicationConfirm" parameterType="CaseApplication" resultMap="CaseApplicationResult">
214
+        select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,
215
+        CASE c.arbitrat_method when 1 then '开庭审理' when 2 then '书面审理'
216
+        ELSE '无审理方式'
217
+        END arbitratMethodName,
218
+        c.case_status ,
219
+        CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
220
+        when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
221
+        when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
222
+        when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
223
+        when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
224
+        when 15 then '待仲裁文书送达' when 16 then '待案件归档'
225
+        ELSE '无案件状态'
226
+        END caseStatusName,
227
+        c.hear_date ,c.arbitrat_claims ,
228
+        c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
229
+        c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
230
+        c.update_by ,c.update_time,c.arbitrator_id,c.arbitrator_name,
231
+        p.payment_status ,
232
+        CASE p.payment_status when 1 then '已支付' when 0 then '未支付'
233
+        ELSE '无支付状态'
234
+        END paymentStatusName
235
+        from case_application c left join case_payment_record p on c.id  = p.case_id
236
+        where c.case_status  = 3 and p.payment_status  = 1
237
+            AND c.id = #{id}
238
+
239
+    </select>
240
+
210 241
 
211 242
 
212 243