Parcourir la source

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

hejinbo il y a 2 ans
Parent
révision
6945dfd7b1

+ 13
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java Voir le fichier

@@ -137,6 +137,19 @@ public class CaseApplicationController  extends BaseController {
137 137
         return toAjax(caseApplicationService.pendTral(caseApplication));
138 138
     }
139 139
 
140
+    /**
141
+     * 组庭审核
142
+     */
143
+    @PreAuthorize("@ss.hasPermi('caseApplication:pendTralCheck')")
144
+    @Log(title = "组庭", businessType = BusinessType.UPDATE)
145
+    @PostMapping("/pendTralCheck")
146
+    public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication)
147
+    {
148
+        return toAjax(caseApplicationService.pendTralCheck(caseApplication));
149
+    }
150
+
151
+
152
+
140 153
     /**
141 154
      * 是否指派仲裁员
142 155
      */

+ 26
- 22
ruoyi-common/src/main/java/com/ruoyi/common/constant/CaseApplicationConstants.java Voir le fichier

@@ -6,34 +6,38 @@ package com.ruoyi.common.constant;
6 6
 public class CaseApplicationConstants {
7 7
     /** 立案申请 */
8 8
     public static final int CASE_APPLICATION = 0;
9
+    /** 待立案审查 */
10
+    public static final int CASE_CHECK = 1;
9 11
     /** 待缴费 */
10
-    public static final int PENDING_PAYMENT = 1;
12
+    public static final int PENDING_PAYMENT = 2;
11 13
     /** 待缴费确认  */
12
-    public static final int PENDING_PAYMENT_CONFIRM = 2;
13
-    /** 待确认是否应诉 */
14
-    public static final int CONFIRMDED_RESPOND = 3;
15
-    /** 待确认证据  */
16
-    public static final int CONFIRMDED_EVIDENCE = 4;
17
-    /** 待确定是否指派仲裁员  */
18
-    public static final int PENDING_APPOINT_ARBOTRATAR = 5;
14
+    public static final int PENDING_PAYMENT_CONFIRM = 3;
15
+    /** 待案件质证 */
16
+    public static final int CASE_CROSSEXAMI = 4;
17
+
19 18
     /** 待组庭  */
20
-    public static final int PENDING_TRIAL = 6;
21
-    /** 待组庭确定   */
22
-    public static final int CONFIRMDED_PENDING_TRIAL = 7;
19
+    public static final int PENDING_TRIAL = 26;
23 20
     /** 待组庭审核  */
24
-    public static final int CONFIRMDED_PENDING_TRIAL_SUBMMIT = 8;
25
-    /** 待选择仲裁方式 */
26
-    public static final int SELECTED_ARBITRATION_METHOD = 9;
27
-    /** 待开庭 */
28
-    public static final int PENDING_OPENCOURT = 10;
21
+    public static final int CONFIRMDED_PENDING_TRIAL_SUBMMIT = 5;
22
+    /** 待组庭确定   */
23
+    public static final int CONFIRMDED_PENDING_TRIAL = 6;
24
+
25
+    /** 待审核仲裁方式 */
26
+    public static final int CHECK_ARBITRATION_METHOD = 7;
27
+    /** 待开庭审理 */
28
+    public static final int PENDING_OPENCOURT_HEAR = 8;
29
+    /** 待书面审理 */
30
+    public static final int PENDING_WRIITEN_HEAR = 9;
29 31
     /** 待生成仲裁文书  */
30
-    public static final int GENERATED_ARBITRATION = 11;
31
-    /** 待确认仲裁文书  */
32
-    public static final int CONFIRMED_ARBITRATION = 12;
32
+    public static final int GENERATED_ARBITRATION = 10;
33
+    /**待核验仲裁文书*/
34
+    public static final int VERPRIF_ARBITRATION = 11;
35
+    /**待审核仲裁文书*/
36
+    public static final int CHECK_ARBITRATION = 12;
37
+    /**待仲裁文书签名*/
38
+    public static final int SIGN_ARBITRATION = 13;
33 39
     /** 待仲裁文书用印 */
34
-    public static final int ARBITRATED_SEAL = 13;
35
-    /** 待仲裁文书用印审核  */
36
-    public static final int ARBITRATED_SEAL_REVIEW = 14;
40
+    public static final int ARBITRATED_SEAL = 14;
37 41
     /** 待仲裁文书送达 */
38 42
     public static final int ARBITRATION_DELIVERY = 15;
39 43
     /** 待案件归档*/

+ 11
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java Voir le fichier

@@ -73,6 +73,17 @@ public class CaseApplication  extends BaseEntity {
73 73
     /** 案件描述 */
74 74
     private String caseDescribe;
75 75
 
76
+    /** 是否同意组庭 */
77
+    private int isAgreePendTral;
78
+
79
+    public int getIsAgreePendTral() {
80
+        return isAgreePendTral;
81
+    }
82
+
83
+    public void setIsAgreePendTral(int isAgreePendTral) {
84
+        this.isAgreePendTral = isAgreePendTral;
85
+    }
86
+
76 87
     public String getCaseName() {
77 88
         return caseName;
78 89
     }

+ 2
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseApplicationService.java Voir le fichier

@@ -25,4 +25,6 @@ public interface ICaseApplicationService {
25 25
     int pendTral(CaseApplication caseApplication);
26 26
 
27 27
     int pendingAppointArbotrar(CaseApplication caseApplication);
28
+
29
+    int pendTralCheck(CaseApplication caseApplication);
28 30
 }

+ 27
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Voir le fichier

@@ -206,6 +206,31 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
206 206
         return rows;
207 207
     }
208 208
 
209
+    @Override
210
+    @Transactional
211
+    public int pendTralCheck(CaseApplication caseApplication) {
212
+        int isAgreePendTral = caseApplication.getIsAgreePendTral();
213
+        caseApplication.setCaseStatus(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
214
+        int rows = 0;
215
+        //同意组庭
216
+        if(isAgreePendTral==1){
217
+            rows = caseApplicationMapper.submitCaseApplication(caseApplication);
218
+        }else {
219
+            List<Arbitrator> arbitrators = caseApplication.getArbitrators();
220
+            if(arbitrators!=null&&arbitrators.size()>0){
221
+                List<Long> ids = arbitrators.stream().map(Arbitrator::getId).collect(Collectors.toList());
222
+                List<String> arbitratorNames = arbitrators.stream().map(Arbitrator::getArbitratorName).collect(Collectors.toList());
223
+                String idstr = ids.stream().map(Object::toString).collect(Collectors.joining(","));
224
+                String arbitratorNamestr = arbitratorNames.stream().map(Object::toString).collect(Collectors.joining(","));
225
+                caseApplication.setArbitratorId(idstr);
226
+                caseApplication.setArbitratorName(arbitratorNamestr);
227
+                rows = caseApplicationMapper.submitCaseApplication(caseApplication);
228
+            }
229
+        }
230
+
231
+        return rows;
232
+    }
233
+
209 234
     @Override
210 235
     @Transactional
211 236
     public int pendingAppointArbotrar(CaseApplication caseApplication) {
@@ -236,6 +261,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
236 261
 
237 262
     }
238 263
 
264
+
265
+
239 266
     private void assignmentCaseAffiliates(CaseApplication caseApplication, List<CaseAffiliate> caseAffiliatesnew) {
240 267
         CaseAffiliate caseAffiliate = new CaseAffiliate();
241 268
 //        BeanUtils.copyBeanProp(caseApplication,caseAffiliate);

+ 1
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml Voir le fichier

@@ -149,6 +149,7 @@
149 149
             <if test="caseName != null  and caseName != ''">case_name = #{caseName},</if>
150 150
             <if test="caseDescribe != null  and caseDescribe != ''">case_describe = #{caseDescribe},</if>
151 151
             <if test="caseResult != null  and caseResult != ''">case_result = #{caseResult},</if>
152
+            <if test="isAgreePendTral != null">is_agree_pend_tral = #{isAgreePendTral},</if>
152 153
         </set>
153 154
         where id = #{id}
154 155
     </update>