Procházet zdrojové kódy

案件流程修改

18792927508 před 2 roky
rodič
revize
93d9e11688

+ 1
- 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java Zobrazit soubor

273
     }
273
     }
274
 
274
 
275
     /**
275
     /**
276
-     * 审核裁决书
276
+     * 部门长审核裁决书
277
      */
277
      */
278
 //    @PreAuthorize("@ss.hasPermi('caseApplication:checkArbitrateRecord')")
278
 //    @PreAuthorize("@ss.hasPermi('caseApplication:checkArbitrateRecord')")
279
     @Log(title = "审核裁决书", businessType = BusinessType.UPDATE)
279
     @Log(title = "审核裁决书", businessType = BusinessType.UPDATE)

+ 4
- 2
ruoyi-common/src/main/java/com/ruoyi/common/constant/CaseApplicationConstants.java Zobrazit soubor

30
     public static final int PENDING_WRIITEN_HEAR = 9;
30
     public static final int PENDING_WRIITEN_HEAR = 9;
31
     /** 待生成仲裁文书  */
31
     /** 待生成仲裁文书  */
32
     public static final int GENERATED_ARBITRATION = 10;
32
     public static final int GENERATED_ARBITRATION = 10;
33
-    /**待核验仲裁文书*/
33
+    /**待秘书核验仲裁文书*/
34
     public static final int VERPRIF_ARBITRATION = 11;
34
     public static final int VERPRIF_ARBITRATION = 11;
35
-    /**待审核仲裁文书*/
35
+    /**待部门长审核仲裁文书*/
36
     public static final int CHECK_ARBITRATION = 12;
36
     public static final int CHECK_ARBITRATION = 12;
37
     /**待仲裁文书签名*/
37
     /**待仲裁文书签名*/
38
     public static final int SIGN_ARBITRATION = 13;
38
     public static final int SIGN_ARBITRATION = 13;
47
 
47
 
48
     /** 待修改开庭时间*/
48
     /** 待修改开庭时间*/
49
     public static final int MODIFY_HEARDATE = 31;
49
     public static final int MODIFY_HEARDATE = 31;
50
+    /**待仲裁员审核仲裁文书*/
51
+    public static final int HEAD_CHECK_ARBITRATION = 18;
50
 
52
 
51
 
53
 
52
 
54
 

+ 1
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/ToDoCount.java Zobrazit soubor

30
     private int caseApplyStored=0; // 待案件归档
30
     private int caseApplyStored=0; // 待案件归档
31
     private int caseApplyArchived=0; // 已归档
31
     private int caseApplyArchived=0; // 已归档
32
     private int updateOnlineHearDate=0; // 待修改开庭时间
32
     private int updateOnlineHearDate=0; // 待修改开庭时间
33
+    private int ArbitratorApplyAwardConfirm=0; // 待仲裁员审核仲裁文书
33
 }
34
 }

+ 46
- 8
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Zobrazit soubor

256
         SysUser user = loginUser.getUser();
256
         SysUser user = loginUser.getUser();
257
         Long userId = user.getUserId();
257
         Long userId = user.getUserId();
258
 
258
 
259
-        // 查询登录人身份证号
259
+        // 查询登录人信息
260
         SysUser sysUser = sysUserMapper.selectUserById(userId);
260
         SysUser sysUser = sysUserMapper.selectUserById(userId);
261
         List<SysRole> roles = sysUser.getRoles();
261
         List<SysRole> roles = sysUser.getRoles();
262
         // 没有角色不能查看案件列表
262
         // 没有角色不能查看案件列表
1905
     @Override
1905
     @Override
1906
     @Transactional
1906
     @Transactional
1907
     public int verificationArbitrateRecord(CaseApplication caseApplication) {
1907
     public int verificationArbitrateRecord(CaseApplication caseApplication) {
1908
-        caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION);
1908
+        // 秘书核验裁决书,流转到待仲裁员审核仲裁文书
1909
+        caseApplication.setCaseStatus(CaseApplicationConstants.HEAD_CHECK_ARBITRATION);
1909
         int rows = caseApplicationMapper.submitCaseApplication(caseApplication);
1910
         int rows = caseApplicationMapper.submitCaseApplication(caseApplication);
1910
         ArbitrateRecord arbitrateRecord = caseApplication.getArbitrateRecord();
1911
         ArbitrateRecord arbitrateRecord = caseApplication.getArbitrateRecord();
1911
         arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord);
