Przeglądaj źródła

修改案件列表功能

qitz 2 lat temu
rodzic
commit
441dc6f8db

+ 48
- 33
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java Wyświetl plik

@@ -24,7 +24,26 @@ public class CaseApplication  extends BaseEntity {
24 24
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
25 25
     private Date registerDate;
26 26
     /** 仲裁方式 */
27
-    private int arbitratMethod;
27
+    private Integer arbitratMethod;
28
+
29
+    public Integer getArbitratMethod() {
30
+        return arbitratMethod;
31
+    }
32
+
33
+    public void setArbitratMethod(Integer arbitratMethod) {
34
+        this.arbitratMethod = arbitratMethod;
35
+    }
36
+    /** 仲裁方式名称 */
37
+    private String arbitratMethodName;
38
+
39
+    public String getArbitratMethodName() {
40
+        return arbitratMethodName;
41
+    }
42
+
43
+    public void setArbitratMethodName(String arbitratMethodName) {
44
+        this.arbitratMethodName = arbitratMethodName;
45
+    }
46
+
28 47
     /** 案件状态 */
29 48
     private Integer caseStatus;
30 49
 
@@ -82,12 +101,37 @@ public class CaseApplication  extends BaseEntity {
82 101
     private String caseDescribe;
83 102
 
84 103
     /** 是否同意组庭 */
85
-    private int isAgreePendTral;
104
+    private Integer isAgreePendTral;
86 105
 
87 106
     /** 是否有异议需要举证 */
88
-    private int objectionAddEviden;
107
+    private Integer objectionAddEviden;
89 108
     /** 是否需要开庭审理 */
90
-    private int openCourtHear;
109
+    private Integer openCourtHear;
110
+
111
+    public Integer getIsAgreePendTral() {
112
+        return isAgreePendTral;
113
+    }
114
+
115
+    public void setIsAgreePendTral(Integer isAgreePendTral) {
116
+        this.isAgreePendTral = isAgreePendTral;
117
+    }
118
+
119
+    public Integer getObjectionAddEviden() {
120
+        return objectionAddEviden;
121
+    }
122
+
123
+    public void setObjectionAddEviden(Integer objectionAddEviden) {
124
+        this.objectionAddEviden = objectionAddEviden;
125
+    }
126
+
127
+    public Integer getOpenCourtHear() {
128
+        return openCourtHear;
129
+    }
130
+
131
+    public void setOpenCourtHear(Integer openCourtHear) {
132
+        this.openCourtHear = openCourtHear;
133
+    }
134
+
91 135
     /** 案件状态名称 */
92 136
     private String caseStatusName;
93 137
     /** 是否同意审核 */
@@ -130,29 +174,7 @@ public class CaseApplication  extends BaseEntity {
130 174
         this.respondentName = respondentName;
131 175
     }
132 176
 
133
-    public int getObjectionAddEviden() {
134
-        return objectionAddEviden;
135
-    }
136 177
 
137
-    public void setObjectionAddEviden(int objectionAddEviden) {
138
-        this.objectionAddEviden = objectionAddEviden;
139
-    }
140
-
141
-    public int getOpenCourtHear() {
142
-        return openCourtHear;
143
-    }
144
-
145
-    public void setOpenCourtHear(int openCourtHear) {
146
-        this.openCourtHear = openCourtHear;
147
-    }
148
-
149
-    public int getIsAgreePendTral() {
150
-        return isAgreePendTral;
151
-    }
152
-
153
-    public void setIsAgreePendTral(int isAgreePendTral) {
154
-        this.isAgreePendTral = isAgreePendTral;
155
-    }
156 178
 
157 179
     public String getCaseName() {
158 180
         return caseName;
@@ -414,13 +436,6 @@ public class CaseApplication  extends BaseEntity {
414 436
         this.registerDate = registerDate;
415 437
     }
416 438
 
417
-    public int getArbitratMethod() {
418
-        return arbitratMethod;
419
-    }
420
-
421
-    public void setArbitratMethod(int arbitratMethod) {
422
-        this.arbitratMethod = arbitratMethod;
423
-    }
424 439
 
425 440
 
426 441
 

+ 7
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Wyświetl plik

@@ -20,6 +20,7 @@ import org.springframework.stereotype.Service;
20 20
 import org.springframework.transaction.annotation.Transactional;
21 21
 
22 22
 import java.lang.reflect.Field;
23
+import java.math.BigDecimal;
23 24
 import java.text.SimpleDateFormat;
24 25
 import java.util.*;
25 26
 import java.util.stream.Collectors;
@@ -53,6 +54,12 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
53 54
     public int insertcaseApplication(CaseApplication caseApplication) {
54 55
         // 新增立案信息
55 56
         caseApplication.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
57
+        //根据仲裁费用计费规则计算应缴费用
58
+        //暂时设置计费比率为0.01
59
+        BigDecimal feeRate = new BigDecimal(0.01);
60
+        BigDecimal feePayable  = caseApplication.getCaseSubjectAmount().multiply(feeRate).setScale(2,BigDecimal.ROUND_HALF_UP);
61
+        caseApplication.setFeePayable(feePayable);
62
+
56 63
         int rows = caseApplicationMapper.insertCaseApplication(caseApplication);
57 64
         List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
58 65
         if(caseAffiliates!=null&&caseAffiliates.size()>0){

+ 25
- 3
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml Wyświetl plik

@@ -28,12 +28,20 @@
28 28
         <result property="createTime"   column="create_time"  />
29 29
         <result property="updateBy"     column="update_by"    />
30 30
         <result property="updateTime"   column="update_time"  />
31
+        <result property="arbitratMethodName"   column="arbitratMethodName"  />
32
+
33
+        <result property="arbitratorId"   column="arbitrator_id"  />
34
+        <result property="arbitratorName"   column="arbitrator_name"  />
31 35
     </resultMap>
32 36
 
33 37
 
34 38
 
35 39
     <select id="selectCaseApplicationList" parameterType="CaseApplication" resultMap="CaseApplicationResult">
36
-        select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,c.case_status ,
40
+        select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,
41
+        CASE c.arbitrat_method when 1 then '开庭审理' when 2 then '书面审理'
42
+            ELSE '无审理方式'
43
+            END arbitratMethodName,
44
+        c.case_status ,
37 45
         CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
38 46
                             when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
39 47
                             when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
@@ -61,6 +69,7 @@
61 69
                 </foreach>
62 70
             </if>
63 71
         </where>
72
+        order by c.create_time desc
64 73
     </select>
65 74
 
66 75
     <select id="selectCaseApplicationCount" parameterType="CaseApplication" resultType="int">
@@ -173,10 +182,23 @@
173 182
     </delete>
174 183
 
175 184
     <select id="selectCaseApplication" parameterType="CaseApplication" resultMap="CaseApplicationResult">
176
-        select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,c.case_status ,c.hear_date ,c.arbitrat_claims ,
185
+        select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,
186
+        CASE c.arbitrat_method when 1 then '开庭审理' when 2 then '书面审理'
187
+            ELSE '无审理方式'
188
+            END arbitratMethodName,
189
+        c.case_status ,
190
+        CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
191
+        when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
192
+        when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
193
+        when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
194
+        when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
195
+        when 15 then '待仲裁文书送达' when 16 then '待案件归档'
196
+        ELSE '无案件状态'
197
+        END caseStatusName,
198
+        c.hear_date ,c.arbitrat_claims ,
177 199
         c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
178 200
         c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
179
-        c.update_by ,c.update_time
201
+        c.update_by ,c.update_time,c.arbitrator_id,c.arbitrator_name
180 202
         from case_application c
181 203
         <where>
182 204
             <if test="id != null ">