Pārlūkot izejas kodu

组庭接口优化

qitz 2 gadus atpakaļ
vecāks
revīzija
32856e223a

+ 13
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java Parādīt failu

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

+ 26
- 22
ruoyi-common/src/main/java/com/ruoyi/common/constant/CaseApplicationConstants.java Parādīt failu

@@ -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 Parādīt failu

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

+ 2
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseApplicationService.java Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

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