1912
         arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord);
1912
         // 新增日志
1913
         // 新增日志
1913
-        insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CHECK_ARBITRATION, "");
1914
+        insertCaseLog(caseApplication.getId(), CaseApplicationConstants.HEAD_CHECK_ARBITRATION, "");
1914
         return rows;
1915
         return rows;
1915
 
1916
 
1916
     }
1917
     }
1917
 
1918
 
1919
+    /**
1920
+     * 仲裁员,部门长审核裁决书
1921
+     * @param caseApplication
1922
+     * @return
1923
+     */
1918
     @Override
1924
     @Override
1919
     @Transactional
1925
     @Transactional
1920
     public AjaxResult checkArbitrateRecord(CaseApplication caseApplication) {
1926
     public AjaxResult checkArbitrateRecord(CaseApplication caseApplication) {
1927
+        // 查询当前登录人角色
1928
+        LoginUser loginUser = getLoginUser();
1929
+        // 查询登录人角色
1930
+        SysUser user = sysUserMapper.selectUserById(loginUser.getUser().getUserId());
1931
+        List<SysRole> roles = user.getRoles();  if (CollectionUtil.isEmpty(roles)) {
1932
+            throw new ServiceException("该用户没有角色权限");
1933
+        }
1934
+        String roleName="";
1935
+        for (SysRole role : roles) {
1936
+            if (StrUtil.isEmpty(role.getRoleName())) {
1937
+                continue;
1938
+            }
1939
+            roleName=role.getRoleName();
1940
+        }
1941
+        // 如果是仲裁员,同意后状态改为待部门长审核仲裁文书(CHECK_ARBITRATION = 12),拒绝改为待秘书核验仲裁文书(VERPRIF_ARBITRATION = 11)
1942
+        // 如果是部门长,同意后状态改为待仲裁文书签名(SIGN_ARBITRATION = 13),拒绝改为待仲裁员审核仲裁文书(HEAD_CHECK_ARBITRATION = 18)
1943
+
1921
         int rows = 0;
1944
         int rows = 0;
1922
         ArbitrateRecord arbitrateRecord = caseApplication.getArbitrateRecord();
1945
         ArbitrateRecord arbitrateRecord = caseApplication.getArbitrateRecord();
1923
         arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord);
1946
         arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord);
2102
             } catch (InterruptedException e) {
2125
             } catch (InterruptedException e) {
2103
                 e.printStackTrace();
2126
                 e.printStackTrace();
2104
             }
2127
             }
2105
-            caseApplication.setCaseStatus(CaseApplicationConstants.SIGN_ARBITRATION);
2128
+            // 如果是仲裁员,同意后状态改为待部门长审核仲裁文书(CHECK_ARBITRATION = 12)
2129
+            if(roleName.contains("仲裁员")){
2130
+                caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION);
2131
+            }else  if(roleName.contains("仲裁委")||roleName.contains("部门长")){
2132
+                // 如果是部门长,同意后状态改为待仲裁文书签名(SIGN_ARBITRATION = 13),
2133
+                caseApplication.setCaseStatus(CaseApplicationConstants.SIGN_ARBITRATION);
2134
+            }
2135
+
2136
+
2137
+
2106
             // 新增日志
2138
             // 新增日志
2107
-            insertCaseLog(caseApplication.getId(), CaseApplicationConstants.SIGN_ARBITRATION, "");
2139
+            insertCaseLog(caseApplication.getId(), caseApplication.getCaseStatus(), "");
2108
 
2140
 
2109
             rows = caseApplicationMapper.submitCaseApplication(caseApplication);
2141
             rows = caseApplicationMapper.submitCaseApplication(caseApplication);
