Przeglądaj źródła

Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Arbitrate-Backend into hjb

hejinbo 2 lat temu
rodzic
commit
5a0d1dbe0b

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

24
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
24
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
25
     private Date registerDate;
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
     private Integer caseStatus;
48
     private Integer caseStatus;
30
 
49
 
82
     private String caseDescribe;
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
     private String caseStatusName;
136
     private String caseStatusName;
93
     /** 是否同意审核 */
137
     /** 是否同意审核 */
130
         this.respondentName = respondentName;
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
     public String getCaseName() {
179
     public String getCaseName() {
158
         return caseName;
180
         return caseName;
414
         this.registerDate = registerDate;
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
 import org.springframework.transaction.annotation.Transactional;
20
 import org.springframework.transaction.annotation.Transactional;
21
 
21
 
22
 import java.lang.reflect.Field;
22
 import java.lang.reflect.Field;
23
+import java.math.BigDecimal;
23
 import java.text.SimpleDateFormat;
24
 import java.text.SimpleDateFormat;
24
 import java.util.*;
25
 import java.util.*;
25
 import java.util.stream.Collectors;
26
 import java.util.stream.Collectors;
53
     public int insertcaseApplication(CaseApplication caseApplication) {
54
     public int insertcaseApplication(CaseApplication caseApplication) {
54
         // 新增立案信息
55
         // 新增立案信息
55
         caseApplication.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
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
         int rows = caseApplicationMapper.insertCaseApplication(caseApplication);
63
         int rows = caseApplicationMapper.insertCaseApplication(caseApplication);
57
         List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
64
         List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
58
         if(caseAffiliates!=null&&caseAffiliates.size()>0){
65
         if(caseAffiliates!=null&&caseAffiliates.size()>0){

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

28
         <result property="createTime"   column="create_time"  />
28
         <result property="createTime"   column="create_time"  />
29
         <result property="updateBy"     column="update_by"    />
29
         <result property="updateBy"     column="update_by"    />
30
         <result property="updateTime"   column="update_time"  />
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
     </resultMap>
35
     </resultMap>
32
 
36
 
33
 
37
 
34
 
38
 
35
     <select id="selectCaseApplicationList" parameterType="CaseApplication" resultMap="CaseApplicationResult">
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
         CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
45
         CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
38
                             when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
46
                             when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
39
                             when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
47
                             when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
61
                 </foreach>
69
                 </foreach>
62
             </if>
70
             </if>
63
         </where>
71
         </where>
72
+        order by c.create_time desc
64
     </select>
73
     </select>
65
 
74
 
66
     <select id="selectCaseApplicationCount" parameterType="CaseApplication" resultType="int">
75
     <select id="selectCaseApplicationCount" parameterType="CaseApplication" resultType="int">
173
     </delete>
182
     </delete>
174
 
183
 
175
     <select id="selectCaseApplication" parameterType="CaseApplication" resultMap="CaseApplicationResult">
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
         c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
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
         c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
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
         from case_application c
202
         from case_application c
181
         <where>
203
         <where>
182
             <if test="id != null ">
204
             <if test="id != null ">