2110
         } else if (agreeOrNotCheck.intValue() == 2) {//拒绝审核
2142
         } else if (agreeOrNotCheck.intValue() == 2) {//拒绝审核
2111
-            caseApplication.setCaseStatus(CaseApplicationConstants.VERPRIF_ARBITRATION);
2143
+            // 如果是仲裁员,拒绝改为待秘书核验仲裁文书(VERPRIF_ARBITRATION = 11)
2144
+            if(roleName.contains("仲裁员")){
2145
+                caseApplication.setCaseStatus(CaseApplicationConstants.VERPRIF_ARBITRATION);
2146
+            }else  if(roleName.contains("仲裁委")||roleName.contains("部门长")){
2147
+                // 如果是部门长,拒绝改为待仲裁员审核仲裁文书(HEAD_CHECK_ARBITRATION = 18)
2148
+                caseApplication.setCaseStatus(CaseApplicationConstants.HEAD_CHECK_ARBITRATION);
2149
+            }
2112
             // 新增日志
2150
             // 新增日志
2113
-            insertCaseLog(caseApplication.getId(), CaseApplicationConstants.VERPRIF_ARBITRATION, "");
2151
+            insertCaseLog(caseApplication.getId(), caseApplication.getCaseStatus(), "");
2114
 
2152
 
2115
             rows = caseApplicationMapper.submitCaseApplication(caseApplication);
2153
             rows = caseApplicationMapper.submitCaseApplication(caseApplication);
2116
         }
2154
         }
3119
                         if (null != caseApplication.getId()) {
3157
                         if (null != caseApplication.getId()) {
3120
                             List<CaseAttach> caseAttachs=new ArrayList<>();
3158
                             List<CaseAttach> caseAttachs=new ArrayList<>();
3121
                             for (Map.Entry<String, String> entry : andConvertPDF.entrySet()) {
3159
                             for (Map.Entry<String, String> entry : andConvertPDF.entrySet()) {
3122
-                                if(entry.getValue().contains("证据材料")){
3160
+                                if(entry.getValue().contains("证据材料")||entry.getValue().contains("申请书")||entry.getValue().contains("调解协议")||entry.getValue().contains("情况说明")){
3123
                                     String pdfUrl = entry.getValue();
3161
                                     String pdfUrl = entry.getValue();
3124
                                     File file1 = new File(pdfUrl);
3162
                                     File file1 = new File(pdfUrl);
3125
                                     CaseAttach caseAttach = new CaseAttach();
3163
                                     CaseAttach caseAttach = new CaseAttach();

+ 85
- 216
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml Zobrazit soubor

83
                 ELSE '无审理方式'
83
                 ELSE '无审理方式'
84
                 END arbitratMethodName,
84
                 END arbitratMethodName,
85
                 c.case_status ,
85
                 c.case_status ,
86
-                CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
86
+                CASE c.case_status  when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
87
                 when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
87
                 when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
88
                 when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
88
                 when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
89
                 when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
89
                 when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
90
-                when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
90
+                when 12 then '待部门长审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
91
                 when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
91
                 when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
92
+                when 18 then '待仲裁员审核仲裁文书'
92
                 when 31 then '待修改开庭时间'
93
                 when 31 then '待修改开庭时间'
93
                 ELSE '无案件状态'
94
                 ELSE '无案件状态'
94
                 END caseStatusName,
95
                 END caseStatusName,
133
                     <!--仲裁员-->
134
                     <!--仲裁员-->
134
                     <if test="userId != null and userId != ''">
135
                     <if test="userId != null and userId != ''">
135
                         or ( t.identity_type=1 and
136
                         or ( t.identity_type=1 and
136
-                        t.case_status in (7,11,13,17)
137
+                        t.case_status in (7,13,17,18)
137
                         and
138
                         and
138
                         instr (t.arbitrator_id,#{userId})>0)
139
                         instr (t.arbitrator_id,#{userId})>0)
139
                     </if>
140
                     </if>
179
                 ELSE '无审理方式'
180
                 ELSE '无审理方式'
180
                 END arbitratMethodName,
181
                 END arbitratMethodName,
181
                 c.case_status ,
182
                 c.case_status ,
182
-                CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
183
+                CASE c.case_status  when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
183
                 when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
184
                 when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
184
                 when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
185
                 when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
185
                 when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
186
                 when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
186
-                when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
187
+                when 12 then '待部门长审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
187
                 when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
188
                 when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
189
+                when 18 then '待仲裁员审核仲裁文书'
188
                 when 31 then '待修改开庭时间'
190
                 when 31 then '待修改开庭时间'
189
                 ELSE '无案件状态'
191
                 ELSE '无案件状态'
190
                 END caseStatusName,
192
                 END caseStatusName,
246
                 c.case_status,
248
                 c.case_status,
247
                 CASE
249
                 CASE
248
                 c.case_status
250
                 c.case_status
249
-                WHEN 0 THEN
250
-                '立案申请'
251
-                WHEN 1 THEN
252
-                '待立案审查'
253
-                WHEN 2 THEN
254
-                '待缴费'
255
-                WHEN 3 THEN
256
-                '待缴费确认'
257
-                WHEN 4 THEN
258
-                '待案件质证'
259
-                WHEN 5 THEN
260
-                '待组庭审核'
261
-                WHEN 6 THEN
262
-                '待组庭确定'
263
-                WHEN 7 THEN
264
-                '待审核仲裁方式'
265
-                WHEN 8 THEN
266
-                '待开庭审理'
267
-                WHEN 9 THEN
268
-                '待书面审理'
269
-                WHEN 10 THEN
270
-                '待生成仲裁文书'
271
-                WHEN 11 THEN
272
-                '待核验仲裁文书'
273
-                WHEN 12 THEN
274
-                '待审核仲裁文书'
275
-                WHEN 13 THEN
276
-                '待仲裁文书签名'
277
-                WHEN 14 THEN
278
-                '待仲裁文书用印'
279
-                WHEN 15 THEN
280
-                '待仲裁文书送达'
281
-                WHEN 16 THEN
282
-                '待案件归档'
283
-                WHEN 17 THEN
284
-                '已归档'
285
-                WHEN 31 THEN
286
-                '待修改开庭时间' ELSE '无案件状态'
251
+                when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
252
+                when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
253
+                when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
254
+                when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
255
+                when 12 then '待部门长审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
256
+                when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
257
+                when 18 then '待仲裁员审核仲裁文书'
258
+                when 31 then '待修改开庭时间' ELSE '无案件状态'
287
                 END caseStatusName,
259
                 END caseStatusName,
288
                 c.hear_date,
260
                 c.hear_date,
289
                 c.arbitrat_claims,
261
                 c.arbitrat_claims,
323
                 WHERE
295
                 WHERE
324
                 ca.identity_type=1
296
                 ca.identity_type=1
325
 
297
 
326
-                and c.case_status in (1,5,8,9,14,15,16,17,31)
298
+                and c.case_status in (1,5,8,9,11,14,15,16,17,31)
327
 
299
 
328
           <!--      <if test="deptIds != null and deptIds.size() > 0">
300
           <!--      <if test="deptIds != null and deptIds.size() > 0">
329
                     and ca.application_organ_id in
301
                     and ca.application_organ_id in
373
                 c.case_status,
345
                 c.case_status,
374
                 CASE
346
                 CASE
375
                 c.case_status
347
                 c.case_status
376
-                WHEN 0 THEN
377
-                '立案申请'
378
-                WHEN 1 THEN
379
-                '待立案审查'
380
-                WHEN 2 THEN
381
-                '待缴费'
382
-                WHEN 3 THEN
383
-                '待缴费确认'
384
-                WHEN 4 THEN
385
-                '待案件质证'
386
-                WHEN 5 THEN
387
-                '待组庭审核'
388
-                WHEN 6 THEN
389
-                '待组庭确定'
390
-                WHEN 7 THEN
391
-                '待审核仲裁方式'
392
-                WHEN 8 THEN
393
-                '待开庭审理'
394
-                WHEN 9 THEN
395
-                '待书面审理'
396
-                WHEN 10 THEN
397
-                '待生成仲裁文书'
398
-                WHEN 11 THEN
399
-                '待核验仲裁文书'
400
-                WHEN 12 THEN
401
-                '待审核仲裁文书'
402
-                WHEN 13 THEN
403
-                '待仲裁文书签名'
404
-                WHEN 14 THEN
405
-                '待仲裁文书用印'
406
-                WHEN 15 THEN
407
-                '待仲裁文书送达'
408
-                WHEN 16 THEN
409
-                '待案件归档'
410
-                WHEN 17 THEN
411
-                '已归档'
412
-                WHEN 31 THEN
413
-                '待修改开庭时间' ELSE '无案件状态'
348
+                when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
349
+                when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
350
+                when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
351
+                when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
352
+                when 12 then '待部门长审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
353
+                when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
354
+                when 18 then '待仲裁员审核仲裁文书'
355
+                when 31 then '待修改开庭时间' ELSE '无案件状态'
414
                 END caseStatusName,
356
                 END caseStatusName,
415
                 c.hear_date,
357
                 c.hear_date,
416
                 c.arbitrat_claims,
358
                 c.arbitrat_claims,
482
                                      <if test="caseStatus != null">
424
                                      <if test="caseStatus != null">
483
                                          AND tt2.case_status = #{caseStatus}
425
                                          AND tt2.case_status = #{caseStatus}
484
                                      </if>
426
                                      </if>
485
-
427
+                                     <if test="caseStatusList != null and caseStatusList.size() > 0">
428
+                                         and tt2.case_status in
429
+                                         <foreach item="caseStatus" collection="caseStatusList" open="(" separator="," close=")">
430
+                                             #{caseStatus}
431
+                                         </foreach>
432
+                                     </if>
486
                                  </where>
433
                                  </where>
487
 
434
 
488
             </if>
435
             </if>
499
         ELSE '无审理方式'
446
         ELSE '无审理方式'
500
         END arbitratMethodName,
447
         END arbitratMethodName,
501
         c.case_status ,
448
         c.case_status ,
502
-        CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
449
+        CASE c.case_status  when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
503
         when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
450
         when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
504
         when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
451
         when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
505
         when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
452
         when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
506
-        when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
453
+        when 12 then '待部门长审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
507
         when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
454
         when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
455
+        when 18 then '待仲裁员审核仲裁文书'
508
         when 31 then '待修改开庭时间'
456
         when 31 then '待修改开庭时间'
509
         ELSE '无案件状态'
457
         ELSE '无案件状态'
510
         END caseStatusName,
458
         END caseStatusName,
558
         when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
506
         when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
559
         when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
507
         when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
560
         when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
508
         when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
561
-        when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
509
+        when 12 then '待部门长审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
562
         when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
510
         when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
511
+        when 18 then '待仲裁员审核仲裁文书'
563
         when 31 then '待修改开庭时间'
512
         when 31 then '待修改开庭时间'
564
         ELSE '无案件状态'
513
         ELSE '无案件状态'
565
         END caseStatusName,
514
         END caseStatusName,
668
         sum( case when t1.case_status=15 then 1 else 0 end) caseApplyAwardSend,
617
         sum( case when t1.case_status=15 then 1 else 0 end) caseApplyAwardSend,
669
         sum( case when t1.case_status=16 then 1 else 0 end) caseApplyStored,
618
         sum( case when t1.case_status=16 then 1 else 0 end) caseApplyStored,
670
         sum( case when t1.case_status=17 then 1 else 0 end) caseApplyArchived,
619
         sum( case when t1.case_status=17 then 1 else 0 end) caseApplyArchived,
620
+        sum( case when t1.case_status=18 then 1 else 0 end) ArbitratorApplyAwardConfirm,
671
         sum( case when t1.case_status=31 then 1 else 0 end) updateOnlineHearDate
621
         sum( case when t1.case_status=31 then 1 else 0 end) updateOnlineHearDate
672
         from(
622
         from(
673
         <trim suffixOverrides="union">
623
         <trim suffixOverrides="union">
701
                     <!--仲裁员-->
651
                     <!--仲裁员-->
702
                     <if test="userId != null and userId != ''">
652
                     <if test="userId != null and userId != ''">
703
                         or ( t.identity_type=1 and
653
                         or ( t.identity_type=1 and
704
-                        t.case_status in (7,11,13,17)
654
+                        t.case_status in (7,13,17,18)
705
                         and
655
                         and
706
                         instr (t.arbitrator_id,#{userId})>0)
656
                         instr (t.arbitrator_id,#{userId})>0)
707
                     </if>
657
                     </if>
796
                 WHERE
746
                 WHERE
797
                 ca.identity_type=1
747
                 ca.identity_type=1
798
 
748
 
799
-                and c.case_status in (1,5,8,9,14,15,16,17,31)
749
+                and c.case_status in (1,5,8,9,11,14,15,16,17,31)
800
       <!--          <if test="deptIds != null and deptIds.size() > 0">
750
       <!--          <if test="deptIds != null and deptIds.size() > 0">
801
                     and ca.application_organ_id in
751
                     and ca.application_organ_id in
802
                     <foreach item="item" collection="deptIds" open="(" separator="," close=")">
752
                     <foreach item="item" collection="deptIds" open="(" separator="," close=")">
840
         ELSE '无审理方式'
790
         ELSE '无审理方式'
841
         END arbitratMethodName,
791
         END arbitratMethodName,
842
         c.case_status ,
792
         c.case_status ,
843
-        CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
793
+        CASE c.case_status  when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
844
         when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
794
         when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
845
         when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
795
         when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
846
         when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
796
         when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
847
-        when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
797
+        when 12 then '待部门长审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
848
         when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
798
         when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
799
+        when 18 then '待仲裁员审核仲裁文书'
849
         when 31 then '待修改开庭时间'
800
         when 31 then '待修改开庭时间'
850
         ELSE '无案件状态'
801
         ELSE '无案件状态'
851
         END caseStatusName,
802
         END caseStatusName,
902
             sum( case when c.case_status=15 then 1 else 0 end) caseApplyAwardSend,
853
             sum( case when c.case_status=15 then 1 else 0 end) caseApplyAwardSend,
903
             sum( case when c.case_status=16 then 1 else 0 end) caseApplyStored,
854
             sum( case when c.case_status=16 then 1 else 0 end) caseApplyStored,
904
             sum( case when c.case_status=17 then 1 else 0 end) caseApplyArchived,
855
             sum( case when c.case_status=17 then 1 else 0 end) caseApplyArchived,
856
+            sum( case when c.case_status=18 then 1 else 0 end) ArbitratorApplyAwardConfirm,
905
             sum( case when c.case_status=31 then 1 else 0 end) updateOnlineHearDate
857
             sum( case when c.case_status=31 then 1 else 0 end) updateOnlineHearDate
906
         FROM
858
         FROM
907
             case_application c
859
             case_application c
927
                                   15,
879
                                   15,
928
                                   16,
880
                                   16,
929
                                   17,
881
                                   17,
882
+                                  18,
930
                                   31
883
                                   31
931
                 )
884
                 )
932
 
885
 
960
         c.case_status,
913
         c.case_status,
961
         CASE
914
         CASE
962
         c.case_status
915
         c.case_status
963
-        WHEN 0 THEN
964
-        '立案申请'
965
-        WHEN 1 THEN
966
-        '待立案审查'
967
-        WHEN 2 THEN
968
-        '待缴费'
969
-        WHEN 3 THEN
970
-        '待缴费确认'
971
-        WHEN 4 THEN
972
-        '待案件质证'
973
-        WHEN 5 THEN
974
-        '待组庭审核'
975
-        WHEN 6 THEN
976
-        '待组庭确定'
977
-        WHEN 7 THEN
978
-        '待审核仲裁方式'
979
-        WHEN 8 THEN
980
-        '待开庭审理'
981
-        WHEN 9 THEN
982
-        '待书面审理'
983
-        WHEN 10 THEN
984
-        '待生成仲裁文书'
985
-        WHEN 11 THEN
986
-        '待核验仲裁文书'
987
-        WHEN 12 THEN
988
-        '待审核仲裁文书'
989
-        WHEN 13 THEN
990
-        '待仲裁文书签名'
991
-        WHEN 14 THEN
992
-        '待仲裁文书用印'
993
-        WHEN 15 THEN
994
-        '待仲裁文书送达'
995
-        WHEN 16 THEN
996
-        '待案件归档'
997
-        WHEN 17 THEN
998
-        '已归档'
999
-        WHEN 31 THEN
1000
-        '待修改开庭时间' ELSE '无案件状态'
916
+        when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
917
+        when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
918
+        when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
919
+        when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
920
+        when 12 then '待部门长审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
921
+        when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
922
+        when 18 then '待仲裁员审核仲裁文书'
923
+        when 31 then '待修改开庭时间' ELSE '无案件状态'
1001
         END caseStatusName,
924
         END caseStatusName,
1002
         c.hear_date,
925
         c.hear_date,
1003
         l.arbitrat_claims,
926
         l.arbitrat_claims,
1111
         c.case_status,
1034
         c.case_status,
1112
         CASE
1035
         CASE
1113
         c.case_status
1036
         c.case_status
1114
-        WHEN 0 THEN
1115
-        '立案申请'
1116
-        WHEN 1 THEN
1117
-        '待立案审查'
1118
-        WHEN 2 THEN
1119
-        '待缴费'
1120
-        WHEN 3 THEN
1121
-        '待缴费确认'
1122
-        WHEN 4 THEN
1123
-        '待案件质证'
1124
-        WHEN 5 THEN
1125
-        '待组庭审核'
1126
-        WHEN 6 THEN
1127
-        '待组庭确定'
1128
-        WHEN 7 THEN
1129
-        '待审核仲裁方式'
1130
-        WHEN 8 THEN
1131
-        '待开庭审理'
1132
-        WHEN 9 THEN
1133
-        '待书面审理'
1134
-        WHEN 10 THEN
1135
-        '待生成仲裁文书'
1136
-        WHEN 11 THEN
1137
-        '待核验仲裁文书'
1138
-        WHEN 12 THEN
1139
-        '待审核仲裁文书'
1140
-        WHEN 13 THEN
1141
-        '待仲裁文书签名'
1142
-        WHEN 14 THEN
1143
-        '待仲裁文书用印'
1144
-        WHEN 15 THEN
1145
-        '待仲裁文书送达'
1146
-        WHEN 16 THEN
1147
-        '待案件归档'
1148
-        WHEN 17 THEN
1149
-        '已归档'
1150
-        WHEN 31 THEN
1151
-        '待修改开庭时间' ELSE '无案件状态'
1037
+        when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
1038
+        when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
1039
+        when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
1040
+        when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
1041
+        when 12 then '待部门长审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
1042
+        when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
1043
+        when 18 then '待仲裁员审核仲裁文书'
1044
+        when 31 then '待修改开庭时间' ELSE '无案件状态'
1152
         END caseStatusName,
1045
         END caseStatusName,
1153
         c.hear_date,
1046
         c.hear_date,
1154
         c.arbitrat_claims,
1047
         c.arbitrat_claims,
1221
         c.case_status,
1114
         c.case_status,
1222
         CASE
1115
         CASE
1223
         c.case_status
1116
         c.case_status
1224
-        WHEN 0 THEN
1225
-        '立案申请'
1226
-        WHEN 1 THEN
1227
-        '待立案审查'
1228
-        WHEN 2 THEN
1229
-        '待缴费'
1230
-        WHEN 3 THEN
1231
-        '待缴费确认'
1232
-        WHEN 4 THEN
1233
-        '待案件质证'
1234
-        WHEN 5 THEN
1235
-        '待组庭审核'
1236
-        WHEN 6 THEN
1237
-        '待组庭确定'
1238
-        WHEN 7 THEN
1239
-        '待审核仲裁方式'
1240
-        WHEN 8 THEN
1241
-        '待开庭审理'
1242
-        WHEN 9 THEN
1243
-        '待书面审理'
1244
-        WHEN 10 THEN
1245
-        '待生成仲裁文书'
1246
-        WHEN 11 THEN
1247
-        '待核验仲裁文书'
1248
-        WHEN 12 THEN
1249
-        '待审核仲裁文书'
1250
-        WHEN 13 THEN
1251
-        '待仲裁文书签名'
1252
-        WHEN 14 THEN
1253
-        '待仲裁文书用印'
1254
-        WHEN 15 THEN
1255
-        '待仲裁文书送达'
1256
-        WHEN 16 THEN
1257
-        '待案件归档'
1258
-        WHEN 17 THEN
1259
-        '已归档'
1260
-        WHEN 31 THEN
1261
-        '待修改开庭时间' ELSE '无案件状态'
1117
+        when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
1118
+        when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
1119
+        when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
1120
+        when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
1121
+        when 12 then '待部门长审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
1122
+        when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
1123
+        when 18 then '待仲裁员审核仲裁文书'
1124
+        when 31 then '待修改开庭时间' ELSE '无案件状态'
1262
         END caseStatusName,
1125
         END caseStatusName,
1263
         c.hear_date,
1126
         c.hear_date,
1264
         l.arbitrat_claims,
1127
         l.arbitrat_claims,
1537
         END arbitratMethodName,
1400
         END arbitratMethodName,
1538
         c.case_name,
1401
         c.case_name,
1539
         c.case_status ,
1402
         c.case_status ,
1540
-        CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
1403
+        CASE c.case_status  when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
1541
         when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
1404
         when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
1542
         when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
1405
         when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
1543
         when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
1406
         when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
1544
-        when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
1545
-        when 15 then '待仲裁文书送达' when 16 then '待案件归档'
1407
+        when 12 then '待部门长审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
1408
+        when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
1409
+        when 18 then '待仲裁员审核仲裁文书'
1410
+        when 31 then '待修改开庭时间'
1546
         ELSE '无案件状态'
1411
         ELSE '无案件状态'
1547
         END caseStatusName,
1412
         END caseStatusName,
1548
         c.hear_date ,c.arbitrat_claims ,
1413
         c.hear_date ,c.arbitrat_claims ,
1574
         ELSE '无审理方式'
1439
         ELSE '无审理方式'
1575
         END arbitratMethodName,
1440
         END arbitratMethodName,
1576
         c.case_status ,
1441
         c.case_status ,
1577
-        CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
1442
+        CASE c.case_status  when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
1578
         when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
1443
         when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
1579
         when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
1444
         when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
1580
         when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
1445
         when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
1581
-        when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
1582
-        when 15 then '待仲裁文书送达' when 16 then '待案件归档'
1446
+        when 12 then '待部门长审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
1447
+        when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
1448
+        when 18 then '待仲裁员审核仲裁文书'
1449
+        when 31 then '待修改开庭时间'
1583
         ELSE '无案件状态'
1450
         ELSE '无案件状态'
1584
         END caseStatusName,
1451
         END caseStatusName,
1585
         c.hear_date ,c.arbitrat_claims ,
1452
         c.hear_date ,c.arbitrat_claims ,
1605
                                       ELSE '无审理方式'
1472
                                       ELSE '无审理方式'
1606
                    END arbitratMethodName,
1473
                    END arbitratMethodName,
1607
                c.case_status ,
1474
                c.case_status ,
1608
-               CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
1609
-                                  when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
1610
-                                  when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
1611
-                                  when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
1612
-                                  when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
1613
-                                  when 15 then '待仲裁文书送达' when 16 then '待案件归档'
1475
+               CASE c.case_status  when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
1476
+        when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
1477
+        when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
1478
+        when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
1479
+        when 12 then '待部门长审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
1480
+        when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
1481
+        when 18 then '待仲裁员审核仲裁文书'
1482
+        when 31 then '待修改开庭时间'
1614
                                   ELSE '无案件状态'
1483
                                   ELSE '无案件状态'
1615
                    END caseStatusName,
1484
                    END caseStatusName,
1616
                c.hear_date ,c.arbitrat_claims ,
1485
                c.hear_date ,c.arbitrat_claims ,