Просмотр исходного кода

Merge branch 'dev' of SH-Arbitrate/Arbitrate-Backend into pro

wangqiong123 2 лет назад
Родитель
Сommit
091f8b9be5
100 измененных файлов: 3787 добавлений и 677 удалений
  1. 3
    2
      ruoyi-admin/pom.xml
  2. 33
    10
      ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java
  3. 25
    4
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
  4. 1
    1
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java
  5. 9
    0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysMenuController.java
  6. 134
    31
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/AdjudicationController.java
  7. 55
    0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/ArbitrateApplicationController.java
  8. 6
    3
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/ArbitratorController.java
  9. 159
    61
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java
  10. 1
    1
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationLogController.java
  11. 22
    2
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseArbitrateController.java
  12. 23
    22
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseEvidenceController.java
  13. 2
    0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseNumRuleController.java
  14. 50
    3
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CasePaymentController.java
  15. 4
    5
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/DeptIdentifyController.java
  16. 57
    0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/MsSignSealController.java
  17. 0
    48
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/SendMailRecordController.java
  18. 137
    4
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/VideoController.java
  19. 49
    0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/sendrecord/SendMailRecordController.java
  20. 143
    0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/sendrecord/ShortMessageController.java
  21. 55
    0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/sms/SMSTemplateController.java
  22. 2
    1
      ruoyi-admin/src/main/resources/application-druid.yml
  23. 14
    6
      ruoyi-admin/src/main/resources/application.yml
  24. 12
    0
      ruoyi-common/src/main/java/com/ruoyi/common/constant/CacheConstants.java
  25. 26
    20
      ruoyi-common/src/main/java/com/ruoyi/common/constant/CaseApplicationConstants.java
  26. 7
    0
      ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java
  27. 4
    0
      ruoyi-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java
  28. 62
    0
      ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java
  29. 81
    0
      ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java
  30. 64
    0
      ruoyi-common/src/main/java/com/ruoyi/common/enums/SMSStatusEnum.java
  31. 58
    0
      ruoyi-common/src/main/java/com/ruoyi/common/utils/CheckSignatuerUtils.java
  32. 200
    20
      ruoyi-common/src/main/java/com/ruoyi/common/utils/EmailOutUtil.java
  33. 68
    0
      ruoyi-common/src/main/java/com/ruoyi/common/utils/EmailUtil.java
  34. 1
    1
      ruoyi-common/src/main/java/com/ruoyi/common/utils/PdfUtils.java
  35. 0
    78
      ruoyi-common/src/main/java/com/ruoyi/common/utils/SmsUtils.java
  36. 23
    0
      ruoyi-common/src/main/java/com/ruoyi/common/utils/ThreadUtil.java
  37. 2
    1
      ruoyi-framework/src/main/java/com/ruoyi/framework/config/ApplicationConfig.java
  38. 18
    3
      ruoyi-system/pom.xml
  39. 7
    0
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java
  40. 13
    0
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java
  41. 9
    0
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserRoleMapper.java
  42. 7
    0
      ruoyi-system/src/main/java/com/ruoyi/system/service/ISysMenuService.java
  43. 6
    0
      ruoyi-system/src/main/java/com/ruoyi/system/service/ISysUserService.java
  44. 9
    0
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java
  45. 63
    14
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java
  46. 26
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/StringIdsReq.java
  47. 6
    3
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/ArbitrateRecord.java
  48. 12
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/Arbitrator.java
  49. 6
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/BatchCaseApplication.java
  50. 56
    6
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java
  51. 16
    5
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseAttach.java
  52. 1
    1
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseEvidenceDirectory.java
  53. 12
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseLogRecord.java
  54. 1
    1
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/SealManage.java
  55. 14
    177
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/SealSignRecord.java
  56. 0
    45
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/SmsSendRecord.java
  57. 309
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/dto/CaseApplicationDTO.java
  58. 1
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/dto/CaseConfirmPayDTO.java
  59. 4
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/dto/CasePayDTO.java
  60. 15
    2
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/dto/sendrecord/SendMailRecord.java
  61. 78
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/dto/sendrecord/SmsSendRecord.java
  62. 129
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/entity/CaseAffiliateEntity.java
  63. 32
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/entity/sms/MsSmsSendHistoryRecordParam.java
  64. 33
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/entity/sms/MsSmsSendRecordParam.java
  65. 38
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/entity/sms/MsSmsTemplate.java
  66. 38
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/entity/sms/MsSmsTemplateParam.java
  67. 60
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/shortmessage/MeetingInfo.java
  68. 111
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/shortmessage/MsSendMailHistoryRecord.java
  69. 98
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/shortmessage/MsSmsSendHistoryRecord.java
  70. 33
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/CaseAffiliateBase.java
  71. 32
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/CaseAffiliateVO.java
  72. 419
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/CaseApplicationVO.java
  73. 3
    3
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/CaseEvidenceDirectoryVO.java
  74. 4
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/CaseEvidenceVO.java
  75. 3
    2
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/CasePayListVO.java
  76. 7
    7
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/ToDoCount.java
  77. 41
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/shortmessage/MeetingInfoVO.java
  78. 34
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/shortmessage/ReSendMessageVO.java
  79. 2
    1
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseAffiliateLogMapper.java
  80. 15
    15
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseAffiliateMapper.java
  81. 8
    1
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseApplicationLogMapper.java
  82. 37
    19
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseApplicationMapper.java
  83. 16
    2
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseAttachMapper.java
  84. 1
    4
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseEvidenceMapper.java
  85. 4
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseNumRuleMapper.java
  86. 3
    1
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CasePaymentRecordMapper.java
  87. 23
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/SealSignRecordMapper.java
  88. 0
    15
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/SendMailRecordMapper.java
  89. 36
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/sendrecord/SendMailRecordMapper.java
  90. 11
    2
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/sendrecord/SmsRecordMapper.java
  91. 8
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/shortmessage/MeetingInfoMapper.java
  92. 8
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/shortmessage/MsSendMailHistoryRecordMapper.java
  93. 8
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/shortmessage/MsSmsSendHistoryRecordMapper.java
  94. 22
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/sms/MsSmsSendHistoryRecordParamMapper.java
  95. 22
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/sms/MsSmsSendRecordParamMapper.java
  96. 8
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/sms/MsSmsTemplateMapper.java
  97. 19
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/sms/MsSmsTemplateParamMapper.java
  98. 46
    5
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/IAdjudicationService.java
  99. 94
    19
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseApplicationService.java
  100. 0
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseArbitrateService.java

+ 3
- 2
ruoyi-admin/pom.xml Просмотреть файл

@@ -9,7 +9,8 @@
9 9
     </parent>
10 10
     <modelVersion>4.0.0</modelVersion>
11 11
     <packaging>jar</packaging>
12
-    <artifactId>ruoyi-admin</artifactId>
12
+    <artifactId>SmartArbitrate</artifactId>
13
+    <version>1.1.0</version>
13 14
 
14 15
     <description>
15 16
         web服务入口
@@ -94,7 +95,7 @@
94 95
                 </configuration>   
95 96
            </plugin>   
96 97
         </plugins>
97
-        <finalName>${project.artifactId}</finalName>
98
+        <finalName>${project.artifactId}-${project.version}</finalName>
98 99
     </build>
99 100
 
100 101
 </project>

+ 33
- 10
ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java Просмотреть файл

@@ -1,10 +1,20 @@
1 1
 package com.ruoyi;
2 2
 
3
+import cn.hutool.core.collection.CollectionUtil;
4
+import com.ruoyi.common.constant.CacheConstants;
5
+import com.ruoyi.common.core.domain.entity.SysRole;
6
+import com.ruoyi.common.core.domain.entity.SysUser;
7
+import com.ruoyi.common.core.redis.RedisCache;
8
+import com.ruoyi.common.utils.spring.SpringUtils;
9
+import com.ruoyi.system.mapper.SysRoleMapper;
10
+import com.ruoyi.system.mapper.SysUserMapper;
3 11
 import org.springframework.boot.SpringApplication;
4 12
 import org.springframework.boot.autoconfigure.SpringBootApplication;
5 13
 import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
6 14
 import org.springframework.scheduling.annotation.EnableScheduling;
7 15
 
16
+import java.util.List;
17
+
8 18
 /**
9 19
  * 启动程序
10 20
  * 
@@ -18,15 +28,28 @@ public class RuoYiApplication
18 28
     {
19 29
         // System.setProperty("spring.devtools.restart.enabled", "false");
20 30
         SpringApplication.run(RuoYiApplication.class, args);
21
-        System.out.println("(♥◠‿◠)ノ゙  若依启动成功   ლ(´ڡ`ლ)゙  \n" +
22
-                " .-------.       ____     __        \n" +
23
-                " |  _ _   \\      \\   \\   /  /    \n" +
24
-                " | ( ' )  |       \\  _. /  '       \n" +
25
-                " |(_ o _) /        _( )_ .'         \n" +
26
-                " | (_,_).' __  ___(_ o _)'          \n" +
27
-                " |  |\\ \\  |  ||   |(_,_)'         \n" +
28
-                " |  | \\ `'   /|   `-'  /           \n" +
29
-                " |  |  \\    /  \\      /           \n" +
30
-                " ''-'   `'-'    `-..-'              ");
31
+        System.out.println("        __                                    _ \n" +
32
+                " ____  / /_  ____  ____  ____ _   _________ _(_)\n" +
33
+                "/_  / / __ \\/ __ \\/ __ \\/ __ `/  / ___/ __ `/ / \n" +
34
+                " / /_/ / / / /_/ / / / / /_/ /  / /__/ /_/ / /  \n" +
35
+                "/___/_/ /_/\\____/_/ /_/\\__, /   \\___/\\__,_/_/   \n" +
36
+                "                      /____/                    ");
37
+        // 启动成功后,查询用户表,将用户信息存到redis
38
+        RedisCache redisCache = SpringUtils.getBean(RedisCache.class);
39
+        SysUserMapper userMapper = SpringUtils.getBean(SysUserMapper.class);
40
+        List<SysUser> sysUsers = userMapper.selectUserListByIds(null);
41
+        if(CollectionUtil.isNotEmpty(sysUsers)){
42
+            for (SysUser sysUser : sysUsers) {
43
+                redisCache.setCacheObject(CacheConstants.USER_KEY+sysUser.getUserId(),sysUser);
44
+            }
45
+        }
46
+        // 初始化角色redis
47
+        SysRoleMapper roleMapper = SpringUtils.getBean(SysRoleMapper.class);
48
+        List<SysRole> roles = roleMapper.selectRoleList(new SysRole());
49
+        if(CollectionUtil.isNotEmpty(roles)){
50
+            for (SysRole role : roles) {
51
+                redisCache.setCacheObject(CacheConstants.ROLE_KEY+role.getRoleName(),role.getRoleId());
52
+            }
53
+        }
31 54
     }
32 55
 }

+ 25
- 4
ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java Просмотреть файл

@@ -4,14 +4,15 @@ import java.util.ArrayList;
4 4
 import java.util.List;
5 5
 import javax.servlet.http.HttpServletRequest;
6 6
 import javax.servlet.http.HttpServletResponse;
7
+
8
+import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
9
+import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
10
+import com.ruoyi.wisdomarbitrate.mapper.CaseAttachMapper;
7 11
 import org.slf4j.Logger;
8 12
 import org.slf4j.LoggerFactory;
9 13
 import org.springframework.beans.factory.annotation.Autowired;
10 14
 import org.springframework.http.MediaType;
11
-import org.springframework.web.bind.annotation.GetMapping;
12
-import org.springframework.web.bind.annotation.PostMapping;
13
-import org.springframework.web.bind.annotation.RequestMapping;
14
-import org.springframework.web.bind.annotation.RestController;
15
+import org.springframework.web.bind.annotation.*;
15 16
 import org.springframework.web.multipart.MultipartFile;
16 17
 import com.ruoyi.common.config.RuoYiConfig;
17 18
 import com.ruoyi.common.constant.Constants;
@@ -36,6 +37,8 @@ public class CommonController
36 37
     private ServerConfig serverConfig;
37 38
 
38 39
     private static final String FILE_DELIMETER = ",";
40
+    @Autowired
41
+    CaseAttachMapper caseAttachMapper;
39 42
 
40 43
     /**
41 44
      * 通用下载请求
@@ -160,4 +163,22 @@ public class CommonController
160 163
             log.error("下载文件失败", e);
161 164
         }
162 165
     }
166
+    /**
167
+     * 根据案件id获取附件
168
+     * @param caseAppliId
169
+     * @param annexTypeList
170
+     * @param
171
+     * @return
172
+     */
173
+    @GetMapping("/fileList")
174
+    public AjaxResult fileList(@RequestParam("caseAppliId")Long caseAppliId, @RequestParam(value = "annexTypeList",required = false) List<Integer> annexTypeList){
175
+        if(caseAppliId==null){
176
+            return AjaxResult.error("案件id不能为空");
177
+        }
178
+        CaseApplication msCaseApplicationVO = new CaseApplication();
179
+        msCaseApplicationVO.setId(caseAppliId);
180
+        msCaseApplicationVO.setAnnexTypeList(annexTypeList);
181
+        List<CaseAttach> caseAttachList = caseAttachMapper.queryCaseAttachList(msCaseApplicationVO);
182
+        return AjaxResult.success(caseAttachList);
183
+    }
163 184
 }

+ 1
- 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java Просмотреть файл

@@ -37,7 +37,7 @@ public class SysDeptController extends BaseController
37 37
     /**
38 38
      * 获取部门列表
39 39
      */
40
-    @PreAuthorize("@ss.hasPermi('system:dept:list')")
40
+//    @PreAuthorize("@ss.hasPermi('system:dept:list')")
41 41
     @GetMapping("/list")
42 42
     public AjaxResult list(SysDept dept)
43 43
     {

+ 9
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysMenuController.java Просмотреть файл

@@ -139,4 +139,13 @@ public class SysMenuController extends BaseController
139 139
         }
140 140
         return toAjax(menuService.deleteMenuById(menuId));
141 141
     }
142
+    /**
143
+     * 根据用户查询菜单权限字符
144
+     */
145
+    @GetMapping("/getMenuPermsByUser")
146
+    public AjaxResult getMenuPermsByUser()
147
+    {
148
+
149
+        return menuService.getMenuPermsByUser();
150
+    }
142 151
 }

+ 134
- 31
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/AdjudicationController.java Просмотреть файл

@@ -1,11 +1,17 @@
1 1
 package com.ruoyi.web.controller.wisdomarbitrate;
2 2
 
3 3
 import cn.hutool.core.collection.CollectionUtil;
4
+import cn.hutool.core.util.StrUtil;
5
+import com.ruoyi.common.constant.CaseApplicationConstants;
4 6
 import com.ruoyi.common.core.controller.BaseController;
5 7
 import com.ruoyi.common.core.domain.AjaxResult;
8
+import com.ruoyi.common.core.page.TableDataInfo;
6 9
 import com.ruoyi.common.core.redis.RedisCache;
10
+import com.ruoyi.common.exception.EsignDemoException;
11
+import com.ruoyi.wisdomarbitrate.StringIdsReq;
7 12
 import com.ruoyi.wisdomarbitrate.domain.BatchCaseApplication;
8 13
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
14
+import com.ruoyi.wisdomarbitrate.domain.SealSignRecord;
9 15
 import com.ruoyi.wisdomarbitrate.domain.vo.BookSendVO;
10 16
 import com.ruoyi.wisdomarbitrate.domain.vo.LogisticsInfoVO;
11 17
 import com.ruoyi.wisdomarbitrate.service.IAdjudicationService;
@@ -14,6 +20,7 @@ import org.springframework.security.access.prepost.PreAuthorize;
14 20
 import org.springframework.validation.annotation.Validated;
15 21
 import org.springframework.web.bind.annotation.*;
16 22
 
23
+import java.io.IOException;
17 24
 import java.util.List;
18 25
 
19 26
 @RestController
@@ -22,7 +29,65 @@ public class AdjudicationController extends BaseController {
22 29
     @Autowired
23 30
     private IAdjudicationService adjudicationService;
24 31
 
32
+    /**
33
+     * 根据签署流程id查询批量签名链接
34
+     */
35
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSignUrl')")
36
+    @PostMapping("/selectBatchSignUrl")
37
+    public AjaxResult selectBatchSignUrl(@RequestBody StringIdsReq idsReq) {
38
+        if(CollectionUtil.isEmpty(idsReq.getIds())|| StrUtil.isEmpty(idsReq.getPsnAccount())){
39
+            return error("参数校验失败");
40
+        }
41
+        SealSignRecord sealSignRecordselect = adjudicationService.selectBatchSignUrl(idsReq);
42
+        return success(sealSignRecordselect);
43
+    }
25 44
 
45
+    /**
46
+     * 根据批号查询批量签名链接
47
+     */
48
+//    @PostMapping("/getSignUrlBatch")
49
+//    public AjaxResult getSignUrlBatch(@RequestBody StringIdsReq idsReq) {
50
+//        if(StrUtil.isEmpty(idsReq.getBatchNumber().toString())|| StrUtil.isEmpty(idsReq.getPsnAccount())){
51
+//            return error("参数校验失败");
52
+//        }
53
+//        SealSignRecord sealSignRecordselect = adjudicationService.getSignUrlBatch(idsReq);
54
+//        return success(sealSignRecordselect);
55
+//    }
56
+
57
+    /**
58
+     * 根据签署流程id查询批量用印链接
59
+     */
60
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSignUrl')")
61
+    @PostMapping("/selectBatchSealUrl")
62
+    public AjaxResult selectBatchSealUrl(@RequestBody StringIdsReq idsReq) {
63
+        if(CollectionUtil.isEmpty(idsReq.getIds())|| StrUtil.isEmpty(idsReq.getPsnAccount())){
64
+            return error("参数校验失败");
65
+        }
66
+        SealSignRecord sealSignRecordselect = adjudicationService.selectBatchSealUrl(idsReq);
67
+        return success(sealSignRecordselect);
68
+    }
69
+    /**
70
+     * 根据仲裁员手机号分页查询待签名/待用印的案件
71
+     */
72
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSignUrl')")
73
+    @GetMapping("/pageSignAdjudicate")
74
+    public TableDataInfo pageSignAdjudicate(@RequestParam(value = "personAccount",required = false) String personAccount, @RequestParam("caseStatus") Integer caseStatus)  {
75
+        startPage();
76
+        List<CaseApplication> list = adjudicationService.selectSealSigning(personAccount,caseStatus);
77
+        return getDataTable(list);
78
+    }
79
+
80
+    /**
81
+     * 根据批号查询批量用印链接
82
+     */
83
+    @PostMapping("/getSealUrlBatch")
84
+    public AjaxResult getSealUrlBatch(@RequestBody StringIdsReq idsReq) {
85
+        if(StrUtil.isEmpty(idsReq.getBatchNumber().toString())|| StrUtil.isEmpty(idsReq.getPsnAccount())){
86
+            return error("参数校验失败");
87
+        }
88
+        SealSignRecord sealSignRecordselect = adjudicationService.getSealUrlBatch(idsReq);
89
+        return success(sealSignRecordselect);
90
+    }
26 91
 
27 92
 
28 93
     /**
@@ -37,17 +102,33 @@ public class AdjudicationController extends BaseController {
37 102
         }
38 103
         return adjudicationService.createDocument(caseApplication);
39 104
     }
40
-
41 105
     /**
42
-     * 重新生成裁决书
106
+     * 开庭审理,确定审理结果,生成裁决书
107
+     * @param caseApplication
108
+     * @return
109
+     */
110
+    @PostMapping("/caseJudgment")
111
+    public AjaxResult caseJudgment(@Validated @RequestBody CaseApplication caseApplication){
112
+        if (caseApplication.getId() == null) {
113
+            return AjaxResult.error("案件id不能为空");
114
+        }
115
+        return adjudicationService.caseJudgment(caseApplication);
116
+    }
117
+    /**
118
+     * 批量生成裁决书
43 119
      * @param caseApplication
44 120
      * @return
45 121
      */
46
-    @PostMapping("/regenerationDocument")
47
-    public AjaxResult regenerationDocument(@Validated @RequestBody CaseApplication caseApplication){
48
-        return adjudicationService.regenerationDocument(caseApplication);
122
+    @PostMapping("/batchDocument")
123
+    public AjaxResult batchDocument(@Validated @RequestBody BatchCaseApplication caseApplication){
124
+        if (CollectionUtil.isEmpty(caseApplication.getIds())) {
125
+            return AjaxResult.error("参数校验失败");
126
+        }
127
+        return adjudicationService.batchDocument(caseApplication.getIds());
49 128
     }
50 129
 
130
+
131
+
51 132
     /**
52 133
      * 裁决书送达(电子邮件)
53 134
      * @param bookSendVO
@@ -63,23 +144,15 @@ public class AdjudicationController extends BaseController {
63 144
      * @param caseApplication
64 145
      * @return
65 146
      */
66
-    @GetMapping("/logistics")
67
-//    @PreAuthorize("@ss.hasPermi('delivery:detail')")
68
-    public AjaxResult  getLogisticsInfo(CaseApplication caseApplication){
69
-        List<LogisticsInfoVO> logisticsInfo = adjudicationService.getLogisticsInfo(caseApplication);
70
-        return AjaxResult.success(logisticsInfo);
71
-    }
147
+//    @GetMapping("/logistics")
148
+////    @PreAuthorize("@ss.hasPermi('delivery:detail')")
149
+//    public AjaxResult  getLogisticsInfo(CaseApplication caseApplication){
150
+//        List<LogisticsInfoVO> logisticsInfo = adjudicationService.getLogisticsInfo(caseApplication);
151
+//        return AjaxResult.success(logisticsInfo);
152
+//    }
153
+
154
+
72 155
 
73
-    /**
74
-     * 签名(暂时只改案件状态)
75
-     * @param caseApplication
76
-     * @return
77
-     */
78
-    @PostMapping("/signature")
79
-//    @PreAuthorize("@ss.hasPermi('awardManagement:list:sign')")
80
-    public AjaxResult signature(@Validated @RequestBody CaseApplication caseApplication){
81
-        return adjudicationService.signature(caseApplication);
82
-    }
83 156
 
84 157
     /**
85 158
      * 归档(暂时只改案件状态)
@@ -95,6 +168,19 @@ public class AdjudicationController extends BaseController {
95 168
         return adjudicationService.caseFile(batchCaseApplication.getIds());
96 169
     }
97 170
 
171
+    /**
172
+     * 批量归档(暂时只改案件状态)
173
+     * @param caseApplication
174
+     * @return
175
+     */
176
+    @PostMapping("/caseFileBatch")
177
+    public AjaxResult caseFileBatch(@RequestBody CaseApplication caseApplication){
178
+        if(StrUtil.isEmpty(caseApplication.getBatchNumber().toString())){
179
+            return error("参数校验失败");
180
+        }
181
+        return adjudicationService.caseFileBatch(caseApplication.getBatchNumber());
182
+    }
183
+
98 184
     /**
99 185
      * 送达(不包含发送电子邮件)
100 186
      * @param bookSendVO
@@ -105,27 +191,32 @@ public class AdjudicationController extends BaseController {
105 191
     public AjaxResult service(@RequestBody BookSendVO bookSendVO){
106 192
         return adjudicationService.service(bookSendVO.getId(),bookSendVO.getAppEmail(),bookSendVO.getResEmail(),bookSendVO.getApptrackingNum(),bookSendVO.getRestrackingNum());
107 193
     }
194
+
108 195
     /**
109
-     * 用印(暂时只改案件状态)
196
+     * 批量送达仲裁书
110 197
      * @param caseApplication
111 198
      * @return
112 199
      */
113
-    @PostMapping("/stamp")
114
-//    @PreAuthorize("@ss.hasPermi('awardManagement:list:signprint')")
115
-    public AjaxResult stamp(@Validated @RequestBody CaseApplication caseApplication){
116
-        return adjudicationService.stamp(caseApplication);
200
+    @PostMapping("/serviceBatch")
201
+    public AjaxResult serviceBatch(@Validated @RequestBody  CaseApplication caseApplication) throws EsignDemoException, IOException {
202
+        if(StrUtil.isEmpty(caseApplication.getBatchNumber().toString())){
203
+            return error("参数校验失败");
204
+        }
205
+        return adjudicationService.serviceBatch(caseApplication.getBatchNumber());
117 206
     }
118 207
 
208
+
209
+
119 210
     /**
120 211
      * 档案详情查询
121 212
      * @param id 案件id
122 213
      * @return
123 214
      */
124
-    @GetMapping("/archives")
125
-    public AjaxResult getArchivesDetail(Long id){
126
-
127
-        return adjudicationService.getArchivesDetail(id);
128
-    }
215
+//    @GetMapping("/archives")
216
+//    public AjaxResult getArchivesDetail(Long id){
217
+//
218
+//        return adjudicationService.getArchivesDetail(id);
219
+//    }
129 220
     /**
130 221
      * 根据案件id获取邮箱
131 222
      * @param id 案件id
@@ -136,5 +227,17 @@ public class AdjudicationController extends BaseController {
136 227
 
137 228
         return adjudicationService.emailByCaseId(id);
138 229
     }
230
+    /**
231
+     * 开庭审理提交,只改变案件状态为CaseApplicationConstants.VERPRIF_ARBITRATION
232
+     * @param caseApplication 案件
233
+     * @return
234
+     */
235
+    @PostMapping("/changeCaseStatus")
236
+    public AjaxResult changeCaseStatus(@RequestBody CaseApplication caseApplication){
237
+    if(caseApplication.getId()==null){
238
+        return error("参数校验失败");
239
+    }
240
+        return adjudicationService.changeCaseStatus(caseApplication.getId(), CaseApplicationConstants.VERPRIF_ARBITRATION);
241
+    }
139 242
 
140 243
 }

+ 55
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/ArbitrateApplicationController.java Просмотреть файл

@@ -0,0 +1,55 @@
1
+package com.ruoyi.web.controller.wisdomarbitrate;
2
+
3
+import cn.hutool.json.JSONUtil;
4
+import com.ruoyi.common.annotation.Anonymous;
5
+import com.ruoyi.common.core.controller.BaseController;
6
+import com.ruoyi.common.core.domain.AjaxResult;
7
+import com.ruoyi.common.utils.CheckSignatuerUtils;
8
+import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
9
+import com.ruoyi.wisdomarbitrate.domain.dto.CaseApplicationDTO;
10
+import com.ruoyi.wisdomarbitrate.domain.vo.CaseApplicationVO;
11
+import com.ruoyi.wisdomarbitrate.service.ICaseApplicationService;
12
+import org.springframework.beans.BeanUtils;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.validation.annotation.Validated;
15
+import org.springframework.web.bind.annotation.PostMapping;
16
+import org.springframework.web.bind.annotation.RequestBody;
17
+import org.springframework.web.bind.annotation.RequestMapping;
18
+import org.springframework.web.bind.annotation.RestController;
19
+
20
+@RestController
21
+@RequestMapping("/callArbitrateCaseApplication")
22
+public class ArbitrateApplicationController extends BaseController {
23
+    @Autowired
24
+    private ICaseApplicationService caseApplicationService;
25
+
26
+
27
+    /**
28
+     * 新增立案数据
29
+     */
30
+    @Anonymous
31
+    @PostMapping("/generateCaseApplication")
32
+    public AjaxResult generateCaseApplication(@Validated @RequestBody CaseApplicationVO caseApplicationVO) throws Exception {
33
+        String paramsbody = JSONUtil.toJsonStr(caseApplicationVO);
34
+        boolean checkResult= CheckSignatuerUtils.checkSignuter(paramsbody);
35
+        if(checkResult){
36
+            CaseApplicationDTO caseApplication = new CaseApplicationDTO();
37
+            BeanUtils.copyProperties(caseApplicationVO,caseApplication);
38
+            caseApplication.setCreateBy(getUsername());
39
+            return caseApplicationService.insertOrUpdate(caseApplication);
40
+        }else {
41
+            return AjaxResult.error("签名验证失败");
42
+        }
43
+
44
+    }
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+}

+ 6
- 3
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/ArbitratorController.java Просмотреть файл

@@ -1,6 +1,7 @@
1 1
 package com.ruoyi.web.controller.wisdomarbitrate;
2 2
 
3 3
 import com.ruoyi.common.core.controller.BaseController;
4
+import com.ruoyi.common.core.domain.AjaxResult;
4 5
 import com.ruoyi.common.core.domain.entity.SysUser;
5 6
 import com.ruoyi.common.core.page.TableDataInfo;
6 7
 import com.ruoyi.system.mapper.SysUserMapper;
@@ -26,11 +27,13 @@ public class ArbitratorController   extends BaseController {
26 27
      */
27 28
 //    @PreAuthorize("@ss.hasPermi('arbitrator:list')")
28 29
     @GetMapping("/list")
29
-    public TableDataInfo list(Arbitrator arbitrator)
30
+    public AjaxResult list(Arbitrator arbitrator)
30 31
     {
31
-        startPage();
32
+        if(arbitrator.getCaseId()==null){
33
+            return AjaxResult.error("案件id不能为空");
34
+        }
32 35
         List<SysUser> list = sysUserService.selectUserListByAdRole(arbitrator);
33
-        return getDataTable(list);
36
+        return AjaxResult.success(list);
34 37
     }
35 38
 
36 39
 

+ 159
- 61
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java Просмотреть файл

@@ -2,34 +2,30 @@ package com.ruoyi.web.controller.wisdomarbitrate;
2 2
 
3 3
 import cn.hutool.core.collection.CollectionUtil;
4 4
 import cn.hutool.core.util.StrUtil;
5
-import com.alipay.api.internal.util.file.IOUtils;
6 5
 import com.ruoyi.common.annotation.Anonymous;
7 6
 import com.ruoyi.common.annotation.Log;
8
-import com.ruoyi.common.constant.FileTransformation;
9 7
 import com.ruoyi.common.core.controller.BaseController;
10 8
 import com.ruoyi.common.core.domain.AjaxResult;
11 9
 import com.ruoyi.common.core.page.TableDataInfo;
12 10
 import com.ruoyi.common.enums.BusinessType;
13 11
 import com.ruoyi.common.exception.EsignDemoException;
14
-import com.ruoyi.common.exception.ServiceException;
12
+import com.ruoyi.common.utils.StringUtils;
15 13
 import com.ruoyi.common.utils.WxAppletNotifyUtils;
16
-import com.ruoyi.util.FileUtil;
17 14
 import com.ruoyi.wisdomarbitrate.domain.*;
15
+import com.ruoyi.wisdomarbitrate.domain.dto.CaseApplicationDTO;
18 16
 import com.ruoyi.wisdomarbitrate.domain.vo.ReservedConferenceVO;
19 17
 import com.ruoyi.wisdomarbitrate.domain.vo.SendRoomNoMessageVO;
20 18
 import com.ruoyi.wisdomarbitrate.domain.vo.ToDoCount;
19
+import com.ruoyi.wisdomarbitrate.service.IAdjudicationService;
21 20
 import com.ruoyi.wisdomarbitrate.service.ICaseApplicationService;
22 21
 import org.springframework.beans.factory.annotation.Autowired;
23
-import org.springframework.security.access.prepost.PreAuthorize;
24 22
 import org.springframework.validation.annotation.Validated;
25 23
 import org.springframework.web.bind.annotation.*;
26 24
 import com.ruoyi.common.utils.poi.ExcelUtil;
27 25
 import org.springframework.web.multipart.MultipartFile;
28 26
 
29
-import javax.servlet.http.HttpServletRequest;
30 27
 import javax.servlet.http.HttpServletResponse;
31
-import java.io.IOException;
32
-import java.io.InputStream;
28
+import java.io.*;
33 29
 import java.net.URL;
34 30
 import java.net.URLEncoder;
35 31
 import java.util.List;
@@ -40,7 +36,18 @@ import java.util.List;
40 36
 public class CaseApplicationController extends BaseController {
41 37
     @Autowired
42 38
     private ICaseApplicationService caseApplicationService;
39
+    @Autowired
40
+    private IAdjudicationService adjudicationService;
41
+    /**
42
+     * 根据登录人返回用户信息
43
+     */
44
+    @GetMapping("/getUserInfo")
45
+    public AjaxResult getUserInfo()
46
+    {
47
+
43 48
 
49
+        return success(caseApplicationService.getUserInfo());
50
+    }
44 51
 
45 52
     /**
46 53
      * 查询立案数据
@@ -51,11 +58,21 @@ public class CaseApplicationController extends BaseController {
51 58
         if(StrUtil.isEmpty(caseApplication.getSelectCaseStatus())){
52 59
           caseApplication.setSelectCaseStatus("0");
53 60
         }
54
-        startPage();
55
-        List<CaseApplication> list = caseApplicationService.selectCaseApplicationListByRole(caseApplication);
61
+//        List<CaseApplication> list = caseApplicationService.selectCaseApplicationListByRole(caseApplication);
62
+        List<CaseApplication> list = caseApplicationService.page(caseApplication);
56 63
         return getDataTable(list);
57 64
     }
58 65
 
66
+//    /**
67
+//     * 查询批量管理案件列表
68
+//     */
69
+//    @GetMapping("/listBatch")
70
+//    public TableDataInfo listBatch(CaseApplication caseApplication) {
71
+//        startPage();
72
+//        List<CaseApplication> list = caseApplicationService.selectCaseApplicationListBatchByRole(caseApplication);
73
+//        return getDataTable(list);
74
+//    }
75
+
59 76
     /**
60 77
      * 根据角色查询待办数量
61 78
      * @return
@@ -74,24 +91,24 @@ public class CaseApplicationController extends BaseController {
74 91
 //    @PreAuthorize("@ss.hasPermi('caseManagement:list:add')")
75 92
     @Log(title = "新增立案数据", businessType = BusinessType.INSERT)
76 93
     @PostMapping("/addCaseApplication")
77
-    public AjaxResult addCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
94
+    public AjaxResult addCaseApplication(@Validated @RequestBody CaseApplicationDTO caseApplication)
78 95
     {
79 96
 
80 97
         caseApplication.setCreateBy(getUsername());
81
-        return toAjax(caseApplicationService.insertcaseApplication(caseApplication));
98
+        return caseApplicationService.insertOrUpdate(caseApplication);
82 99
     }
83 100
 
84 101
     /**
85 102
      * 修改立案数据
86 103
      */
87 104
 //    @PreAuthorize("@ss.hasPermi('caseManagement:list:update')")
88
-    @Log(title = "修改立案数据", businessType = BusinessType.UPDATE)
89
-    @PostMapping("/editCaseApplication")
90
-    public AjaxResult editCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
91
-
92
-        caseApplication.setUpdateBy(getUsername());
93
-        return caseApplicationService.editCaseApplication(caseApplication);
94
-    }
105
+//    @Log(title = "修改立案数据", businessType = BusinessType.UPDATE)
106
+//    @PostMapping("/editCaseApplication")
107
+//    public AjaxResult editCaseApplication(@Validated @RequestBody CaseApplicationDTO caseApplication) {
108
+//
109
+//        caseApplication.setUpdateBy(getUsername());
110
+//        return caseApplicationService.editCaseApplication(caseApplication);
111
+//    }
95 112
 
96 113
     /**
97 114
      * 修改立案数据自定义字段
@@ -116,6 +133,19 @@ public class CaseApplicationController extends BaseController {
116 133
         return toAjax(caseApplicationService.submitCaseApplication(batchCaseApplication.getIds()));
117 134
     }
118 135
 
136
+    /**
137
+     * 批量提交立案申请
138
+     */
139
+    @Log(title = "批量提交立案申请", businessType = BusinessType.UPDATE)
140
+    @PostMapping("/submitCaseApplicationBatch")
141
+    public AjaxResult submitCaseApplicationBatch(@RequestBody  BatchCaseApplication batchCaseApplication) {
142
+        if(StringUtils.isEmpty(batchCaseApplication.getBatchNumber())){
143
+            return error("参数校验失败");
144
+        }
145
+        return caseApplicationService.submitCaseApplicationBatch(batchCaseApplication.getBatchNumber());
146
+    }
147
+
148
+
119 149
 
120 150
 
121 151
     /**
@@ -132,7 +162,7 @@ public class CaseApplicationController extends BaseController {
132 162
     }
133 163
 
134 164
     /**
135
-     * 查询立案信息
165
+     * 查询立案详情
136 166
      */
137 167
 //     @PreAuthorize("@ss.hasPermi('caseManagement:list:detail')")
138 168
     @PostMapping("/selectCaseApplication")
@@ -141,6 +171,18 @@ public class CaseApplicationController extends BaseController {
141 171
         CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplication(caseApplication);
142 172
         return success(caseApplicationselect);
143 173
     }
174
+    /**
175
+     * 视频会议中查询立案详情
176
+     */
177
+//     @PreAuthorize("@ss.hasPermi('caseManagement:list:detail')")
178
+    @GetMapping("/selectById")
179
+    public AjaxResult selectById(@RequestParam(required = false) Long id ,@RequestParam(required = false) String caseNum) {
180
+        CaseApplication caseApplication = new CaseApplication();
181
+        caseApplication.setId(id);
182
+        caseApplication.setCaseNum(caseNum);
183
+        CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplication(caseApplication);
184
+        return success(caseApplicationselect);
185
+    }
144 186
 
145 187
     /**
146 188
      * 查询已签署裁决书URL
@@ -171,6 +213,7 @@ public class CaseApplicationController extends BaseController {
171 213
         return success(sealSignRecordselect);
172 214
     }
173 215
 
216
+
174 217
     /**
175 218
      * 查询用印链接
176 219
      */
@@ -250,7 +293,10 @@ public class CaseApplicationController extends BaseController {
250 293
     @Log(title = "组庭审核", businessType = BusinessType.UPDATE)
251 294
     @PostMapping("/pendTralCheck")
252 295
     public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication) {
253
-        return toAjax(caseApplicationService.pendTralCheck(caseApplication));
296
+        if(CollectionUtil.isEmpty(caseApplication.getArbitrators())){
297
+            return error("请选择仲裁员");
298
+        }
299
+        return caseApplicationService.pendTralCheck(caseApplication);
254 300
     }
255 301
 
256 302
     /**
@@ -263,6 +309,25 @@ public class CaseApplicationController extends BaseController {
263 309
         return toAjax(caseApplicationService.pendTralSure(caseApplication));
264 310
     }
265 311
 
312
+    /**
313
+     * 批量组庭审核
314
+     */
315
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:checkgroup')")
316
+    @Log(title = "批量组庭审核", businessType = BusinessType.UPDATE)
317
+    @PostMapping("/pendTralCheckBatch")
318
+    public AjaxResult pendTralCheckBatch(@Validated @RequestBody CaseApplication caseApplication) {
319
+        return toAjax(caseApplicationService.pendTralCheckBatch(caseApplication));
320
+    }
321
+
322
+    /**
323
+     * 批量组庭确认
324
+     */
325
+    @Log(title = "批量组庭确认", businessType = BusinessType.UPDATE)
326
+    @PostMapping("/pendTralSureBatch")
327
+    public AjaxResult pendTralSureBatch(@Validated @RequestBody CaseApplication caseApplication) {
328
+        return toAjax(caseApplicationService.pendTralSureBatch(caseApplication));
329
+    }
330
+
266 331
     /**
267 332
      * 修改开庭时间
268 333
      */
@@ -303,6 +368,35 @@ public class CaseApplicationController extends BaseController {
303 368
         return caseApplicationService.arbitratorCheckArbitrateRecord(caseApplication);
304 369
     }
305 370
 
371
+    /**
372
+     * 批量操作仲裁员审核裁决书
373
+     */
374
+    @Log(title = "批量操作仲裁员审核裁决书", businessType = BusinessType.UPDATE)
375
+    @PostMapping("/arbitrator/checkArbitrateRecordBatch")
376
+    public AjaxResult arbitratorCheckArbitrateRecordBatch(@Validated @RequestBody CaseApplication caseApplication) {
377
+
378
+        return caseApplicationService.arbitratorCheckArbitrateRecordBatch(caseApplication);
379
+    }
380
+
381
+    /**
382
+     * 批量部门长审核裁决书
383
+     */
384
+    @Log(title = "批量部门长审核裁决书", businessType = BusinessType.UPDATE)
385
+    @PostMapping("/checkArbitrateRecordBatch")
386
+    public AjaxResult checkArbitrateRecordBatch(@Validated @RequestBody CaseApplication caseApplication) {
387
+
388
+        return caseApplicationService.checkArbitrateRecordBatch(caseApplication);
389
+    }
390
+
391
+    /**
392
+     * 批量核验裁决书
393
+     */
394
+    @Log(title = "批量核验裁决书", businessType = BusinessType.UPDATE)
395
+    @PostMapping("/verificationArbitrateRecordBatch")
396
+    public AjaxResult verificationArbitrateRecordBatch(@Validated @RequestBody CaseApplication caseApplication) {
397
+        return toAjax(caseApplicationService.verificationArbitrateRecordBatch(caseApplication));
398
+    }
399
+
306 400
 
307 401
     /**
308 402
      * 是否指派仲裁员
@@ -327,25 +421,31 @@ public class CaseApplicationController extends BaseController {
327 421
         return success(caseApplicationService.submitCaseApplicationCheck(batchCaseApplication.getIds(),batchCaseApplication.getAgreeOrNotCheck(),batchCaseApplication.getCaseCheckReject()));
328 422
     }
329 423
 
424
+
330 425
     /**
331
-     * 确认缴费查询立案信息
426
+     * 批量提交立案审查
332 427
      */
333
-//    @PreAuthorize("@ss.hasPermi('paymentManagement:list:detail')")
334
-    @PostMapping("/selectCaseApplicationConfirm")
335
-    public AjaxResult selectCaseApplicationConfirm(@Validated @RequestBody CaseApplication caseApplication) {
336
-        CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplicationConfirm(caseApplication);
337
-        return success(caseApplicationselect);
428
+    @Log(title = "批量提交立案审查", businessType = BusinessType.UPDATE)
429
+    @PostMapping("/submitCaseApplicationCheckBatch")
430
+    public AjaxResult submitCaseApplicationCheckBatch(@RequestBody BatchCaseApplication batchCaseApplication) {
431
+        if(StringUtils.isEmpty(batchCaseApplication.getBatchNumber()) || batchCaseApplication.getAgreeOrNotCheck()==null){
432
+            return error("参数校验失败");
433
+        }
434
+        return caseApplicationService.submitCaseApplicationCheckBatch(batchCaseApplication.getBatchNumber(),batchCaseApplication.getAgreeOrNotCheck(),batchCaseApplication.getCaseCheckReject());
338 435
     }
339 436
 
340
-    /**
341
-     * 下载案件压缩包
342
-     */
343
-    @PostMapping("/downloadCaseZipFile")
344
-    public AjaxResult downloadCaseZipFile(@Validated @RequestBody CaseApplication caseApplication) {
437
+//    /**
438
+//     * 下载案件压缩包
439
+//     */
440
+//    @PostMapping("/downloadCaseZipFile")
441
+//    public AjaxResult downloadCaseZipFile(@Validated @RequestBody CaseApplication caseApplication) {
442
+//
443
+//        CaseAttach caseAttach = caseApplicationService.downloadCaseZipFile(caseApplication);
444
+//        return success(caseAttach);
445
+//    }
446
+
447
+
345 448
 
346
-        CaseAttach caseAttach = caseApplicationService.downloadCaseZipFile(caseApplication);
347
-        return success(caseAttach);
348
-    }
349 449
 
350 450
 
351 451
     /**
@@ -367,25 +467,18 @@ public class CaseApplicationController extends BaseController {
367 467
         return success(schemeUrl);
368 468
     }
369 469
 
370
-    /**
371
-     * 生成庭审笔录
372
-     * @param arbitrateRecord
373
-     * @return
374
-     */
375
-    @PostMapping("/creatTrialRecord")
376
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:creatTrialRecord')")
377
-    public AjaxResult creatTrialRecord(@Validated @RequestBody ArbitrateRecord arbitrateRecord){
378
-        return caseApplicationService.creatTrialRecord(arbitrateRecord);
379
-    }
380 470
 
381 471
     /**
382
-     * 记录庭审笔录
472
+     * 确认会议结果
383 473
      * @param arbitrateRecord
384 474
      * @return
385 475
      */
386
-    @PostMapping("/creatTrialRecordnew")
476
+    @PostMapping("/confirmMeetingResult")
387 477
 //    @PreAuthorize("@ss.hasPermi('caseManagement:list:creatTrialRecord')")
388
-    public AjaxResult creatTrialRecordnew(@Validated @RequestBody ArbitrateRecord arbitrateRecord){
478
+    public AjaxResult creatTrialRecordnew( @RequestBody ArbitrateRecord arbitrateRecord){
479
+        if(arbitrateRecord.getCaseAppliId()==null || arbitrateRecord.getAppliIsAbsen()==null || arbitrateRecord.getIsAbsence()==null){
480
+            return error("参数校验失败");
481
+        }
389 482
         return caseApplicationService.creatTrialRecordnew(arbitrateRecord);
390 483
     }
391 484
 
@@ -403,17 +496,7 @@ public class CaseApplicationController extends BaseController {
403 496
         return AjaxResult.success(caseApplicationService.updateCaseLockStatus(caseApplication));
404 497
     }
405 498
 
406
-    /**
407
-     * 查询短信发送记录
408
-     * @param smsSendRecord
409
-     * @return
410
-     */
411
-    @PostMapping("/smsRecord")
412
-    public TableDataInfo getSmsSendRecord(@RequestBody SmsSendRecord smsSendRecord){
413
-        startPage();
414
-        List<SmsSendRecord> list = caseApplicationService.getSmsSendRecord(smsSendRecord);
415
-        return getDataTable(list);
416
-    }
499
+
417 500
     /**
418 501
      * 获取userSign
419 502
      * @param userId
@@ -473,12 +556,14 @@ public class CaseApplicationController extends BaseController {
473 556
     /**
474 557
      * 案件压缩包导入
475 558
      * @param file
559
+     * @param applicantType 申请人类型,自然人-1,机构-2
560
+     * @param resType 被申请人类型,自然人-1,机构-2
476 561
      * @return
477 562
      * @throws IOException
478 563
      */
479 564
     @PostMapping("/uploadCaseZipFile")
480
-    public AjaxResult uploadCaseZipFile(@RequestParam("file") MultipartFile file,@RequestParam("templateId")  Long templateId) throws IOException {
481
-        return caseApplicationService.uploadCaseZipFile(file,templateId);
565
+    public AjaxResult uploadCaseZipFile(@RequestParam("file") MultipartFile file,@RequestParam("templateId")  Long templateId,Integer applicantType,Integer resType) throws IOException {
566
+        return caseApplicationService.uploadCaseZipFile(file,templateId,applicantType,resType);
482 567
     }
483 568
 
484 569
     /**
@@ -493,4 +578,17 @@ public class CaseApplicationController extends BaseController {
493 578
         }
494 579
         return caseApplicationService.updateCaseIdByAnnexId(caseAttach);
495 580
     }
581
+    /**
582
+     * 保存onlyOffice在线编辑的文件
583
+     * @param
584
+     * @return
585
+     */
586
+    @PostMapping("/saveOnlyOfficeFile")
587
+    public AjaxResult saveOnlyOfficeFile(  @RequestBody CaseAttach caseAttach) {
588
+        if(caseAttach.getCaseAppliId()==null||StrUtil.isEmpty(caseAttach.getOnlyOfficeFileId())||StrUtil.isEmpty(caseAttach.getAnnexPath())){
589
+            return error("参数校验失败");
590
+        }
591
+
592
+        return  caseApplicationService.saveOnlyOfficeFile(caseAttach);
593
+    }
496 594
 }

+ 1
- 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationLogController.java Просмотреть файл

@@ -65,7 +65,7 @@ public class CaseApplicationLogController {
65 65
         if(vo.getCaseId()==null || vo.getVersion()==null){
66 66
             return AjaxResult.error("参数校验错误");
67 67
         }
68
-        // todo 需确定
68
+
69 69
         return caseApplicationLogService.revoke(vo);
70 70
     }
71 71
 

+ 22
- 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseArbitrateController.java Просмотреть файл

@@ -30,8 +30,18 @@ public class CaseArbitrateController extends BaseController {
30 30
     @PutMapping("/method")
31 31
 //    @PreAuthorize("@ss.hasPermi('caseManagement:list:checkarbitrationway')")
32 32
     public AjaxResult examineArbitrateMethod(@Validated @RequestBody CaseApplication caseApplication
33
-            , Integer opinion){
34
-        return caseArbitrateService.examineArbitrateMethod(caseApplication,opinion);
33
+            , Integer opinion, Integer arbitratMethod){
34
+        return caseArbitrateService.examineArbitrateMethod(caseApplication,opinion,arbitratMethod);
35
+    }
36
+
37
+    /**
38
+     * 批量审核仲裁方式
39
+     * @param caseApplication
40
+     * @return
41
+     */
42
+    @PostMapping("/methodBatch")
43
+    public AjaxResult examineArbitrateMethodBatch(@Validated @RequestBody CaseApplication caseApplication){
44
+        return caseArbitrateService.examineArbitrateMethodBatch(caseApplication);
35 45
     }
36 46
 
37 47
     /**
@@ -44,4 +54,14 @@ public class CaseArbitrateController extends BaseController {
44 54
         return  caseArbitrateService.writtenHear(caseIds);
45 55
 
46 56
     }
57
+    /**
58
+     * 批量书面审理
59
+     * @param
60
+     * @return
61
+     */
62
+    @PostMapping("/writtenHearBatch")
63
+    public AjaxResult writtenHearBatch(@Validated @RequestBody CaseApplication caseApplication){
64
+        return  caseArbitrateService.writtenHearBatch(caseApplication);
65
+
66
+    }
47 67
 }

+ 23
- 22
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseEvidenceController.java Просмотреть файл

@@ -6,6 +6,7 @@ import com.ruoyi.common.core.controller.BaseController;
6 6
 import com.ruoyi.common.core.domain.AjaxResult;
7 7
 import com.ruoyi.common.core.page.TableDataInfo;
8 8
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
9
+import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
9 10
 import com.ruoyi.wisdomarbitrate.domain.CaseEvidenceDirectory;
10 11
 import com.ruoyi.wisdomarbitrate.domain.dto.CaseEvidenceDTO;
11 12
 import com.ruoyi.wisdomarbitrate.domain.vo.CaseEvidenceVO;
@@ -32,23 +33,23 @@ public class CaseEvidenceController extends BaseController {
32 33
         this.caseEvidenceService = caseEvidenceService;
33 34
     }
34 35
 
35
-    /**
36
-     * 根据案件id查询案件详情
37
-     *
38
-     * @param id
39
-     * @return
40
-     */
41
-    @GetMapping("/{id}")
42
-    public AjaxResult getCaseDetailsById(@PathVariable Long id) {
43
-        String username = this.getUsername();
44
-        return caseEvidenceService.getCaseDetailsById(id, username);
45
-    }
36
+//    /**
37
+//     * 根据案件id查询案件详情
38
+//     *
39
+//     * @param id
40
+//     * @return
41
+//     */
42
+//    @GetMapping("/{id}")
43
+//    public AjaxResult getCaseDetailsById(@PathVariable Long id) {
44
+//        String username = this.getUsername();
45
+//        return caseEvidenceService.getCaseDetailsById(id, username);
46
+//    }
46 47
 
47 48
     /**
48 49
      * 案件证据上传
49 50
      *
50 51
      * @param file      附件
51
-     * @param annexType 附件类型,立案申请书(1)、证据材料(2)、仲裁文书(3)、案件视频(4)、身份证件(5)
52
+     * @param annexType 附件类型,立案申请书(1)、证据材料(2)、裁决书(3)、案件视频(4)、身份证件(5)
52 53
      * @param id        案件申请id
53 54
      * @return
54 55
      */
@@ -101,16 +102,16 @@ public class CaseEvidenceController extends BaseController {
101 102
 
102 103
     /**
103 104
      * 删除附件
104
-     * @param fileIds
105
+     * @param caseAttach
105 106
      * @return
106 107
      */
107 108
     @PostMapping("/deleteFile")
108
-    public AjaxResult deleteFile( @RequestParam("fileIds") List<Integer> fileIds){
109
+    public AjaxResult deleteFile(@RequestBody CaseAttach caseAttach){
109 110
 
110
-        if(CollectionUtil.isEmpty(fileIds)){
111
+        if(CollectionUtil.isEmpty(caseAttach.getFileIds())){
111 112
             return error("附件id不能为空");
112 113
         }
113
-        return toAjax(caseEvidenceService.deleteFile( fileIds));
114
+        return success(caseEvidenceService.deleteFile( caseAttach.getFileIds()));
114 115
     }
115 116
 
116 117
 
@@ -120,12 +121,12 @@ public class CaseEvidenceController extends BaseController {
120 121
      * @param caseStatus
121 122
      * @return
122 123
      */
123
-    @GetMapping("/all")
124
-    public AjaxResult getCaseListAll(@RequestParam("caseStatus") Integer caseStatus) {
125
-
126
-       return success(caseEvidenceService.getCaseListAll(caseStatus));
127
-
128
-    }
124
+//    @GetMapping("/all")
125
+//    public AjaxResult getCaseListAll(@RequestParam("caseStatus") Integer caseStatus) {
126
+//
127
+//       return success(caseEvidenceService.getCaseListAll(caseStatus));
128
+//
129
+//    }
129 130
 
130 131
     /**
131 132
      * 证据确认

+ 2
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseNumRuleController.java Просмотреть файл

@@ -28,6 +28,8 @@ public class CaseNumRuleController  extends BaseController {
28 28
         return caseNumRuleService.insertCaseNumRule(caseNumRule);
29 29
     }
30 30
 
31
+
32
+
31 33
     /**
32 34
      * 修改案件编号规则
33 35
      * @param caseNumRule

+ 50
- 3
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CasePaymentController.java Просмотреть файл

@@ -1,6 +1,9 @@
1 1
 package com.ruoyi.web.controller.wisdomarbitrate;
2 2
 
3
+import cn.hutool.core.collection.CollectionUtil;
3 4
 import com.ruoyi.common.core.domain.AjaxResult;
5
+import com.ruoyi.common.utils.StringUtils;
6
+import com.ruoyi.wisdomarbitrate.domain.BatchCaseApplication;
4 7
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
5 8
 import com.ruoyi.wisdomarbitrate.domain.dto.CaseConfirmPayDTO;
6 9
 import com.ruoyi.wisdomarbitrate.service.ICasePaymentService;
@@ -9,6 +12,9 @@ import org.springframework.beans.factory.annotation.Autowired;
9 12
 import org.springframework.validation.annotation.Validated;
10 13
 import org.springframework.web.bind.annotation.*;
11 14
 
15
+import java.util.ArrayList;
16
+import java.util.List;
17
+
12 18
 /**
13 19
  * 缴费支付
14 20
  */
@@ -41,15 +47,38 @@ public class CasePaymentController {
41 47
         return paymentService.confirmPay(payDTO);
42 48
     }
43 49
 
50
+    /**
51
+     * 批量缴费
52
+     * @param casePayDTO 缴费传入参数
53
+     * @return 统一响应结果
54
+     */
55
+    @PostMapping("/casePayBatch")
56
+    public AjaxResult casePayBatch(@Validated @RequestBody CasePayDTO casePayDTO) {
57
+        return paymentService.casePayBatch(casePayDTO);
58
+    }
59
+
60
+    /**
61
+     * 批量缴费
62
+     * @param payDTO 缴费传入参数
63
+     * @return 统一响应结果
64
+     */
65
+    @PostMapping("/confirmPayBatch")
66
+    public AjaxResult confirmPayBatch(@Validated @RequestBody CasePayDTO payDTO) {
67
+        return paymentService.confirmPayBatch(payDTO);
68
+    }
69
+
44 70
     /**
45 71
      * 缴费确认
46
-     * @param caseApplication
72
+     * @param batchCaseApplication
47 73
      * @return
48 74
      */
49 75
 //    @PreAuthorize("@ss.hasPermi('paymentManagement:list:payconfirm')")
50 76
     @PutMapping("/confirm")
51
-    public AjaxResult confirmPayment(@Validated @RequestBody CaseApplication caseApplication) {
52
-        return paymentService.confirmPayment(caseApplication);
77
+    public AjaxResult confirmPayment(@Validated @RequestBody BatchCaseApplication batchCaseApplication) {
78
+        if(CollectionUtil.isEmpty(batchCaseApplication.getIds()) || batchCaseApplication.getAgreeOrNotCheck()==null){
79
+            return AjaxResult.error("参数校验失败");
80
+        }
81
+            return paymentService.confirmPayment(batchCaseApplication);
53 82
     }
54 83
     /**
55 84
      * 缴费列表查询
@@ -60,4 +89,22 @@ public class CasePaymentController {
60 89
     public AjaxResult casePayList(CasePayDTO casePayDTO) {
61 90
         return paymentService.casePayList(casePayDTO);
62 91
     }
92
+
93
+    @PostMapping("/listBatch")
94
+    public AjaxResult casePayListBatch(@Validated @RequestBody CasePayDTO casePayDTO) {
95
+        return paymentService.casePayListBatch(casePayDTO);
96
+    }
97
+
98
+    /**
99
+     * 批量缴费确认
100
+     * @param batchCaseApplication
101
+     * @return
102
+     */
103
+    @PostMapping("/confirmBatch")
104
+    public AjaxResult confirmPaymentBatch(@Validated @RequestBody BatchCaseApplication batchCaseApplication) {
105
+        if(StringUtils.isEmpty(batchCaseApplication.getBatchNumber())){
106
+            return AjaxResult.error("参数校验失败");
107
+        }
108
+        return paymentService.confirmPaymentBatch(batchCaseApplication.getBatchNumber());
109
+    }
63 110
 }

+ 4
- 5
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/DeptIdentifyController.java Просмотреть файл

@@ -222,14 +222,13 @@ public class DeptIdentifyController extends BaseController {
222 222
 
223 223
     /**
224 224
      * 根据模板id查询模板字段列表
225
-     * @param templateManage
225
+     * @param id
226 226
      * @return
227 227
      */
228 228
     @GetMapping("/getTemplateInfoById")
229
-    public AjaxResult getTemplateInfoById(@RequestBody  TemplateManage templateManage){
230
-        if(templateManage.getId()==null){
231
-            return error("参数校验错误");
232
-        }
229
+    public AjaxResult getTemplateInfoById(@RequestParam("id") Long id){
230
+        TemplateManage templateManage = new TemplateManage();
231
+        templateManage.setId(id);
233 232
         List<FatchRule> fatchRuleList = deptIdentifyService.getTemplateInfoById(templateManage);
234 233
         return AjaxResult.success(fatchRuleList);
235 234
     }

+ 57
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/MsSignSealController.java Просмотреть файл

@@ -0,0 +1,57 @@
1
+package com.ruoyi.web.controller.wisdomarbitrate;
2
+
3
+import com.ruoyi.common.annotation.Anonymous;
4
+import com.ruoyi.common.core.controller.BaseController;
5
+import com.ruoyi.common.core.domain.AjaxResult;
6
+import com.ruoyi.wisdomarbitrate.domain.CaseLogRecord;
7
+import com.ruoyi.wisdomarbitrate.service.MsSignSealService;
8
+import com.ruoyi.wisdomarbitrate.utils.SignVerifyUtils;
9
+import org.springframework.beans.factory.annotation.Autowired;
10
+import org.springframework.web.bind.annotation.PostMapping;
11
+import org.springframework.web.bind.annotation.RequestMapping;
12
+import org.springframework.web.bind.annotation.RestController;
13
+
14
+/**
15
+ * @Classname MsSignSealController
16
+ * @Description TODO
17
+ * @Version 1.0.0
18
+ * @Date 2024/5/10 15:07
19
+ * @Created wangqiong
20
+ */
21
+@RestController
22
+@RequestMapping("/mssignSeal")
23
+public class MsSignSealController extends BaseController {
24
+    @Autowired
25
+    private MsSignSealService msSignSealService;
26
+    /**
27
+     * 签名用印回调
28
+     */
29
+    @Anonymous
30
+    @PostMapping("/signSeaalCaseApplicaCallback")
31
+    public AjaxResult signSeaalCaseApplicaCallback() throws Exception {
32
+        boolean checkResult= SignVerifyUtils.checkSignuter();
33
+        if(checkResult){
34
+            String reqbodystr =SignVerifyUtils.getRequestBody();
35
+            return msSignSealService.signSeaalCaseApplicaCallback(reqbodystr);
36
+        }else {
37
+            return AjaxResult.error("error");
38
+        }
39
+
40
+    }
41
+
42
+    /**
43
+     * 印章审核回调
44
+     */
45
+    @Anonymous
46
+    @PostMapping("/sealCheckCallback")
47
+    public AjaxResult sealCheckCallback() throws Exception {
48
+        boolean checkResult= SignVerifyUtils.checkSignuter();
49
+        if(checkResult){
50
+            String reqbodystr =SignVerifyUtils.getRequestBody();
51
+            return msSignSealService.sealCheckCallback(reqbodystr);
52
+        }else {
53
+            return AjaxResult.error("error");
54
+        }
55
+
56
+    }
57
+}

+ 0
- 48
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/SendMailRecordController.java Просмотреть файл

@@ -1,48 +0,0 @@
1
-package com.ruoyi.web.controller.wisdomarbitrate;
2
-
3
-import com.ruoyi.common.core.controller.BaseController;
4
-import com.ruoyi.common.core.page.TableDataInfo;
5
-import com.ruoyi.wisdomarbitrate.domain.CaseLogRecord;
6
-import com.ruoyi.wisdomarbitrate.domain.SendMailRecord;
7
-import com.ruoyi.wisdomarbitrate.service.ISendMailRecordService;
8
-import org.springframework.beans.factory.annotation.Autowired;
9
-import org.springframework.web.bind.annotation.GetMapping;
10
-import org.springframework.web.bind.annotation.RequestMapping;
11
-import org.springframework.web.bind.annotation.RestController;
12
-
13
-import java.util.List;
14
-
15
-@RestController
16
-@RequestMapping("/sendMailRecord")
17
-public class SendMailRecordController  extends BaseController {
18
-    @Autowired
19
-    private ISendMailRecordService sendMailRecordService;
20
-
21
-    /**
22
-     * 查询发送邮件记录列表
23
-     */
24
-    @GetMapping("/list")
25
-    public TableDataInfo list(SendMailRecord sendMailRecord)
26
-    {
27
-        startPage();
28
-        List<SendMailRecord> list = sendMailRecordService.selectSendMailRecordList(sendMailRecord);
29
-        return getDataTable(list);
30
-    }
31
-
32
-
33
-//    /**
34
-//     * 新增立案数据
35
-//     */
36
-//    @Log(title = "新增立案数据", businessType = BusinessType.INSERT)
37
-//    @PostMapping("/addSendMailRecord")
38
-//    public AjaxResult addSendMailRecord(@Validated @RequestBody SendMailRecord sendMailRecord)
39
-//    {
40
-//
41
-//        return toAjax(sendMailRecordService.addSendMailRecord(sendMailRecord));
42
-//    }
43
-
44
-
45
-
46
-
47
-
48
-}

+ 137
- 4
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/VideoController.java Просмотреть файл

@@ -2,13 +2,23 @@ package com.ruoyi.web.controller.wisdomarbitrate;
2 2
 
3 3
 import cn.hutool.core.util.StrUtil;
4 4
 import com.alibaba.fastjson.JSON;
5
+import com.alibaba.fastjson.JSONArray;
6
+import com.alibaba.fastjson.JSONObject;
5 7
 import com.ruoyi.common.annotation.Anonymous;
8
+import com.ruoyi.common.config.RuoYiConfig;
6 9
 import com.ruoyi.common.core.controller.BaseController;
7 10
 import com.ruoyi.common.core.domain.AjaxResult;
11
+import com.ruoyi.common.utils.SecurityUtils;
12
+import com.ruoyi.common.utils.file.FileUploadUtils;
13
+import com.ruoyi.common.utils.file.FileUtils;
14
+import com.ruoyi.framework.config.ServerConfig;
15
+import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
8 16
 import com.ruoyi.wisdomarbitrate.domain.IdentityAuthentication;
9 17
 import com.ruoyi.wisdomarbitrate.domain.vo.ReservedConferenceVO;
10 18
 import com.ruoyi.wisdomarbitrate.domain.vo.SendRoomNoMessageVO;
11 19
 import com.ruoyi.wisdomarbitrate.domain.vo.WeChatUserVO;
20
+import com.ruoyi.wisdomarbitrate.mapper.CaseAttachMapper;
21
+import com.ruoyi.wisdomarbitrate.service.ICaseApplicationService;
12 22
 import com.ruoyi.wisdomarbitrate.service.VideoService;
13 23
 import com.ruoyi.wisdomarbitrate.service.WeChatUserService;
14 24
 import com.tencentcloudapi.common.Credential;
@@ -25,6 +35,9 @@ import org.springframework.web.multipart.MultipartFile;
25 35
 import javax.servlet.http.HttpServletRequest;
26 36
 import javax.validation.Valid;
27 37
 import java.io.IOException;
38
+import java.util.Objects;
39
+
40
+import static com.google.common.io.Files.getFileExtension;
28 41
 
29 42
 /**
30 43
  * @author wangqiong
@@ -36,7 +49,12 @@ import java.io.IOException;
36 49
 public class VideoController extends BaseController {
37 50
     @Autowired
38 51
     private VideoService videoService;
39
-
52
+    @Autowired
53
+    private ServerConfig serverConfig;
54
+    @Autowired
55
+    private CaseAttachMapper caseAttachMapper;
56
+    @Autowired
57
+    private ICaseApplicationService caseApplicationService;
40 58
     /**
41 59
      * 从腾讯云下载文件到本地
42 60
      * @param
@@ -114,9 +132,8 @@ public class VideoController extends BaseController {
114 132
      */
115 133
     @Anonymous
116 134
     @GetMapping("secretaryRoleByUserId")
117
-    public AjaxResult secretaryRoleByUserId(   @RequestParam(value = "userId",required = true) Long userId) {
118
-
119
-        return  videoService.secretaryRoleByUserId(userId);
135
+    public AjaxResult secretaryRoleByUserId(   @RequestParam(value = "userId",required = true) Long userId,@RequestParam(value = "caseId",required = true) Long caseId) {
136
+        return  videoService.secretaryRoleByUserId(userId,caseId);
120 137
     }
121 138
     /**
122 139
      * 根据html字符串转pdf并和案件关联
@@ -144,6 +161,122 @@ public class VideoController extends BaseController {
144 161
 
145 162
         return  videoService.attachListByCaseId(caseAppliId,annexType);
146 163
     }
164
+    /**
165
+     * 根据案件id查询申请人/被申请人会议上传附件按钮权限
166
+     * @param caseId
167
+     * @return
168
+     */
169
+    @Anonymous
170
+    @GetMapping("selectRoleMenuByCaseId")
171
+    public AjaxResult selectRoleMenuByCaseId(  @RequestParam(value = "caseId",required = true) Long caseId) {
147 172
 
173
+        return  videoService.selectRoleMenuByCaseId(caseId);
174
+    }
175
+    /**
176
+     * 通用上传请求(单个)
177
+     * param officeFlag: 是否上传到onlyoffice,0-否,1-是
178
+     * param isMediaBook: 是否上仲裁书,1-是,其余为否
179
+     */
180
+    @PostMapping("/upload")
181
+    public AjaxResult uploadFile(@RequestParam("file") MultipartFile file, @RequestParam(value = "isMediaBook",required = false) Integer isMediaBook, @RequestParam("annexType") Integer annexType, @RequestParam(value = "officeFlag", required = false) Integer officeFlag,@RequestParam(value = "caseId",required = false) Long caseId) throws Exception
182
+    {
183
+        try
184
+        {
148 185
 
186
+            // 上传文件路径
187
+            String filePath = RuoYiConfig.getUploadPath();
188
+            String name=file.getOriginalFilename();
189
+            // 上传并返回新文件名称
190
+            String fileName = FileUploadUtils.upload(filePath, file);
191
+            String suffix = getFileExtension(fileName);
192
+            if(StrUtil.isNotEmpty(suffix)&& suffix.contains("doc")){
193
+                // 上传到onlyoffice
194
+                officeFlag=1;
195
+            }
196
+            String url = serverConfig.getUrl() + fileName;
197
+            if(officeFlag != null && officeFlag == 1){
198
+                // officeFlag,fileName为annexPath
199
+                JSONArray jsonArray = caseApplicationService.uploadOnlyOffice(fileName,caseId);
200
+                if(jsonArray!=null && jsonArray.size() > 0) {
201
+                    // 先删除之前的裁决书附件
202
+                    if(Objects.equals(annexType,3) && caseId!=null) {
203
+                        caseAttachMapper.deleteCaseAttachByCasedIdAndType(caseId, annexType);
204
+                    }
205
+                    CaseAttach caseAttach=null;
206
+                    for (Object obj : jsonArray) {
207
+                        JSONObject jsonObject = (JSONObject) obj;
208
+                        String path = jsonObject.get("filePath")!=null?jsonObject.getString("filePath"):"";
209
+                        path=path.replace("/home/ruoyi/uploadPath/","profile/");
210
+                        caseAttach = CaseAttach.builder()
211
+                                .caseAppliId(caseId)
212
+//                                .annexName(jsonObject.get("fileName")!=null?jsonObject.getString("fileName"):"")
213
+                                .annexName(name)
214
+                                .annexType(annexType)
215
+                                .onlyOfficeFileId(jsonObject.getString("fileId"))
216
+                                .annexPath(path)
217
+                                .build();
218
+//                        if(jsonObject.get("filePath")!=null){
219
+//                            String officePath = jsonObject.getString("filePath");
220
+//                            String replace = officePath.replace("/home/ruoyi/uploadPath/", "/profile/");
221
+//                            caseAttach.setAnnexPath(replace);
222
+//
223
+//                        }
224
+                        caseAttachMapper.save(caseAttach);
225
+                    }
226
+                    if(caseAttach==null){
227
+                        return AjaxResult.error("上传失败");
228
+                    }
229
+                    AjaxResult ajax = AjaxResult.success();
230
+                    ajax.put("annexId", caseAttach.getAnnexId());
231
+                    ajax.put("annexType", annexType);
232
+                    //     ajax.put("url", url);
233
+                    ajax.put("fileName", name);
234
+                    ajax.put("newFileName", FileUtils.getName(fileName));
235
+                    ajax.put("originalFilename", file.getOriginalFilename());
236
+                    return ajax;
237
+                }else {
238
+                    return AjaxResult.error("上传失败");
239
+                }
240
+            }else {
241
+                // 如果是调解书并且是pdf,则删除之前的在新增
242
+                if(annexType!=null && annexType.equals(3) ){
243
+//                    if(StrUtil.isNotEmpty(suffix)&&!suffix.equals("pdf")){
244
+//                        return AjaxResult.error("请上传pdf格式文件");
245
+//                    }
246
+//                    annexType=AnnexTypeEnum.MEDIATE_BOOK_PDF.getCode();
247
+                    // 先删除之前的附件
248
+                    if(caseId!=null) {
249
+                        caseAttachMapper.deleteCaseAttachByCasedIdAndType(caseId, annexType);
250
+                    }
251
+                }
252
+                Long annexId = saveCaseAttach(annexType, name, file.getOriginalFilename(), caseId);
253
+
254
+                AjaxResult ajax = AjaxResult.success();
255
+                ajax.put("annexId", annexId);
256
+                ajax.put("annexType", annexType);
257
+                ajax.put("url", url);
258
+                ajax.put("fileName", name);
259
+                ajax.put("newFileName", FileUtils.getName(fileName));
260
+                ajax.put("originalFilename", file.getOriginalFilename());
261
+                return ajax;
262
+            }
263
+        }
264
+        catch (Exception e)
265
+        {
266
+            return AjaxResult.error(e.getMessage());
267
+        }
268
+    }
269
+    private Long saveCaseAttach(Integer annexType, String path, String originalFilename,Long caseId) {
270
+        CaseAttach caseAttach = CaseAttach.builder()
271
+                .annexName(originalFilename)
272
+                .caseAppliId(caseId)
273
+                .annexPath(path)
274
+                .annexType(annexType)
275
+                .userId(SecurityUtils.getUserId())
276
+                .userName(SecurityUtils.getUsername())
277
+                .build();
278
+
279
+        caseAttachMapper.save(caseAttach);
280
+        return caseAttach.getAnnexId();
281
+    }
149 282
 }

+ 49
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/sendrecord/SendMailRecordController.java Просмотреть файл

@@ -0,0 +1,49 @@
1
+package com.ruoyi.web.controller.wisdomarbitrate.sendrecord;
2
+
3
+import com.ruoyi.common.core.controller.BaseController;
4
+import com.ruoyi.common.core.domain.AjaxResult;
5
+import com.ruoyi.common.core.page.TableDataInfo;
6
+import com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SendMailRecord;
7
+import com.ruoyi.wisdomarbitrate.service.sendrecord.ISendMailRecordService;
8
+import org.springframework.beans.factory.annotation.Autowired;
9
+import org.springframework.web.bind.annotation.*;
10
+
11
+import java.util.List;
12
+
13
+@RestController
14
+@RequestMapping("/sendMailRecord")
15
+public class SendMailRecordController extends BaseController {
16
+    @Autowired
17
+    private ISendMailRecordService sendMailRecordService;
18
+
19
+    /**
20
+     * 查询发送邮件记录列表
21
+     */
22
+    @GetMapping("/list")
23
+    public TableDataInfo list(SendMailRecord sendMailRecord) {
24
+        startPage();
25
+        List<SendMailRecord> list = sendMailRecordService.selectSendMailRecordList(sendMailRecord);
26
+        return getDataTable(list);
27
+    }
28
+
29
+    /**
30
+     * 编辑邮件记录
31
+     */
32
+    @PostMapping("/update")
33
+    public AjaxResult update(@RequestBody SendMailRecord sendMailRecord) {
34
+        return sendMailRecordService.updateSendMailRecord(sendMailRecord);
35
+    }
36
+
37
+    /**
38
+     * 重新发送邮件记录
39
+     */
40
+    @PostMapping("/reSendMailRecord")
41
+    public AjaxResult reSendMailRecord(@RequestBody SendMailRecord sendMailRecord) {
42
+        Boolean aBoolean = sendMailRecordService.reSendMailRecord(sendMailRecord);
43
+        if (aBoolean) {
44
+            return AjaxResult.success("发送成功");
45
+        } else {
46
+            return AjaxResult.error("发送失败");
47
+        }
48
+    }
49
+}

+ 143
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/sendrecord/ShortMessageController.java Просмотреть файл

@@ -0,0 +1,143 @@
1
+package com.ruoyi.web.controller.wisdomarbitrate.sendrecord;
2
+
3
+import cn.hutool.core.collection.CollectionUtil;
4
+import com.ruoyi.common.annotation.Anonymous;
5
+import com.ruoyi.common.core.controller.BaseController;
6
+import com.ruoyi.common.core.domain.AjaxResult;
7
+import com.ruoyi.common.core.domain.entity.SysUser;
8
+import com.ruoyi.common.core.domain.model.LoginUser;
9
+import com.ruoyi.common.core.page.TableDataInfo;
10
+import com.ruoyi.framework.web.service.TokenService;
11
+
12
+import com.ruoyi.system.mapper.SysUserMapper;
13
+
14
+import com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SmsSendRecord;
15
+import com.ruoyi.wisdomarbitrate.domain.entity.sms.MsSmsSendRecordParam;
16
+import com.ruoyi.wisdomarbitrate.domain.entity.sms.MsSmsTemplateParam;
17
+import com.ruoyi.wisdomarbitrate.domain.shortmessage.MeetingInfo;
18
+import com.ruoyi.wisdomarbitrate.domain.vo.shortmessage.MeetingInfoVO;
19
+import com.ruoyi.wisdomarbitrate.domain.vo.shortmessage.ReSendMessageVO;
20
+import com.ruoyi.wisdomarbitrate.mapper.sendrecord.SmsRecordMapper;
21
+import com.ruoyi.wisdomarbitrate.mapper.shortmessage.MeetingInfoMapper;
22
+import com.ruoyi.wisdomarbitrate.mapper.sms.MsSmsSendHistoryRecordParamMapper;
23
+import com.ruoyi.wisdomarbitrate.mapper.sms.MsSmsSendRecordParamMapper;
24
+import com.ruoyi.wisdomarbitrate.service.shortmessage.ShortMessageService;
25
+import org.springframework.beans.BeanUtils;
26
+import org.springframework.beans.factory.annotation.Autowired;
27
+import org.springframework.web.bind.annotation.*;
28
+import tk.mybatis.mapper.entity.Example;
29
+
30
+import java.util.ArrayList;
31
+import java.util.Date;
32
+import java.util.List;
33
+
34
+@RestController
35
+@RequestMapping("/shortMessage")
36
+public class ShortMessageController extends BaseController {
37
+    @Autowired
38
+    private SmsRecordMapper smsRecordMapper;
39
+    @Autowired
40
+    private ShortMessageService shortMessageService;
41
+    @Autowired
42
+    MsSmsSendRecordParamMapper recordParamMapper;
43
+    @Autowired
44
+    MsSmsSendHistoryRecordParamMapper historyRecordParamMapper;
45
+
46
+    /**
47
+     * 查询短信发送记录
48
+     *
49
+     * @param smsSendRecord
50
+     * @return
51
+     */
52
+    @GetMapping("/recordList")
53
+    public TableDataInfo smsSendRecordList(SmsSendRecord smsSendRecord) {
54
+        startPage();
55
+        List<SmsSendRecord> list = shortMessageService.smsSendRecordList(smsSendRecord);
56
+        return getDataTable(list);
57
+    }
58
+
59
+    @Anonymous
60
+    @PostMapping("/updateSendContent")
61
+    public AjaxResult update(@RequestBody SmsSendRecord smsSendRecord) {
62
+        if (smsSendRecord == null || smsSendRecord.getId() == null || CollectionUtil.isEmpty(smsSendRecord.getTemplateParams())) {
63
+            return AjaxResult.error("参数校验失败");
64
+        }
65
+        // 查询当前版本记录
66
+        SmsSendRecord oldSendRecord = smsRecordMapper.selectById(smsSendRecord.getId());
67
+        smsSendRecord.setUpdateTime(new Date());
68
+        //  更新短信内容,先删除短信记录参数表
69
+        Example recordParamExam = new Example(MsSmsSendRecordParam.class);
70
+        recordParamExam.createCriteria().andEqualTo("smsRecordId", smsSendRecord.getId());
71
+        recordParamMapper.deleteByExample(recordParamExam);
72
+        // 新增短信记录参数表
73
+        List<MsSmsSendRecordParam> recordParams = new ArrayList<>();
74
+        for (MsSmsTemplateParam templateParam : smsSendRecord.getTemplateParams()) {
75
+            MsSmsSendRecordParam recordParam = new MsSmsSendRecordParam();
76
+            recordParam.setSmsRecordId(smsSendRecord.getId());
77
+            recordParam.setParamValue(templateParam.getParamValue());
78
+            recordParams.add(recordParam);
79
+        }
80
+        recordParamMapper.batchInsert(recordParams);
81
+        shortMessageService.insertShortMessageHistoryRecord(oldSendRecord, recordParams);
82
+        return AjaxResult.success();
83
+
84
+    }
85
+
86
+    /**
87
+     * 重新发送短信
88
+     */
89
+    @Anonymous
90
+    @PostMapping("/reSendShortMessage")
91
+    public AjaxResult reSendShortMessage(@RequestBody ReSendMessageVO reSendMessageVO) {
92
+        if (reSendMessageVO != null) {
93
+            AjaxResult result = shortMessageService.reSendShortMessage(reSendMessageVO);
94
+            return result;
95
+        }
96
+        return AjaxResult.error("参数缺失");
97
+    }
98
+
99
+    /**
100
+     * 短信回调
101
+     * @param body
102
+     * @return
103
+     */
104
+    @Anonymous
105
+    @PostMapping("/smsCallBack")
106
+    public AjaxResult smsCallBack(@RequestBody String body) {
107
+       if(body != null){
108
+           return shortMessageService.smsCallBack(body);
109
+       }
110
+        return AjaxResult.error("参数缺失");
111
+    }
112
+
113
+    @Autowired
114
+    MeetingInfoMapper meetingInfoMapper;
115
+    @Autowired
116
+    SysUserMapper sysUserMapper;
117
+    @Autowired
118
+    private TokenService tokenService;
119
+
120
+    /**
121
+     * 查询UID好的密钥
122
+     */
123
+//    @Anonymous
124
+//    @GetMapping("/getMeetingInfo")
125
+//    public Object getEncryptInfoByUid(@RequestParam(name = "authId", required = true) String authId) {
126
+//        MeetingInfoVO result = new MeetingInfoVO();
127
+//        if (authId != null) {
128
+//            MeetingInfo meetingInfo = meetingInfoMapper.selectByPrimaryKey(authId);
129
+//            if (meetingInfo != null && meetingInfo.getUserId() != null) {
130
+//                BeanUtils.copyProperties(meetingInfo, result);
131
+//                SysUser sysUser = sysUserMapper.selectUserById(meetingInfo.getUserId());
132
+//                LoginUser loginUser = new LoginUser();
133
+//                loginUser.setUserId(sysUser.getUserId());
134
+//                loginUser.setUser(sysUser);
135
+//                String token = tokenService.createVideoToken(loginUser, 120);
136
+////                String createToken = createToken(claims);
137
+//                result.setToken(token);
138
+//            }
139
+//            return result;
140
+//        }
141
+//        return AjaxResult.error("查询失败");
142
+//    }
143
+}

+ 55
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/sms/SMSTemplateController.java Просмотреть файл

@@ -0,0 +1,55 @@
1
+package com.ruoyi.web.controller.wisdomarbitrate.sms;
2
+
3
+import com.ruoyi.common.core.controller.BaseController;
4
+import com.ruoyi.common.core.domain.AjaxResult;
5
+import com.ruoyi.common.core.page.TableDataInfo;
6
+import com.ruoyi.wisdomarbitrate.domain.entity.sms.MsSmsTemplate;
7
+import com.ruoyi.wisdomarbitrate.service.sms.SMSTemplateService;
8
+import org.springframework.beans.factory.annotation.Autowired;
9
+import org.springframework.web.bind.annotation.*;
10
+
11
+import java.util.List;
12
+
13
+/**
14
+ * 短信模板控制器
15
+ */
16
+@RestController
17
+@RequestMapping("/smsTemplate")
18
+public class SMSTemplateController extends BaseController {
19
+    @Autowired
20
+    private SMSTemplateService templateService;
21
+
22
+    /**
23
+     * 查询
24
+     * @param
25
+     * @return
26
+     */
27
+    @GetMapping("/page")
28
+    public TableDataInfo page( ){
29
+        startPage();
30
+        List<MsSmsTemplate> list = templateService.page();
31
+        return getDataTable(list);
32
+    }
33
+    /**
34
+     * 新增或者修改
35
+     * @param
36
+     * @return
37
+     */
38
+    @PostMapping("/insert")
39
+    public AjaxResult insert(@RequestBody MsSmsTemplate template){
40
+        return templateService.insert(template);
41
+    }
42
+    /**
43
+     * 删除
44
+     * @param
45
+     * @return
46
+     */
47
+    @PostMapping("/delete")
48
+    public AjaxResult delete(@RequestBody MsSmsTemplate template){
49
+        if(template.getId()==null){
50
+            return AjaxResult.warn("id不能为空");
51
+        }
52
+        return templateService.delete(template.getId());
53
+    }
54
+
55
+}

+ 2
- 1
ruoyi-admin/src/main/resources/application-druid.yml Просмотреть файл

@@ -6,7 +6,8 @@ spring:
6 6
         druid:
7 7
             # 主库数据源
8 8
             master:
9
-                url: jdbc:mysql://121.40.189.20:3306/test_smart_arbitration?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=Asia/Shanghai&useSSL=false
9
+                url: jdbc:mysql://121.40.189.20:3306/test_smart_arbitration?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=true&serverTimezone=Asia/Shanghai&useSSL=false
10
+#                url: jdbc:mysql://121.40.189.20:3306/smart_arbitration?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=true&serverTimezone=Asia/Shanghai&useSSL=false
10 11
                 username: root
11 12
                 password: YMzc157#
12 13
             # 从库数据源

+ 14
- 6
ruoyi-admin/src/main/resources/application.yml Просмотреть файл

@@ -17,7 +17,7 @@ ruoyi:
17 17
 
18 18
 # 开发环境配置
19 19
 server:
20
-  # 服务器的HTTP端口,默认为8080
20
+  # 服务器的HTTP端口,默认为8001,正式9001
21 21
   port: 8001
22 22
   servlet:
23 23
     # 应用的访问路径
@@ -58,9 +58,9 @@ spring:
58 58
   servlet:
59 59
     multipart:
60 60
       # 单个文件大小
61
-      max-file-size: 50MB
61
+      max-file-size: 1000MB
62 62
       # 设置总上传的文件大小
63
-      max-request-size: 500MB
63
+      max-request-size: 10000MB
64 64
   # 服务模块
65 65
   devtools:
66 66
     restart:
@@ -72,8 +72,8 @@ spring:
72 72
     host: 121.40.189.20
73 73
     # 端口,默认为6379
74 74
     port: 6389
75
-    # 数据库索引
76
-    database: 0
75
+    # 数据库索引,2-正式,3-测试
76
+    database: 3
77 77
     # 密码
78 78
     password:
79 79
     # 连接超时时间
@@ -121,7 +121,7 @@ token:
121 121
   # 令牌密钥
122 122
   secret: abcdefghijklmnopqrstuvwxyz
123 123
   # 令牌有效期(默认30分钟)
124
-  expireTime: 30
124
+  expireTime: 1200
125 125
 
126 126
 # MyBatis配置
127 127
 mybatis:
@@ -183,6 +183,14 @@ imConfig:
183 183
   secretId: AKID3xfHgroY4MQHvLXUXMwIQL1UjmbBX1Tv
184 184
   # 腾讯云密钥
185 185
   secretKey: INDrIXcT8YmomZBcsy0oNirnU0LTN4X7
186
+#  onlyOffice系统url配置
187
+onlyOfficeConfig:
188
+  #  url: http://172.16.0.254:9090/files/upload
189
+  url: http://121.40.189.20:9090/files/upload
190
+# 调解机构代码配置
191
+organizeConfig:
192
+  # creditCode
193
+  creditCode: 910000058386410044
186 194
 #jodconverter:
187 195
 #  local:
188 196
 #    host: 121.40.189.20

+ 12
- 0
ruoyi-common/src/main/java/com/ruoyi/common/constant/CacheConstants.java Просмотреть файл

@@ -42,4 +42,16 @@ public class CacheConstants
42 42
      */
43 43
     public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";
44 44
     public static final String  WE_CHAT_SMS_VERIFY_CODE_KEY="we_chat_sms_verify_code:";
45
+    /**
46
+ * 所有用户 redis key
47
+ */
48
+public static final String USER_KEY = "user_key:";
49
+    /**
50
+     * 用户邮箱 redis key
51
+     */
52
+//    public static final String USER_EMAIL_KEY = "user_email_key:";
53
+    /**
54
+     * 角色 redis key
55
+     */
56
+    public static final String ROLE_KEY = "role_key:";
45 57
 }

+ 26
- 20
ruoyi-common/src/main/java/com/ruoyi/common/constant/CaseApplicationConstants.java Просмотреть файл

@@ -4,50 +4,56 @@ package com.ruoyi.common.constant;
4 4
  *
5 5
  */
6 6
 public class CaseApplicationConstants {
7
-    /** 立案申请 */
7
+    /** 申请人/代理人,立案申请 */
8 8
     public static final int CASE_APPLICATION = 0;
9
-    /** 待立案审查 */
9
+    /**
10
+     * 案件新增
11
+     */
12
+    public static final int CASE_INSERT = -2;
13
+    /** 申请人/代理人,案件修改 */
14
+    public static final int CASE_EDIT = -1;
15
+    /** 顾问,待立案审查 */
10 16
     public static final int CASE_CHECK = 1;
11
-    /** 待缴费 */
17
+    /** 申请人、代理人,待缴费 */
12 18
     public static final int PENDING_PAYMENT = 2;
13
-    /** 待缴费确认  */
19
+    /** 财务,待缴费确认  */
14 20
     public static final int PENDING_PAYMENT_CONFIRM = 3;
15
-    /** 待案件质证 */
21
+    /** 被申,待案件质证 */
16 22
     public static final int CASE_CROSSEXAMI = 4;
17 23
 
18
-    /** 待组庭  */
24
+    /** 待定,待组庭  */
19 25
     public static final int PENDING_TRIAL = 26;
20
-    /** 待组庭审核  */
26
+    /** 顾问,待组庭审核  */
21 27
     public static final int CONFIRMDED_PENDING_TRIAL_SUBMMIT = 5;
22
-    /** 待组庭确定   */
28
+    /** 部门长,待组庭确定   */
23 29
     public static final int CONFIRMDED_PENDING_TRIAL = 6;
24 30
 
25
-    /** 待审核仲裁方式 */
31
+    /** 仲裁员,待审核仲裁方式 */
26 32
     public static final int CHECK_ARBITRATION_METHOD = 7;
27
-    /** 待开庭审理 */
33
+    /** 申请人,被申,顾问,仲裁员,待开庭审理 */
28 34
     public static final int PENDING_OPENCOURT_HEAR = 8;
29
-    /** 待书面审理 */
35
+    /** 申请人,被申,顾问,仲裁员,待书面审理 */
30 36
     public static final int PENDING_WRIITEN_HEAR = 9;
31
-    /** 待生成仲裁文书  */
37
+    /** 待生成裁决书  */
32 38
     public static final int GENERATED_ARBITRATION = 10;
33
-    /**待秘书核验仲裁文书*/
39
+    /**顾问,待秘书核验裁决书*/
34 40
     public static final int VERPRIF_ARBITRATION = 11;
35
-    /**待部门长审核仲裁文书*/
41
+    /**部门长,待部门长审核裁决书*/
36 42
     public static final int CHECK_ARBITRATION = 12;
37
-    /**待仲裁文书签名*/
43
+    /**仲裁员,待裁决书签名*/
38 44
     public static final int SIGN_ARBITRATION = 13;
39
-    /** 待仲裁文书用印 */
45
+    /** 顾问,待裁决书用印 */
40 46
     public static final int     ARBITRATED_SEAL = 14;
41
-    /** 待仲裁文书送达 */
47
+    /** 顾问,待裁决书送达 */
42 48
     public static final int ARBITRATION_DELIVERY = 15;
43
-    /** 待案件归档*/
49
+    /** 顾问,待案件归档*/
44 50
     public static final int CASE_FILING = 16;
45 51
     /** 已归档*/
46 52
     public static final int CASE_ARCHIVED = 17;
47 53
 
48
-    /** 待修改开庭时间*/
54
+    /** 顾问,待修改开庭时间*/
49 55
     public static final int MODIFY_HEARDATE = 31;
50
-    /**待仲裁员审核仲裁文书*/
56
+    /**仲裁员,待仲裁员审核裁决书*/
51 57
     public static final int HEAD_CHECK_ARBITRATION = 18;
52 58
 
53 59
 

+ 7
- 0
ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java Просмотреть файл

@@ -154,4 +154,11 @@ public class Constants
154 154
      */
155 155
     public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
156 156
             "org.springframework", "org.apache", "com.ruoyi.common.utils.file", "com.ruoyi.common.config" };
157
+    // 中文逗号分隔符
158
+    public static final String CN_SPLIT_COMMA = ",";
159
+    /**
160
+     * 会议主键Id
161
+     */
162
+    public static final String MEETING_KEY = "meeting_key";
163
+
157 164
 }

+ 4
- 0
ruoyi-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java Просмотреть файл

@@ -1,6 +1,7 @@
1 1
 package com.ruoyi.common.core.controller;
2 2
 
3 3
 import java.beans.PropertyEditorSupport;
4
+import java.util.ArrayList;
4 5
 import java.util.Date;
5 6
 import java.util.List;
6 7
 import org.slf4j.Logger;
@@ -82,6 +83,9 @@ public class BaseController
82 83
     @SuppressWarnings({ "rawtypes", "unchecked" })
83 84
     protected TableDataInfo getDataTable(List<?> list)
84 85
     {
86
+        if(list == null){
87
+            list=new ArrayList<>();
88
+        }
85 89
         TableDataInfo rspData = new TableDataInfo();
86 90
         rspData.setCode(HttpStatus.SUCCESS);
87 91
         rspData.setMsg("查询成功");

+ 62
- 0
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java Просмотреть файл

@@ -54,6 +54,68 @@ public class SysDept extends BaseEntity
54 54
 
55 55
     /** 父部门名称 */
56 56
     private String parentName;
57
+    /**
58
+     * 代码(统一社会信用代码或者身份证号)
59
+     */
60
+    private String code;
61
+
62
+    /**
63
+     * 法定代表人
64
+     */
65
+    private String compLegalPerson;
66
+    /**
67
+     * 住所
68
+     */
69
+    private String home;
70
+    /**
71
+     * 联系地址
72
+     */
73
+    private String address;
74
+    /**
75
+     *
76
+     * 国籍,0-国内,1-国外
77
+     */
78
+    private Integer nationality;
79
+
80
+    public String getCode() {
81
+        return code;
82
+    }
83
+
84
+    public void setCode(String code) {
85
+        this.code = code;
86
+    }
87
+
88
+    public String getCompLegalPerson() {
89
+        return compLegalPerson;
90
+    }
91
+
92
+    public void setCompLegalPerson(String compLegalPerson) {
93
+        this.compLegalPerson = compLegalPerson;
94
+    }
95
+
96
+    public String getHome() {
97
+        return home;
98
+    }
99
+
100
+    public void setHome(String home) {
101
+        this.home = home;
102
+    }
103
+
104
+    public String getAddress() {
105
+        return address;
106
+    }
107
+
108
+    public void setAddress(String address) {
109
+        this.address = address;
110
+    }
111
+
112
+    public Integer getNationality() {
113
+        return nationality;
114
+    }
115
+
116
+    public void setNationality(Integer nationality) {
117
+        this.nationality = nationality;
118
+    }
57 119
 
58 120
     public Integer getDeptType() {
59 121
         return deptType;

+ 81
- 0
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java Просмотреть файл

@@ -38,6 +38,35 @@ public class SysUser extends BaseEntity
38 38
     /** 用户昵称 */
39 39
     @Excel(name = "用户名称")
40 40
     private String nickName;
41
+
42
+    /** 用户昵称和待办数量 */
43
+    private String nickNameAndNum;
44
+
45
+    public String getNickNameAndNum() {
46
+        return nickNameAndNum;
47
+    }
48
+
49
+    public void setNickNameAndNum(String nickNameAndNum) {
50
+        this.nickNameAndNum = nickNameAndNum;
51
+    }
52
+    /** 身份类别,0-身份证,1-护照,默认0 */
53
+    private Integer idType;
54
+    /** 国籍,0-国内,1-国外,默认0 */
55
+
56
+    private Integer nationality;
57
+    /**
58
+     * 生日
59
+     */
60
+    private Date birth;
61
+    /**
62
+     * 住所
63
+     */
64
+    private String home;
65
+    /**
66
+     * 联系地址
67
+     */
68
+    private String address;
69
+
41 70
     /** 用户身份证号 */
42 71
     @Excel(name = "身份证号")
43 72
     private String idCard;
@@ -93,12 +122,64 @@ public class SysUser extends BaseEntity
93 122
 
94 123
     /** 角色ID */
95 124
     private Long roleId;
125
+    /**
126
+     * 职位
127
+     */
128
+    private String position;
129
+
130
+    public String getPosition() {
131
+        return position;
132
+    }
133
+
134
+    public void setPosition(String position) {
135
+        this.position = position;
136
+    }
96 137
 
97 138
     public SysUser()
98 139
     {
99 140
 
100 141
     }
101 142
 
143
+    public Integer getIdType() {
144
+        return idType;
145
+    }
146
+
147
+    public void setIdType(Integer idType) {
148
+        this.idType = idType;
149
+    }
150
+
151
+    public Integer getNationality() {
152
+        return nationality;
153
+    }
154
+
155
+    public void setNationality(Integer nationality) {
156
+        this.nationality = nationality;
157
+    }
158
+
159
+    public Date getBirth() {
160
+        return birth;
161
+    }
162
+
163
+    public void setBirth(Date birth) {
164
+        this.birth = birth;
165
+    }
166
+
167
+    public String getHome() {
168
+        return home;
169
+    }
170
+
171
+    public void setHome(String home) {
172
+        this.home = home;
173
+    }
174
+
175
+    public String getAddress() {
176
+        return address;
177
+    }
178
+
179
+    public void setAddress(String address) {
180
+        this.address = address;
181
+    }
182
+
102 183
     public SysUser(Long userId)
103 184
     {
104 185
         this.userId = userId;

+ 64
- 0
ruoyi-common/src/main/java/com/ruoyi/common/enums/SMSStatusEnum.java Просмотреть файл

@@ -0,0 +1,64 @@
1
+package com.ruoyi.common.enums;
2
+
3
+
4
+
5
+/**
6
+ * @author wangqiong
7
+ * @description 短信状态枚举
8
+ * @date 2023-11-17 14:05
9
+ */
10
+public enum SMSStatusEnum
11
+{
12
+    SUCCESS(1, "成功"),
13
+    SENDING(2, "发送中"),
14
+    FAIL(3, "失败"),
15
+
16
+    ;
17
+
18
+    private final Integer code;
19
+    private final String text;
20
+
21
+    SMSStatusEnum(Integer code, String text)
22
+    {
23
+        this.code = code;
24
+        this.text = text;
25
+    }
26
+
27
+    public Integer getCode()
28
+    {
29
+        return code;
30
+    }
31
+
32
+    public String getText()
33
+    {
34
+        return text;
35
+    }
36
+
37
+    /**
38
+     * 根据code获取text
39
+     * @param codeNo
40
+     * @return
41
+     */
42
+    public static String getTextByCode(Integer codeNo){
43
+        for (SMSStatusEnum value : SMSStatusEnum.values()) {
44
+            if (value.getCode().equals(codeNo)){
45
+                return value.getText();
46
+            }
47
+        }
48
+        return codeNo.toString();
49
+    }
50
+
51
+    /**
52
+     * 根据text获取code
53
+     * @param textStr
54
+     * @return
55
+     */
56
+    public static String getCodeByText(String textStr){
57
+        for (SMSStatusEnum value : SMSStatusEnum.values()) {
58
+            if (value.getText().equals(textStr)){
59
+                return value.getText();
60
+            }
61
+        }
62
+        return textStr;
63
+    }
64
+}

+ 58
- 0
ruoyi-common/src/main/java/com/ruoyi/common/utils/CheckSignatuerUtils.java Просмотреть файл

@@ -0,0 +1,58 @@
1
+package com.ruoyi.common.utils;
2
+
3
+import cn.hutool.core.io.IoUtil;
4
+import cn.hutool.crypto.digest.HMac;
5
+import cn.hutool.crypto.digest.HmacAlgorithm;
6
+import org.springframework.web.context.request.RequestContextHolder;
7
+import org.springframework.web.context.request.ServletRequestAttributes;
8
+
9
+import javax.servlet.http.HttpServletRequest;
10
+import java.io.IOException;
11
+import java.nio.charset.StandardCharsets;
12
+
13
+public class CheckSignatuerUtils {
14
+
15
+    public static String getSign(String paramsbody, String accessSec, long timestamp) {
16
+        String paramsStr = getParamsStr(paramsbody,  timestamp);
17
+        return generateSign(paramsStr, accessSec);
18
+    }
19
+
20
+    public static String getParamsStr(String paramsbody,long timestamp) {
21
+        StringBuilder strbuild = new StringBuilder();
22
+        if (StringUtils.isNotBlank(paramsbody)) {
23
+            strbuild.append(paramsbody).append('#');
24
+        }
25
+        strbuild.append("#timestamp=").append(timestamp);
26
+        return strbuild.toString();
27
+    }
28
+
29
+    public static String generateSign(String paramsStr, String accessSec) {
30
+        HMac hMac = new HMac(HmacAlgorithm.HmacSHA256, accessSec.getBytes(StandardCharsets.UTF_8));
31
+        return hMac.digestHex(paramsStr);
32
+    }
33
+
34
+    public static boolean checkSignuter(String paramsbody) throws Exception {
35
+        HttpServletRequest reqParam = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest();
36
+        String timestampstr = reqParam.getHeader("timestampstr");
37
+        String signstr = reqParam.getHeader("signstr");
38
+        String accessSec = "mCFMA6ffe938v79m";
39
+        String newSignuter = getSign(paramsbody, accessSec,Long.parseLong(timestampstr));
40
+        if (StringUtils.equals(signstr, newSignuter)) {
41
+            return true;
42
+        }else {
43
+            return false;
44
+        }
45
+
46
+    }
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+}

+ 200
- 20
ruoyi-common/src/main/java/com/ruoyi/common/utils/EmailOutUtil.java Просмотреть файл

@@ -1,9 +1,13 @@
1 1
 package com.ruoyi.common.utils;
2 2
 
3 3
 
4
+
5
+import cn.hutool.core.util.StrUtil;
6
+import com.ruoyi.common.utils.uuid.UUID;
4 7
 import lombok.Data;
5 8
 import lombok.extern.slf4j.Slf4j;
6 9
 import org.springframework.beans.factory.annotation.Value;
10
+import org.springframework.mail.MailException;
7 11
 import org.springframework.mail.SimpleMailMessage;
8 12
 
9 13
 import org.springframework.mail.javamail.JavaMailSender;
@@ -14,18 +18,17 @@ import org.springframework.stereotype.Component;
14 18
 import javax.activation.DataHandler;
15 19
 import javax.mail.*;
16 20
 import javax.mail.internet.*;
21
+import javax.mail.search.*;
17 22
 import javax.mail.util.ByteArrayDataSource;
18 23
 import javax.validation.constraints.NotNull;
19
-import java.io.File;
20
-import java.io.IOException;
24
+import java.io.*;
21 25
 import java.nio.file.Files;
22 26
 import java.nio.file.Paths;
23 27
 import java.security.Security;
24
-import java.util.Date;
25
-import java.util.List;
26
-import java.util.Properties;
28
+import java.util.*;
27 29
 import java.util.regex.Matcher;
28 30
 import java.util.regex.Pattern;
31
+import java.util.stream.Stream;
29 32
 
30 33
 /**
31 34
  * @ClassName EmailInUtil
@@ -50,8 +53,10 @@ public class EmailOutUtil {
50 53
     private String hostOut;
51 54
     @Value("${spring.mail.username}")
52 55
     private String usernameOut;
56
+
53 57
     @Value("${spring.mail.password}")
54 58
     private String passwordOut;
59
+
55 60
     @Value("${spring.mail.port}")
56 61
     private Integer portOut;
57 62
 
@@ -73,18 +78,29 @@ public class EmailOutUtil {
73 78
      * @param subject 邮件主题
74 79
      * @param content 邮件内容(发送内容)
75 80
      */
76
-    public void sendMessage(String to, String subject, String content, String from, JavaMailSender mailSender) {
77
-        // 创建一个邮件对象
78
-        SimpleMailMessage msg = new SimpleMailMessage();
79
-        msg.setFrom(from);
80
-        msg.setTo(to);
81
-        // 设置邮件主题
82
-        msg.setSubject(subject);
83
-        // 设置邮件内容
84
-        msg.setText(content);
85
-        // 发送邮件
86
-        mailSender.send(msg);
87
-        ////System.out.println("发送成功:" + from + ":to:" + to);
81
+    public Boolean sendMessage(String to, String subject, String content, String from, JavaMailSender mailSender) {
82
+        try {
83
+            if(mailSender==null){
84
+                mailSender=  rebuildMailSender();
85
+            }
86
+            // 创建一个邮件对象
87
+            SimpleMailMessage msg = new SimpleMailMessage();
88
+            if(StrUtil.isEmpty(from)){
89
+                msg.setFrom(usernameOut);
90
+            }else {
91
+                msg.setFrom(from);
92
+            }
93
+            msg.setTo(to);
94
+            // 设置邮件主题
95
+            msg.setSubject(subject);
96
+            // 设置邮件内容
97
+            msg.setText(content);
98
+            // 发送邮件
99
+            mailSender.send(msg);
100
+        } catch (MailException e) {
101
+            return false;
102
+        }
103
+        return true;
88 104
     }
89 105
 
90 106
     /**
@@ -92,13 +108,14 @@ public class EmailOutUtil {
92 108
      * @param message  邮件内容
93 109
      * @param subject  邮件主题
94 110
      * @param fileList 邮件附件
111
+     * @param fileNameMap 附件名称map,附件路径-附件名称
95 112
      */
96
-    public  Boolean sendEmil(String to, String message, String subject, List<File> fileList, File file) {
113
+    public  Boolean sendEmil(String to, String message, String subject, List<File> fileList, File file,Map<String,String> fileNameMap) {
97 114
         try {
98 115
             String messageContent = "<html><body><p style=\"font-family: Arial, sans-serif; font-size: 18px;\">"+message+"。</p></body></html>";
99 116
             MimeBodyPart messageBodyPart = new MimeBodyPart();
100 117
             messageBodyPart.setContent(messageContent, "text/html;charset=utf-8");
101
-            Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
118
+            messageBodyPart.setContentID(UUID.randomUUID().toString());
102 119
             final String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory";
103 120
             //设置邮件会话参数
104 121
             Properties props = new Properties();
@@ -150,7 +167,10 @@ public class EmailOutUtil {
150 167
                     for (File tempfile : fileList) {
151 168
                         MimeBodyPart attachmentPart = new MimeBodyPart();
152 169
                         attachmentPart.attachFile(tempfile);
153
-                        attachmentPart.setFileName(MimeUtility.encodeText(tempfile.getName()));
170
+                        // 设置附件名称
171
+                        if(fileNameMap!=null && fileNameMap.containsKey(tempfile.getPath())) {
172
+                            attachmentPart.setFileName(MimeUtility.encodeText(fileNameMap.get(tempfile.getPath())));
173
+                        }
154 174
                         multipart.addBodyPart(attachmentPart);
155 175
                     }
156 176
                     msg.setContent(multipart);
@@ -269,4 +289,164 @@ public class EmailOutUtil {
269 289
         }
270 290
         return flag;
271 291
     }
292
+    public  void buildReceiveConnect() throws Exception {
293
+
294
+        //POP3主机名
295
+        String host = "pop3.163.com";
296
+        //设置传输协议
297
+        String protocol = "pop3";
298
+        //用户账号
299
+        String username = "wq18792927508@163.com";
300
+        //密码或者授权码
301
+        String password = "WDFHKSEMCKVRELEA";
302
+        /*
303
+         * 获取Session
304
+         */
305
+        Properties props = new Properties();
306
+        //协议
307
+        props.setProperty("mail.store.protocol", protocol);
308
+        //POP3主机名
309
+        props.setProperty("mail.pop3.host", host);
310
+        props.setProperty("mail.smtp.auth", "true");
311
+        props.setProperty("mail.pop3.default-encoding", "UTF-8");
312
+        Session session = Session.getDefaultInstance(props, new Authenticator() {
313
+            @Override
314
+            protected PasswordAuthentication getPasswordAuthentication() {
315
+                return new PasswordAuthentication(usernameOut, passwordOut);
316
+            }
317
+        });
318
+        URLName urlName = new URLName(protocol, host, 110, null, username, password);
319
+        Store store = session.getStore(urlName);
320
+        store.connect(username, password);
321
+
322
+
323
+        Folder folder = store.getFolder("INBOX");
324
+
325
+        folder.open(Folder.READ_ONLY);
326
+
327
+    }
328
+    /**
329
+     * 接收邮件
330
+     */
331
+    public List<String> receiverMail() {
332
+        List<String> messageIds=new ArrayList<>();
333
+
334
+//        session.setDebug(true);
335
+
336
+        try {
337
+            //POP3主机名
338
+            String host = "pop3.163.com";
339
+            //设置传输协议
340
+            String protocol = "pop3";
341
+            //用户账号
342
+            String username = "wq18792927508@163.com";
343
+            //密码或者授权码
344
+            String password = "WDFHKSEMCKVRELEA";
345
+            /*
346
+             * 获取Session
347
+             */
348
+            Properties props = new Properties();
349
+            //协议
350
+            props.setProperty("mail.store.protocol", protocol);
351
+            //POP3主机名
352
+            props.setProperty("mail.pop3.host", host);
353
+            props.setProperty("mail.smtp.auth", "true");
354
+            props.setProperty("mail.pop3.default-encoding", "UTF-8");
355
+            Session session = Session.getDefaultInstance(props, new Authenticator() {
356
+                @Override
357
+                protected PasswordAuthentication getPasswordAuthentication() {
358
+                    return new PasswordAuthentication(usernameOut, passwordOut);
359
+                }
360
+            });
361
+            URLName urlName = new URLName(protocol, host, 110, null, username, password);
362
+            Store store = session.getStore(urlName);
363
+            store.connect(username, password);
364
+
365
+
366
+            Folder folder = store.getFolder("INBOX");
367
+            folder.open(Folder.READ_ONLY);
368
+            SearchTerm orTerm = new SubjectTerm("退信");
369
+            //    Message[] messages = folder.search(orTerm);
370
+            Date  endTime= new Date();
371
+            long oneDayMillis=24*60*60*1000L;
372
+            Date startTime=new Date(endTime.getTime()-oneDayMillis);
373
+            //   SearchTerm comparisonTermGe = new SentDateTerm(ComparisonTerm.GE, startTime);
374
+            //   SearchTerm comparisonTermLe = new SentDateTerm(ComparisonTerm.LE, endTime);
375
+            //    SearchTerm comparisonAndTerm = new AndTerm(comparisonTermGe, comparisonTermLe);
376
+            //  SearchTerm searchTerm = new AndTerm(comparisonAndTerm, orTerm);
377
+            Message[] messages = folder.search(orTerm);
378
+            if (messages != null) {
379
+
380
+                Arrays.stream(messages).forEach(message -> {
381
+                    String messageId="";
382
+                    try {
383
+                        messageId = EmailUtil.getMessageId(message,session);
384
+                    } catch (Exception e) {
385
+                        e.printStackTrace();
386
+                    }
387
+                    messageIds.add(messageId);
388
+                });
389
+
390
+            }
391
+
392
+            folder.close(false);
393
+            store.close();
394
+        } catch (Exception e) {
395
+            return messageIds;
396
+        }
397
+        return messageIds;
398
+    }
399
+
400
+    public void analyseMail(Session session, Object content) throws Exception {
401
+
402
+        if (content instanceof Multipart) {
403
+            Multipart multipart = (Multipart) content;
404
+            for (int i = 0; i < multipart.getCount(); i++) {
405
+                BodyPart bodyPart = multipart.getBodyPart(i);
406
+//                if (bodyPart.isMimeType("message/rfc822")) {   if(bodyPart.getContentType().startsWith("Message/Rfc822"));
407
+//                    MimeMessage mimeMessage = new MimeMessage(session, bodyPart.getInputStream());
408
+//                }
409
+                if(bodyPart.isMimeType("Message/Rfc822")){
410
+                    MimeMessage mimeMessage = new MimeMessage(session, bodyPart.getInputStream());
411
+                }
412
+            }
413
+        }
414
+    }
415
+    public static String getMessageId(Part part) throws Exception {
416
+        if (!part.isMimeType("multipart/*")) {
417
+            return "";
418
+        }
419
+
420
+        Multipart multipart = (Multipart) part.getContent();
421
+        for (int i = 0; i < multipart.getCount(); i++) {
422
+            BodyPart bodyPart = multipart.getBodyPart(i);
423
+
424
+            if (part.isMimeType("message/rfc822")) {
425
+                return getMessageId((Part) part.getContent());
426
+            }
427
+            InputStream inputStream = bodyPart.getInputStream();
428
+
429
+            try (BufferedReader br = new BufferedReader(new InputStreamReader(inputStream))) {
430
+                String strLine;
431
+                while ((strLine = br.readLine()) != null) {
432
+                    if (strLine.startsWith("Message_Id:")) {
433
+                        String[] split = strLine.split("Message_Id:");
434
+                        return split.length > 1 ? split[1].trim() : null;
435
+                    }
436
+                }
437
+            }
438
+        }
439
+
440
+        return "";
441
+    }
442
+
443
+
444
+//检查退信邮件
445
+//                Folder folder = ...; //打开收件箱
446
+//                Message[] messages = folder.getMessages();
447
+//                for (Message message : messages) {
448
+//                    if (message.getSubject().contains("Delivery Status Notification")) {
449
+//                        System.out.println("Delivery failed for recipient: " + message.getRecipients()[0]);
450
+//                    }
451
+//                }
272 452
 }

+ 68
- 0
ruoyi-common/src/main/java/com/ruoyi/common/utils/EmailUtil.java Просмотреть файл

@@ -0,0 +1,68 @@
1
+package com.ruoyi.common.utils;
2
+
3
+import lombok.extern.slf4j.Slf4j;
4
+
5
+import javax.mail.*;
6
+import javax.mail.internet.MimeMessage;
7
+import java.io.BufferedReader;
8
+import java.io.IOException;
9
+import java.io.InputStream;
10
+import java.io.InputStreamReader;
11
+
12
+@Slf4j
13
+public final class EmailUtil {
14
+
15
+    private static final String multipart = "multipart/*";
16
+
17
+
18
+
19
+    public static String getMessageId(Part part, Session session) throws Exception {
20
+         if (!part.isMimeType(multipart)) {
21
+            return "";
22
+
23
+        }
24
+
25
+        Multipart multipart = (Multipart) part.getContent();
26
+        for (int i = 0; i < multipart.getCount(); i++) {
27
+            BodyPart bodyPart = multipart.getBodyPart(i);
28
+            if(bodyPart.getContentType().contains("Message/Rfc822")){
29
+                MimeMessage mimeMessage = new MimeMessage(session, bodyPart.getInputStream());
30
+               if(mimeMessage.getSubject()!=null&&mimeMessage.getSubject().contains("裁决书")){
31
+                   String[] split = mimeMessage.getSubject().split("裁决书");
32
+                   if(split.length>0){
33
+                       return split[0];
34
+                   }
35
+               }
36
+            }
37
+        } return "";
38
+    }
39
+
40
+    public static boolean isContainAttachment(Part part) {
41
+        boolean attachFlag = false;
42
+        try {
43
+            if (part.isMimeType(multipart)) {
44
+                Multipart mp = (Multipart) part.getContent();
45
+                for (int i = 0; i < mp.getCount(); i++) {
46
+                    BodyPart mpart = mp.getBodyPart(i);
47
+                    String disposition = mpart.getDisposition();
48
+                    if ((disposition != null) && ((disposition.equals(Part.ATTACHMENT)) || (disposition.equals(Part.INLINE))))
49
+                        attachFlag = true;
50
+                    else if (mpart.isMimeType(multipart)) {
51
+                        attachFlag = isContainAttachment((Part) mpart);
52
+                    } else {
53
+                        String contype = mpart.getContentType();
54
+                        if (contype.toLowerCase().contains("application"))
55
+                            attachFlag = true;
56
+                        if (contype.toLowerCase().contains("name"))
57
+                            attachFlag = true;
58
+                    }
59
+                }
60
+            } else if (part.isMimeType("message/rfc822")) {
61
+                attachFlag = isContainAttachment((Part) part.getContent());
62
+            }
63
+        } catch (MessagingException | IOException e) {
64
+            e.printStackTrace();
65
+        }
66
+        return attachFlag;
67
+    }
68
+}

+ 1
- 1
ruoyi-common/src/main/java/com/ruoyi/common/utils/PdfUtils.java Просмотреть файл

@@ -44,7 +44,7 @@ public class PdfUtils {
44 44
             document.setMarginMirroring(false);
45 45
             document.open();
46 46
             // 解决PDF中文不显示
47
-            String fontPath = "/D:/simsun.ttf"; //字体文件路径
47
+            String fontPath = "/home/ruoyi/uploadPath/songfont/simsun.ttf"; //字体文件路径
48 48
             XMLWorkerFontProvider provider = new XMLWorkerFontProvider(XMLWorkerFontProvider.DONTLOOKFORFONTS);
49 49
             provider.register(fontPath);//注册字体
50 50
             log.error("注册字体");

+ 0
- 78
ruoyi-common/src/main/java/com/ruoyi/common/utils/SmsUtils.java Просмотреть файл

@@ -1,78 +0,0 @@
1
-package com.ruoyi.common.utils;
2
-
3
-import com.tencentcloudapi.common.Credential;
4
-import com.tencentcloudapi.common.exception.TencentCloudSDKException;
5
-import com.tencentcloudapi.common.profile.ClientProfile;
6
-import com.tencentcloudapi.common.profile.HttpProfile;
7
-import com.tencentcloudapi.cvm.v20170312.CvmClient;
8
-import com.tencentcloudapi.cvm.v20170312.models.DescribeRegionsRequest;
9
-import com.tencentcloudapi.cvm.v20170312.models.DescribeRegionsResponse;
10
-import com.tencentcloudapi.sms.v20210111.SmsClient;
11
-import com.tencentcloudapi.sms.v20210111.models.SendSmsResponse;
12
-import com.tencentcloudapi.sms.v20210111.models.SendStatus;
13
-import lombok.Data;
14
-import lombok.extern.slf4j.Slf4j;
15
-import lombok.var;
16
-
17
-import java.util.Objects;
18
-
19
-@Slf4j
20
-public class SmsUtils {
21
-    //应用id
22
-    private static final String SDK_APP_ID = "1400854852";
23
-    //API的SecretId
24
-    private static final String SECRET_ID = "AKIDeEf2A8uX1HSainvvnXAc3X9ZlhtyvkMp";
25
-    //API的SecretKey
26
-    private static final String SECRET_KEY = "QjphKo8zkHZigT8j9PVtFPJyfIvO3d6V";
27
-    //签名内容
28
-    private static final String SIGN_NAME = "乙巢智慧仲裁网";
29
-
30
-    public static Boolean sendSms(SendSmsRequest request) {
31
-        Credential cred = new Credential(SECRET_ID, SECRET_KEY );
32
-
33
-        SmsClient client = new SmsClient(cred, "ap-guangzhou");
34
-
35
-        final var req = new com.tencentcloudapi.sms.v20210111.models.SendSmsRequest();
36
-        req.setPhoneNumberSet(new String[]{"+86" + request.getPhone()});
37
-        req.setSmsSdkAppId(SDK_APP_ID );
38
-        req.setSignName(SIGN_NAME);
39
-        req.setTemplateId(request.getTemplateId());
40
-        req.setTemplateParamSet(request.getTemplateParamSet());
41
-        SendSmsResponse res = null;
42
-        try {
43
-            res = client.SendSms(req);
44
-        } catch (TencentCloudSDKException e) {
45
-            log.error("发送短信出错:", e);
46
-            return Boolean.FALSE;
47
-        }
48
-        SendStatus sendStatus = res.getSendStatusSet()[0];
49
-        log.info("发送短信结果:Code={}, Message={}", sendStatus.getCode(), sendStatus.getMessage());
50
-
51
-        if (Objects.nonNull(res.getSendStatusSet()) && res.getSendStatusSet().length > 0 && "Ok".equals(res.getSendStatusSet()[0].getCode())){
52
-            return Boolean.TRUE;
53
-        }
54
-        return Boolean.FALSE;
55
-    }
56
-    /**
57
-     * 参数对象
58
-     */
59
-    @Data
60
-    public static class SendSmsRequest {
61
-        /**
62
-         * 电话
63
-         */
64
-        private String phone;
65
-
66
-        /**
67
-         * 模板 ID: 必须填写已审核通过的模板 ID
68
-         */
69
-        private String templateId;
70
-
71
-        /**
72
-         * 模板参数: 模板参数的个数需要与 TemplateId 对应模板的变量个数保持一致,若无模板参数,则设置为空
73
-         */
74
-        private String[] templateParamSet;
75
-        private Long caseId;
76
-
77
-    }
78
-}

+ 23
- 0
ruoyi-common/src/main/java/com/ruoyi/common/utils/ThreadUtil.java Просмотреть файл

@@ -0,0 +1,23 @@
1
+package com.ruoyi.common.utils;
2
+
3
+import com.google.common.util.concurrent.ThreadFactoryBuilder;
4
+
5
+import java.util.concurrent.*;
6
+
7
+/**
8
+ * @Author: ymbgy
9
+ * @Date: 2022-09-23 10:06
10
+ */
11
+public class ThreadUtil {
12
+    public static ExecutorService createThreadPool() {
13
+        //获取系统处理器个数,作为线程池数量
14
+        int nThreads = Runtime.getRuntime().availableProcessors();
15
+        ThreadFactory namedThreadFactory = new ThreadFactoryBuilder()
16
+                .setNameFormat("demo-pool-%d").build();
17
+        //Thread Pool
18
+        ExecutorService executor = new ThreadPoolExecutor(nThreads, 200,
19
+                0L, TimeUnit.MILLISECONDS,
20
+                new LinkedBlockingQueue<Runnable>(1024), namedThreadFactory, new ThreadPoolExecutor.AbortPolicy());
21
+        return executor;
22
+    }
23
+}

+ 2
- 1
ruoyi-framework/src/main/java/com/ruoyi/framework/config/ApplicationConfig.java Просмотреть файл

@@ -1,11 +1,12 @@
1 1
 package com.ruoyi.framework.config;
2 2
 
3 3
 import java.util.TimeZone;
4
-import org.mybatis.spring.annotation.MapperScan;
4
+//import org.mybatis.spring.annotation.MapperScan;
5 5
 import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer;
6 6
 import org.springframework.context.annotation.Bean;
7 7
 import org.springframework.context.annotation.Configuration;
8 8
 import org.springframework.context.annotation.EnableAspectJAutoProxy;
9
+import tk.mybatis.spring.annotation.MapperScan;
9 10
 
10 11
 /**
11 12
  * 程序注解配置

+ 18
- 3
ruoyi-system/pom.xml Просмотреть файл

@@ -12,11 +12,16 @@
12 12
     <artifactId>ruoyi-system</artifactId>
13 13
 
14 14
     <description>
15
-        system系统模块
15
+<!--        system系统模块-->
16 16
     </description>
17 17
 
18 18
     <dependencies>
19
-
19
+        <!--通用mapper-->
20
+        <dependency>
21
+            <groupId>tk.mybatis</groupId>
22
+            <artifactId>mapper-spring-boot-starter</artifactId>
23
+            <version>2.1.5</version>
24
+        </dependency>
20 25
         <!-- 通用工具-->
21 26
         <dependency>
22 27
             <groupId>com.ruoyi</groupId>
@@ -33,7 +38,17 @@
33 38
             <artifactId>tls-sig-api-v2</artifactId>
34 39
             <version>1.2</version>
35 40
         </dependency>
36
-
41
+        <!--通用mapper-->
42
+        <dependency>
43
+            <groupId>tk.mybatis</groupId>
44
+            <artifactId>mapper-spring-boot-starter</artifactId>
45
+            <version>2.1.5</version>
46
+        </dependency>
47
+        <dependency>
48
+            <groupId>org.projectlombok</groupId>
49
+            <artifactId>lombok</artifactId>
50
+            <version>1.18.22</version>
51
+        </dependency>
37 52
     </dependencies>
38 53
 
39 54
 </project>

+ 7
- 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java Просмотреть файл

@@ -124,4 +124,11 @@ public interface SysDeptMapper
124 124
      * @return
125 125
      */
126 126
     int batchSave(@Param("list")List<SysDept> sysDepts);
127
+
128
+    /**
129
+     * 根据部门名称查询部门信息
130
+     * @param deptName
131
+     * @return
132
+     */
133
+    public SysDept selectDeptByName(@Param("deptName") String deptName);
127 134
 }

+ 13
- 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java Просмотреть файл

@@ -171,4 +171,17 @@ public interface SysUserMapper
171 171
      * @return
172 172
      */
173 173
     int batchSave(@Param("list")List<SysUser> addUsers);
174
+    /**
175
+     * 根据邮箱查询用户信息
176
+     * @param email
177
+     * @return
178
+     */
179
+    SysUser selectUserByEmail(String email);
180
+
181
+    /**
182
+     * 根据角色查询用户
183
+     * @param 法律顾问
184
+     * @return
185
+     */
186
+    SysUser selectUserByRole(String 法律顾问);
174 187
 }

+ 9
- 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserRoleMapper.java Просмотреть файл

@@ -59,4 +59,13 @@ public interface SysUserRoleMapper
59 59
      * @return 结果
60 60
      */
61 61
     public int deleteUserRoleInfos(@Param("roleId") Long roleId, @Param("userIds") Long[] userIds);
62
+
63
+    /**
64
+     * 根据用户id查询关联的角色id
65
+     * @param userId
66
+     * @return
67
+     */
68
+    List<Long> selectRoleIdsByUserId(Long userId);
69
+
70
+    void insertUserRole(@Param("userId") Long userId,@Param("roleId")  Long roleId);
62 71
 }

+ 7
- 0
ruoyi-system/src/main/java/com/ruoyi/system/service/ISysMenuService.java Просмотреть файл

@@ -2,6 +2,8 @@ package com.ruoyi.system.service;
2 2
 
3 3
 import java.util.List;
4 4
 import java.util.Set;
5
+
6
+import com.ruoyi.common.core.domain.AjaxResult;
5 7
 import com.ruoyi.common.core.domain.TreeSelect;
6 8
 import com.ruoyi.common.core.domain.entity.SysMenu;
7 9
 import com.ruoyi.system.domain.vo.RouterVo;
@@ -141,4 +143,9 @@ public interface ISysMenuService
141 143
      * @return 结果
142 144
      */
143 145
     public boolean checkMenuNameUnique(SysMenu menu);
146
+    /**
147
+     * 根据用户查询菜单权限字符
148
+     * @return
149
+     */
150
+    AjaxResult getMenuPermsByUser();
144 151
 }

+ 6
- 0
ruoyi-system/src/main/java/com/ruoyi/system/service/ISysUserService.java Просмотреть файл

@@ -20,6 +20,12 @@ public interface ISysUserService
20 20
      * @return 用户信息集合信息
21 21
      */
22 22
     public List<SysUser> selectUserList(SysUser user);
23
+
24
+    /**
25
+     * 查询仲裁员
26
+     * @param arbitrator
27
+     * @return
28
+     */
23 29
     public List<SysUser> selectUserListByAdRole(Arbitrator arbitrator);
24 30
 
25 31
     /**

+ 9
- 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java Просмотреть файл

@@ -8,6 +8,8 @@ import java.util.LinkedList;
8 8
 import java.util.List;
9 9
 import java.util.Set;
10 10
 import java.util.stream.Collectors;
11
+
12
+import com.ruoyi.common.core.domain.AjaxResult;
11 13
 import org.springframework.beans.factory.annotation.Autowired;
12 14
 import org.springframework.stereotype.Service;
13 15
 import com.ruoyi.common.constant.Constants;
@@ -528,4 +530,11 @@ public class SysMenuServiceImpl implements ISysMenuService
528 530
         return StringUtils.replaceEach(path, new String[] { Constants.HTTP, Constants.HTTPS, Constants.WWW, "." },
529 531
                 new String[] { "", "", "", "/" });
530 532
     }
533
+    @Override
534
+    public AjaxResult getMenuPermsByUser() {
535
+        AjaxResult result = AjaxResult.success();
536
+        List<String> perms = menuMapper.selectMenuPermsByUserId(SecurityUtils.getUserId());
537
+        result.put("perms",perms);
538
+        return result;
539
+    }
531 540
 }

+ 63
- 14
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java Просмотреть файл

@@ -6,11 +6,17 @@ import java.util.List;
6 6
 import java.util.stream.Collectors;
7 7
 import javax.validation.Validator;
8 8
 
9
+import cn.hutool.core.collection.CollectionUtil;
10
+import cn.hutool.core.util.StrUtil;
9 11
 import com.ruoyi.common.core.domain.AjaxResult;
10 12
 import com.ruoyi.common.core.domain.entity.SysDept;
11 13
 import com.ruoyi.system.mapper.*;
12 14
 import com.ruoyi.wisdomarbitrate.domain.Arbitrator;
15
+import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
16
+import com.ruoyi.wisdomarbitrate.domain.entity.CaseAffiliateEntity;
17
+import com.ruoyi.wisdomarbitrate.mapper.CaseAffiliateMapper;
13 18
 import com.ruoyi.wisdomarbitrate.mapper.CaseApplicationMapper;
19
+import com.ruoyi.wisdomarbitrate.service.ICaseApplicationService;
14 20
 import org.slf4j.Logger;
15 21
 import org.slf4j.LoggerFactory;
16 22
 import org.springframework.beans.factory.annotation.Autowired;
@@ -64,9 +70,13 @@ public class SysUserServiceImpl implements ISysUserService {
64 70
 
65 71
     @Autowired
66 72
     private CaseApplicationMapper caseApplicationMapper;
73
+    @Autowired
74
+    private CaseAffiliateMapper caseAffiliateMapper;
67 75
 
68 76
     @Autowired
69 77
     protected Validator validator;
78
+    @Autowired
79
+    protected ICaseApplicationService caseApplicationService;
70 80
 
71 81
     /**
72 82
      * 根据条件分页查询用户列表
@@ -80,21 +90,41 @@ public class SysUserServiceImpl implements ISysUserService {
80 90
         return userMapper.selectUserList(user);
81 91
     }
82 92
 
93
+    /**
94
+     * 查询仲裁员
95
+     * @param arbitrator
96
+     * @return
97
+     */
83 98
     @Override
84 99
     public List<SysUser> selectUserListByAdRole(Arbitrator arbitrator) {
100
+        // 根据案件id查询案件
101
+        List<CaseAffiliateEntity> caseAffiliates = caseApplicationService.selectAfflicatesByCaseId(arbitrator.getCaseId());
102
+        List<Long> userIds=new ArrayList<>();
103
+        if(CollectionUtil.isNotEmpty(caseAffiliates)){
104
+            for (CaseAffiliateEntity affiliate : caseAffiliates) {
105
+                if(null!=affiliate.getUserId()) {
106
+                    userIds.add(affiliate.getUserId());
107
+                }
108
+
109
+            }
110
+        }
85 111
         List<SysUser> sysUsers = userMapper.selectUserListByAdRole(arbitrator);
86
-        if(sysUsers!=null&&sysUsers.size()>0){
112
+        List<SysUser> arbitrators = new ArrayList<>();
113
+        if(CollectionUtil.isNotEmpty(sysUsers)){
87 114
             for(SysUser sysUser: sysUsers){
88
-                Long userId = sysUser.getUserId();
89
-                int casenum = caseApplicationMapper.selectCasenum(userId.toString());
90
-                String nickName = sysUser.getNickName();
91
-                String nickNamenew = nickName + "(待办案件数量" + casenum + "个)";
92
-                sysUser.setNickName(nickNamenew);
115
+                if(!userIds.contains(sysUser.getUserId())) {
116
+                    Long userId = sysUser.getUserId();
117
+                    int todoCount = caseApplicationMapper.selectCasenum(userId.toString());
118
+                    String nickName = sysUser.getNickName();
119
+                    String nickNamenew = nickName + "(待办案件数量" + todoCount + "个)";
120
+                    sysUser.setNickNameAndNum(nickNamenew);
121
+                    arbitrators.add(sysUser);
122
+                }
93 123
             }
94 124
 
95 125
         }
96 126
 
97
-        return sysUsers;
127
+        return arbitrators;
98 128
     }
99 129
 
100 130
     /**
@@ -259,6 +289,13 @@ public class SysUserServiceImpl implements ISysUserService {
259 289
     @Override
260 290
     @Transactional
261 291
     public AjaxResult insertUser(SysUser user) {
292
+        // 校验手机号是否重复
293
+        if(StrUtil.isNotEmpty(user.getPhonenumber())){
294
+            if(userMapper.checkPhoneUnique(user.getPhonenumber())!=null){
295
+                return AjaxResult.error("新增用户'" + user.getUserName() + "'失败,手机号码已存在");
296
+            }
297
+        }
298
+
262 299
         Long deptId = user.getDeptId();
263 300
         Long[] postIds = user.getPostIds();
264 301
         if (deptId != null) {
@@ -296,6 +333,11 @@ public class SysUserServiceImpl implements ISysUserService {
296 333
      */
297 334
     @Override
298 335
     public boolean registerUser(SysUser user) {
336
+        if(StrUtil.isNotEmpty(user.getPhonenumber())){
337
+            if(userMapper.checkPhoneUnique(user.getPhonenumber())!=null){
338
+               throw new ServiceException("注册用户'" + user.getUserName() + "'失败,手机号码已存在");
339
+            }
340
+        }
299 341
         return userMapper.insertUser(user) > 0;
300 342
     }
301 343
 
@@ -315,13 +357,15 @@ public class SysUserServiceImpl implements ISysUserService {
315 357
             Integer deptType = dept.getDeptType();
316 358
             if (deptType != null && deptType.intValue() == 1) {
317 359
                 SysPost sysPost = postMapper.selectPostByPostCode("jbr");
318
-                Long postId = sysPost.getPostId();
319
-                if (postIds.length > 0) {
320
-                    boolean isContain = Arrays.asList(postIds).contains(postId);
321
-                    if (isContain) {
322
-                        List<SysUser> sysUsers = userMapper.selectUserByDeptId(deptId);
323
-                        if (sysUsers != null && sysUsers.size() > 0) {
324
-                            return AjaxResult.error("部门类型为仲裁机构的部门的岗位为经办人的用户只能有一个!");
360
+                if(sysPost!=null) {
361
+                    Long postId = sysPost.getPostId();
362
+                    if (postIds.length > 0) {
363
+                        boolean isContain = Arrays.asList(postIds).contains(postId);
364
+                        if (isContain) {
365
+                            List<SysUser> sysUsers = userMapper.selectUserByDeptId(deptId);
366
+                            if (sysUsers != null && sysUsers.size() > 0) {
367
+                                return AjaxResult.error("部门类型为仲裁机构的部门的岗位为经办人的用户只能有一个!");
368
+                            }
325 369
                         }
326 370
                     }
327 371
                 }
@@ -522,6 +566,11 @@ public class SysUserServiceImpl implements ISysUserService {
522 566
                     BeanValidators.validateWithException(validator, user);
523 567
                     user.setPassword(SecurityUtils.encryptPassword(password));
524 568
                     user.setCreateBy(operName);
569
+                    if(StrUtil.isNotEmpty(user.getPhonenumber())){
570
+                        if(userMapper.checkPhoneUnique(user.getPhonenumber())!=null){
571
+                            throw new ServiceException("导入用户'" + user.getUserName() + "'失败,手机号码已存在");
572
+                        }
573
+                    }
525 574
                     userMapper.insertUser(user);
526 575
                     successNum++;
527 576
                     successMsg.append("<br/>" + successNum + "、账号 " + user.getUserName() + " 导入成功");

+ 26
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/StringIdsReq.java Просмотреть файл

@@ -0,0 +1,26 @@
1
+package com.ruoyi.wisdomarbitrate;
2
+
3
+import lombok.Data;
4
+
5
+import java.util.List;
6
+
7
+@Data
8
+public class StringIdsReq {
9
+    private List<String> ids;
10
+    /**
11
+     * 签署人账号(即仲裁员手机号)
12
+     */
13
+    private String psnAccount;
14
+    /**
15
+     * 签署人id
16
+     */
17
+    private String psnId ;
18
+    /**
19
+     * 机构账户
20
+     */
21
+    private String orgId ;
22
+    /**
23
+     * 批号
24
+     */
25
+    private Integer batchNumber;
26
+}

+ 6
- 3
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/ArbitrateRecord.java Просмотреть файл

@@ -28,7 +28,7 @@ public class ArbitrateRecord     extends BaseEntity {
28 28
     /** 仲裁员审核裁决书意见 */
29 29
     private String arbitraCheckOpinion;
30 30
     /** 裁决书附件id */
31
-    private Integer annexId;
31
+    private Long annexId;
32 32
 
33 33
     /** 被申请人是否缺席 */
34 34
     private Integer isAbsence;
@@ -62,14 +62,17 @@ public class ArbitrateRecord     extends BaseEntity {
62 62
      */
63 63
     private String caseCheckReject;
64 64
     /**
65
-     * 仲裁员确认裁决书驳回
65
+     * 裁决书驳回原因
66 66
      */
67 67
     private String arbitrateReject;
68 68
     /**
69 69
      * 部门长确认裁决书驳回
70 70
      */
71 71
     private String deptorReject;
72
-
72
+    /**
73
+     * 缴费确认驳回原因
74
+     */
75
+    private String payRejectReason;
73 76
 
74 77
 
75 78
 

+ 12
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/Arbitrator.java Просмотреть файл

@@ -9,6 +9,10 @@ public class Arbitrator    extends BaseEntity {
9 9
 
10 10
     /** ID */
11 11
     private Long id;
12
+    /**
13
+     * 案件id
14
+     */
15
+    private Long caseId;
12 16
     /** 仲裁员姓名 */
13 17
     private String arbitratorName;
14 18
     /** 职称 */
@@ -47,6 +51,14 @@ public class Arbitrator    extends BaseEntity {
47 51
     /** 已结案数量 */
48 52
     private int closedCaseNum;
49 53
 
54
+    public Long getCaseId() {
55
+        return caseId;
56
+    }
57
+
58
+    public void setCaseId(Long caseId) {
59
+        this.caseId = caseId;
60
+    }
61
+
50 62
     public Long getId() {
51 63
         return id;
52 64
     }

+ 6
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/BatchCaseApplication.java Просмотреть файл

@@ -22,4 +22,10 @@ public class BatchCaseApplication {
22 22
     private Integer  opinion;
23 23
     /** 驳回原因 */
24 24
     private String caseCheckReject;
25
+    /**
26
+     * 批号
27
+     */
28
+    private String batchNumber;
29
+
30
+
25 31
 }

+ 56
- 6
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java Просмотреть файл

@@ -3,6 +3,7 @@ package com.ruoyi.wisdomarbitrate.domain;
3 3
 import com.fasterxml.jackson.annotation.JsonFormat;
4 4
 import com.ruoyi.common.annotation.Excel;
5 5
 import com.ruoyi.common.core.domain.BaseEntity;
6
+import com.ruoyi.wisdomarbitrate.domain.vo.CaseAffiliateVO;
6 7
 import lombok.Data;
7 8
 
8 9
 import com.ruoyi.wisdomarbitrate.domain.vo.ColumnValue;
@@ -17,6 +18,19 @@ public class CaseApplication  extends BaseEntity {
17 18
      * 查询案件时区分是否待办案件,0待办案件,1已办案件
18 19
      */
19 20
     private String selectCaseStatus;
21
+    /**
22
+     * 房间号
23
+     */
24
+    private String roomId;
25
+    /**
26
+     * 仲裁员,0-否,1-是
27
+     */
28
+    private Integer arbitratorFlag;
29
+    /**
30
+     * 第三方代理人,0-否,1-是
31
+     */
32
+    private Integer agentFlag;
33
+
20 34
 
21 35
     /** ID */
22 36
     private Long id;
@@ -26,6 +40,10 @@ public class CaseApplication  extends BaseEntity {
26 40
     /** 案件编号 */
27 41
 //    @Excel(name = "案件编号")
28 42
     private String caseNum;
43
+    /**
44
+     * 是否同意,0-否
45
+     */
46
+    private Integer opinion;
29 47
     /** 案件标的 */
30 48
     @Excel(name = "案件标的")
31 49
     private BigDecimal caseSubjectAmount;
@@ -39,7 +57,7 @@ public class CaseApplication  extends BaseEntity {
39 57
     /** 立案日期 */
40 58
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
41 59
     private Date registerDate;
42
-    /** 仲裁方式 */
60
+    /** 仲裁方式 ,1-开庭,2-书面*/
43 61
     private Integer arbitratMethod;
44 62
     /**
45 63
      * 是否导入,0手动录入,1导入,默认0
@@ -50,12 +68,17 @@ public class CaseApplication  extends BaseEntity {
50 68
 
51 69
     /** 案件状态 */
52 70
     private Integer caseStatus;
71
+    private String caseStatusstr;
53 72
 
54 73
     /** 申请人是否书面审理 */
55 74
     private Integer applicantIsWrittenHear;
56 75
 
57 76
     /** 被申请人是否书面审理 */
58 77
     private Integer respondentIsWrittenHear;
78
+    /** 开庭方式是否一致 */
79
+    private Integer arbitraMethodIssame;
80
+    /** 仲裁方式说明 */
81
+    private String arbitratMethodIllustrate;
59 82
 
60 83
 
61 84
     /** 案件申请表ID */
@@ -183,11 +206,15 @@ public class CaseApplication  extends BaseEntity {
183 206
     /**
184 207
      * 用户id
185 208
      */
186
-    private String userId;
209
+    private Long userId;
187 210
     /**
188 211
      * 登录用户用户名
189 212
      */
190 213
     private String loginUserName;
214
+    /**
215
+     * 登录人电话
216
+     */
217
+    private String loginUserPhone;
191 218
     private List<Long> deptIds;
192 219
     /**
193 220
      * 部门长状态
@@ -202,7 +229,7 @@ public class CaseApplication  extends BaseEntity {
202 229
      */
203 230
     private Integer financeStatus;
204 231
     /**
205
-     * 是否是被申请人,仲裁员,部门长,财务,代理人,0-否,1-是
232
+     * 是否查询全部节点
206 233
      */
207 234
     private Integer isOtherRole;
208 235
     /**
@@ -214,7 +241,7 @@ public class CaseApplication  extends BaseEntity {
214 241
     /** 是否指派仲裁员 */
215 242
     private int pendingAppointArbotrar;
216 243
     /** 案件关联人信息 */
217
-    private List<CaseAffiliate> caseAffiliates;
244
+    private CaseAffiliateVO affiliate;
218 245
 
219 246
     /** 案件仲裁员 */
220 247
     private List<Arbitrator> arbitrators;
@@ -222,7 +249,10 @@ public class CaseApplication  extends BaseEntity {
222 249
     private List<Integer> caseStatusList;
223 250
 
224 251
     private List<Integer> annexTypeList;
225
-
252
+    /**
253
+     * 立案申请书(1)、申请人证据材料(2)、裁决书(3)、案件视频(4)、身份证件(5)
254
+     * 被申请人证据材料 (6)、庭审笔录(7)、缴费凭证(8)、视频录制(9)、公章图片(10)、语音转录文件(11)
255
+     */
226 256
     private Integer annexType;
227 257
     /**
228 258
      * 案件附件列表
@@ -403,9 +433,29 @@ public class CaseApplication  extends BaseEntity {
403 433
     /**
404 434
      * 批号
405 435
      */
406
-    private String batchNumber;
436
+    private Integer batchNumber;
407 437
     /**
408 438
      * 自定义字段
409 439
      */
410 440
     private List<ColumnValue> columnValues;
441
+    /**
442
+     * 待办状态,0待办,1已办
443
+     */
444
+    private Integer pendingStatus;
445
+   /** e签宝流程id */
446
+    private String signFlowId;
447
+    /**
448
+     * 登录用户名
449
+     */
450
+    private String userName;
451
+    // 缴费确认驳回原因
452
+    private String payRejectReason;
453
+    /**
454
+     * 仲裁员确认裁决书驳回原因
455
+     */
456
+    private String arbitrateReject;
457
+    /**
458
+     * deptorReject:部门长驳回原因
459
+     */
460
+    private String deptorReject;
411 461
 }

+ 16
- 5
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseAttach.java Просмотреть файл

@@ -1,19 +1,22 @@
1 1
 package com.ruoyi.wisdomarbitrate.domain;
2 2
 
3
+
3 4
 import lombok.AllArgsConstructor;
4 5
 import lombok.Builder;
5 6
 import lombok.Data;
6 7
 import lombok.NoArgsConstructor;
7 8
 
8
-@Data
9
+import java.util.List;
10
+
9 11
 @Builder
12
+@Data
10 13
 @AllArgsConstructor
11 14
 @NoArgsConstructor
12
-public class  CaseAttach {
15
+public class CaseAttach {
13 16
     /**
14
-     *  附件id
17
+     * 附件id
15 18
      */
16
-    private Integer annexId;
19
+    private Long annexId;
17 20
     /**
18 21
      * 案件申请id
19 22
      */
@@ -22,6 +25,10 @@ public class  CaseAttach {
22 25
      * 案件记录id
23 26
      */
24 27
     private Long caseAppliLogId;
28
+    /**
29
+     * onlyOffice附件id
30
+     */
31
+    private String onlyOfficeFileId;
25 32
     /**
26 33
      * 附件名称
27 34
      */
@@ -31,7 +38,7 @@ public class  CaseAttach {
31 38
      */
32 39
     private String annexPath;
33 40
     /**
34
-     * 附件类型,立案申请书(1)、申请人证据材料(2)、仲裁文书(3)、案件视频(4)、身份证件(5)、被申请人证据材料 (6)、庭审笔录(7)、缴费凭证(8)'
41
+     * 附件类型,立案申请书(1)、申请人证据材料(2)、裁决书(3)、案件视频(4)、身份证件(5)、被申请人证据材料 (6)、庭审笔录(7)、缴费凭证(8)'
35 42
      */
36 43
     private Integer annexType;
37 44
     /**
@@ -54,5 +61,9 @@ public class  CaseAttach {
54 61
      * 是否是证据上传,0-否,1-是
55 62
      */
56 63
     private Integer isBatchUpload;
64
+    /**
65
+     * 附件ids
66
+     */
67
+    private List<Long> fileIds;
57 68
 
58 69
 }

+ 1
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseEvidenceDirectory.java Просмотреть файл

@@ -34,7 +34,7 @@ public class CaseEvidenceDirectory extends BaseEntity {
34 34
     /**
35 35
      * 附件id
36 36
      */
37
-    private Integer annexId;
37
+    private Long annexId;
38 38
 
39 39
     /**
40 40
      * 级数

+ 12
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseLogRecord.java Просмотреть файл

@@ -42,6 +42,18 @@ public class CaseLogRecord     extends BaseEntity {
42 42
      * 下一个节点角色名称
43 43
      */
44 44
     private String nextRoleName;
45
+    /**
46
+     * 当前节点角色名称
47
+     */
48
+    private String currentRoleName;
49
+
50
+    public String getCurrentRoleName() {
51
+        return currentRoleName;
52
+    }
53
+
54
+    public void setCurrentRoleName(String currentRoleName) {
55
+        this.currentRoleName = currentRoleName;
56
+    }
45 57
 
46 58
     public String getNextRoleName() {
47 59
         return nextRoleName;

+ 1
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/SealManage.java Просмотреть файл

@@ -29,7 +29,7 @@ public class SealManage extends BaseEntity {
29 29
     /**
30 30
      * 附件id
31 31
      */
32
-    private Integer annexId;
32
+    private Long annexId;
33 33
 
34 34
     /**
35 35
      * 印章审核状态(0未通过,1通过)

+ 14
- 177
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/SealSignRecord.java Просмотреть файл

@@ -1,7 +1,13 @@
1 1
 package com.ruoyi.wisdomarbitrate.domain;
2 2
 
3 3
 import com.ruoyi.common.core.domain.BaseEntity;
4
+import lombok.AllArgsConstructor;
5
+import lombok.Data;
6
+import lombok.NoArgsConstructor;
4 7
 
8
+@Data
9
+@NoArgsConstructor
10
+@AllArgsConstructor
5 11
 public class SealSignRecord extends BaseEntity {
6 12
     private static final long serialVersionUID = 1L;
7 13
 
@@ -25,15 +31,6 @@ public class SealSignRecord extends BaseEntity {
25 31
     private String orgnizeNamepsnName;
26 32
 
27 33
     String fileDownloadUrl;
28
-
29
-    public String getFileDownloadUrl() {
30
-        return fileDownloadUrl;
31
-    }
32
-
33
-    public void setFileDownloadUrl(String fileDownloadUrl) {
34
-        this.fileDownloadUrl = fileDownloadUrl;
35
-    }
36
-
37 34
     /** 流程状态 */
38 35
     private Integer signFlowStatus;
39 36
     /** 签名状态 */
@@ -44,171 +41,11 @@ public class SealSignRecord extends BaseEntity {
44 41
     /** 签名链接 */
45 42
     private String signUrl;
46 43
 
47
-    public String getSignUrl() {
48
-        return signUrl;
49
-    }
50
-
51
-    public void setSignUrl(String signUrl) {
52
-        this.signUrl = signUrl;
53
-    }
54
-
55
-    public String getSealUrl() {
56
-        return sealUrl;
57
-    }
58
-
59
-    public void setSealUrl(String sealUrl) {
60
-        this.sealUrl = sealUrl;
61
-    }
62
-
63 44
     /** 用印链接 */
64 45
     private String sealUrl;
65 46
 
66 47
     private Long caseAppliId;
67 48
 
68
-    public Long getCaseAppliId() {
69
-        return caseAppliId;
70
-    }
71
-
72
-    public void setCaseAppliId(Long caseAppliId) {
73
-        this.caseAppliId = caseAppliId;
74
-    }
75
-
76
-    public Integer getPsnsignStatus() {
77
-        return psnsignStatus;
78
-    }
79
-
80
-    public void setPsnsignStatus(Integer psnsignStatus) {
81
-        this.psnsignStatus = psnsignStatus;
82
-    }
83
-
84
-    public Integer getOrgsignStatus() {
85
-        return orgsignStatus;
86
-    }
87
-
88
-    public void setOrgsignStatus(Integer orgsignStatus) {
89
-        this.orgsignStatus = orgsignStatus;
90
-    }
91
-
92
-    public Integer getSignFlowStatus() {
93
-        return signFlowStatus;
94
-    }
95
-
96
-    public void setSignFlowStatus(Integer signFlowStatus) {
97
-        this.signFlowStatus = signFlowStatus;
98
-    }
99
-
100
-    public String getFileid() {
101
-        return fileid;
102
-    }
103
-
104
-    public void setFileid(String fileid) {
105
-        this.fileid = fileid;
106
-    }
107
-
108
-    public String getFilename() {
109
-        return filename;
110
-    }
111
-
112
-    public void setFilename(String filename) {
113
-        this.filename = filename;
114
-    }
115
-
116
-    public String getSignFlowid() {
117
-        return signFlowid;
118
-    }
119
-
120
-    public void setSignFlowid(String signFlowid) {
121
-        this.signFlowid = signFlowid;
122
-    }
123
-
124
-    public String getPensonAccount() {
125
-        return pensonAccount;
126
-    }
127
-
128
-    public void setPensonAccount(String pensonAccount) {
129
-        this.pensonAccount = pensonAccount;
130
-    }
131
-
132
-    public String getPensonName() {
133
-        return pensonName;
134
-    }
135
-
136
-    public void setPensonName(String pensonName) {
137
-        this.pensonName = pensonName;
138
-    }
139
-
140
-    public String getOrgnizeName() {
141
-        return orgnizeName;
142
-    }
143
-
144
-    public void setOrgnizeName(String orgnizeName) {
145
-        this.orgnizeName = orgnizeName;
146
-    }
147
-
148
-    public String getOrgnizeNamePsnAccount() {
149
-        return orgnizeNamePsnAccount;
150
-    }
151
-
152
-    public void setOrgnizeNamePsnAccount(String orgnizeNamePsnAccount) {
153
-        this.orgnizeNamePsnAccount = orgnizeNamePsnAccount;
154
-    }
155
-
156
-    public String getOrgnizeNamepsnName() {
157
-        return orgnizeNamepsnName;
158
-    }
159
-
160
-    public void setOrgnizeNamepsnName(String orgnizeNamepsnName) {
161
-        this.orgnizeNamepsnName = orgnizeNamepsnName;
162
-    }
163
-
164
-    public String getPositionPagepsn() {
165
-        return positionPagepsn;
166
-    }
167
-
168
-    public void setPositionPagepsn(String positionPagepsn) {
169
-        this.positionPagepsn = positionPagepsn;
170
-    }
171
-
172
-    public double getPositionXpsn() {
173
-        return positionXpsn;
174
-    }
175
-
176
-    public void setPositionXpsn(double positionXpsn) {
177
-        this.positionXpsn = positionXpsn;
178
-    }
179
-
180
-    public double getPositionYpsn() {
181
-        return positionYpsn;
182
-    }
183
-
184
-    public void setPositionYpsn(double positionYpsn) {
185
-        this.positionYpsn = positionYpsn;
186
-    }
187
-
188
-    public String getPositionPageorg() {
189
-        return positionPageorg;
190
-    }
191
-
192
-    public void setPositionPageorg(String positionPageorg) {
193
-        this.positionPageorg = positionPageorg;
194
-    }
195
-
196
-    public double getPositionXorg() {
197
-        return positionXorg;
198
-    }
199
-
200
-    public void setPositionXorg(double positionXorg) {
201
-        this.positionXorg = positionXorg;
202
-    }
203
-
204
-    public double getPositionYorg() {
205
-        return positionYorg;
206
-    }
207
-
208
-    public void setPositionYorg(double positionYorg) {
209
-        this.positionYorg = positionYorg;
210
-    }
211
-
212 49
     /** 签名位置页数 */
213 50
     private String positionPagepsn;
214 51
     /** 签名位置x坐标 */
@@ -221,15 +58,15 @@ public class SealSignRecord extends BaseEntity {
221 58
     private double positionXorg;
222 59
     /** 印章位置y坐标 */
223 60
     private double positionYorg;
61
+    /**
62
+     * 仲裁员签名状态,1-签名
63
+     */
64
+    private Integer signStatusArbitor;
65
+    /**
66
+     * 用印状态,1用印
67
+     */
68
+    private Integer sealStatus;
224 69
 
225 70
 
226
-    public Long getId() {
227
-        return id;
228
-    }
229
-
230
-    public void setId(Long id) {
231
-        this.id = id;
232
-    }
233
-
234 71
 
235 72
 }

+ 0
- 45
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/SmsSendRecord.java Просмотреть файл

@@ -1,45 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.domain;
2
-
3
-import com.fasterxml.jackson.annotation.JsonFormat;
4
-import com.ruoyi.common.core.domain.BaseEntity;
5
-import lombok.AllArgsConstructor;
6
-import lombok.Data;
7
-import lombok.NoArgsConstructor;
8
-
9
-import java.util.Date;
10
-
11
-@Data
12
-@AllArgsConstructor
13
-@NoArgsConstructor
14
-public class SmsSendRecord extends BaseEntity {
15
-    /**
16
-     * ID
17
-     */
18
-    private Long id;
19
-    /**
20
-     * 案件申请id
21
-     */
22
-    private Long caseId;
23
-    /**
24
-     * 案件编号
25
-     */
26
-    private String caseNum;
27
-    /**
28
-     * 手机号
29
-     */
30
-    private String phone;
31
-    /**
32
-     * 发送时间
33
-     */
34
-    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
35
-    private Date sendTime;
36
-    /**
37
-     * 发送内容
38
-     */
39
-    private String sendContent;
40
-
41
-    /**
42
-     * 发送状态
43
-     */
44
-    private Integer sendStatus;
45
-}

+ 309
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/dto/CaseApplicationDTO.java Просмотреть файл

@@ -0,0 +1,309 @@
1
+package com.ruoyi.wisdomarbitrate.domain.dto;
2
+
3
+import com.fasterxml.jackson.annotation.JsonFormat;
4
+import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
5
+import com.ruoyi.wisdomarbitrate.domain.vo.CaseAffiliateVO;
6
+import com.ruoyi.wisdomarbitrate.domain.vo.ColumnValue;
7
+import lombok.AllArgsConstructor;
8
+import lombok.Data;
9
+import lombok.NoArgsConstructor;
10
+
11
+import java.io.Serializable;
12
+import java.math.BigDecimal;
13
+import java.util.Date;
14
+import java.util.List;
15
+
16
+/**
17
+ * @Classname CaseApplicationDTO
18
+ * @Description 案件申请表
19
+ * @Version 1.0.0
20
+ * @Date 2024/5/22 9:19
21
+ * @Created wangqiong
22
+ */
23
+@Data
24
+@AllArgsConstructor
25
+@NoArgsConstructor
26
+public class CaseApplicationDTO implements Serializable {
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    /**
30
+     * id
31
+     */
32
+    private Long id;
33
+
34
+    /**
35
+     * 案件编号
36
+     */
37
+    private String caseNum;
38
+
39
+    /**
40
+     * 案件标的
41
+     */
42
+    private BigDecimal caseSubjectAmount;
43
+
44
+    /**
45
+     * 立案日期
46
+     */
47
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
48
+    private Date registerDate;
49
+
50
+    /**
51
+     * 仲裁方式,视频仲裁(1)、书面仲裁(2)
52
+     */
53
+    private Long arbitratMethod;
54
+
55
+    /**
56
+     * 案件状态,立案申请(0)、待立案审查(1)、 待缴费(2)、待缴费确认(3)、 待案件质证(4)、
57
+     */
58
+    private Integer caseStatus;
59
+
60
+    /**
61
+     * 开庭日期
62
+     */
63
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
64
+    private Date hearDate;
65
+
66
+    /**
67
+     * 申请人仲裁请求及事实和理由
68
+     */
69
+    private String arbitratClaims;
70
+
71
+    /**
72
+     * 借款开始日期
73
+     */
74
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
75
+    private Date loanStartDate;
76
+
77
+    /**
78
+     * 借款结束日期
79
+     */
80
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
81
+    private Date loanEndDate;
82
+
83
+    /**
84
+     * 申请人主张欠本金
85
+     */
86
+    private BigDecimal claimPrinciOwed;
87
+
88
+    /**
89
+     * 申请人主张欠利息
90
+     */
91
+    private BigDecimal claimInterestOwed;
92
+
93
+    /**
94
+     * 申请人主张违约金
95
+     */
96
+    private BigDecimal claimLiquidDamag;
97
+
98
+    /**
99
+     * 仲裁应缴费用
100
+     */
101
+    private BigDecimal feePayable;
102
+
103
+
104
+    /**
105
+     * 合同编号
106
+     */
107
+    private String contractNumber;
108
+
109
+    /**
110
+     * 创建时间
111
+     */
112
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
113
+    private Date createTime;
114
+
115
+    /**
116
+     * 更新者
117
+     */
118
+    private String updateBy;
119
+
120
+    /**
121
+     * 更新时间
122
+     */
123
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
124
+    private Date updateTime;
125
+
126
+    /**
127
+     * 创建者
128
+     */
129
+    private String createBy;
130
+
131
+    /**
132
+     * 仲裁员id
133
+     */
134
+    private String arbitratorId;
135
+
136
+    /**
137
+     * 案件名称
138
+     */
139
+    private String caseName;
140
+
141
+    /**
142
+     * 仲裁结果
143
+     */
144
+    private String caseResult;
145
+
146
+    /**
147
+     * 是否同意组庭,0否,1是
148
+     */
149
+    private Integer isAgreePendTral;
150
+
151
+    /**
152
+     * 是否有异议需要举证,1是,0否
153
+     */
154
+    private Integer objectionAddEviden;
155
+
156
+
157
+    /**
158
+     * 案件实缴费用
159
+     */
160
+    private BigDecimal paidExpenses;
161
+
162
+    /**
163
+     * 裁决书URL
164
+     */
165
+    private String filearbitraUrl;
166
+
167
+    /**
168
+     * 支付方式(0线上支付,1线下支付)
169
+     */
170
+    private String payType;
171
+
172
+    /**
173
+     * 申请人请求仲裁庭裁决
174
+     */
175
+    private String requestRule;
176
+
177
+    /**
178
+     * 是否仲裁反请求,1是,0否
179
+     */
180
+    private Integer adjudicaCounter;
181
+
182
+    /**
183
+     * 仲裁反请求原因
184
+     */
185
+    private String adjudicaCounterReason;
186
+
187
+    /**
188
+     * 是否财产保全申请,1是,0否
189
+     */
190
+    private Integer properPreser;
191
+
192
+    /**
193
+     * 是否管辖异议申请,1是,0否
194
+     */
195
+    private Integer objectiJuris;
196
+
197
+    /**
198
+     * 被申请人是否缺席,1是,0否
199
+     */
200
+    private Integer isAbsence;
201
+
202
+    /**
203
+     * 被申请人质证意见
204
+     */
205
+    private String responCrossOpin;
206
+
207
+    /**
208
+     * 申请人质证意见
209
+     */
210
+    private String applicaCrossOpin;
211
+
212
+    /**
213
+     * 被申请人的答辩意见
214
+     */
215
+    private String responDefenOpini;
216
+
217
+    /**
218
+     * 申请人是否缺席,1是,0否
219
+     */
220
+    private Integer appliIsAbsen;
221
+
222
+    /**
223
+     * 是否锁定,0-否,1-是
224
+     */
225
+    private Integer lockStatus;
226
+
227
+    /**
228
+     * 视频会议房间号id
229
+     */
230
+    private String roomId;
231
+
232
+    /**
233
+     * 是否导入,0手动录入,1导入,默认0
234
+     */
235
+    private Integer importFlag=0;
236
+
237
+    /**
238
+     * 版本号
239
+     */
240
+    private Integer version;
241
+
242
+    /**
243
+     * 事实和理由
244
+     */
245
+    private String facts;
246
+
247
+    /**
248
+     * 批次
249
+     */
250
+    private Integer batchNumber;
251
+
252
+    /**
253
+     * 模板id
254
+     */
255
+    private Long templateId;
256
+
257
+    /**
258
+     * 调解内容
259
+     */
260
+    private String mediationAgreement;
261
+
262
+    /**
263
+     * 申请人是否书面审理 ,0否,1是
264
+     */
265
+    private Integer appliIswritHear;
266
+
267
+    /**
268
+     * 被申请人是否书面审理
269
+     */
270
+    private Integer responIsWritHear;
271
+
272
+    /**
273
+     * 案件附件相关表
274
+     */
275
+    private List<CaseAttach> caseAttachList;
276
+    /**
277
+     * 附件类型
278
+     */
279
+    private List<Integer> annexTypeList;
280
+    /**
281
+     * 附件类型
282
+     */
283
+    private Integer annexType;
284
+    /**
285
+     * 自定义字段
286
+     */
287
+    private List<ColumnValue> columnValueList;
288
+    /**
289
+     * 案件相关人员
290
+     */
291
+    private CaseAffiliateVO affiliate;
292
+    /**
293
+     * 待办状态,0-待办,1-已办
294
+     */
295
+    private Integer pendingStatus;
296
+    /**
297
+     * 仲裁方式名称,1-线上调解,2-线下调解
298
+     */
299
+    private String arbitratMethodName;
300
+    /**
301
+     * 申请机构名称
302
+     */
303
+    private String applicationName;
304
+    /**
305
+     * 被申请人姓名
306
+     */
307
+    private String respondentName;
308
+
309
+}

+ 1
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/dto/CaseConfirmPayDTO.java Просмотреть файл

@@ -25,4 +25,5 @@ public class CaseConfirmPayDTO {
25 25
      * 缴费凭证
26 26
      */
27 27
     private List<CaseAttach> payOrderList;
28
+
28 29
 }

+ 4
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/dto/CasePayDTO.java Просмотреть файл

@@ -35,4 +35,8 @@ public class CasePayDTO {
35 35
      * 缴费凭证
36 36
      */
37 37
     private List<CaseAttach> payOrderList;
38
+    /**
39
+     * 批号
40
+     */
41
+    private String batchNumber;
38 42
 }

ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/SendMailRecord.java → ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/dto/sendrecord/SendMailRecord.java Просмотреть файл

@@ -1,11 +1,14 @@
1
-package com.ruoyi.wisdomarbitrate.domain;
1
+package com.ruoyi.wisdomarbitrate.domain.dto.sendrecord;
2 2
 
3 3
 import com.fasterxml.jackson.annotation.JsonFormat;
4
-import com.ruoyi.common.annotation.Excel;
5 4
 import com.ruoyi.common.core.domain.BaseEntity;
5
+import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
6
+import lombok.Data;
6 7
 
7 8
 import java.util.Date;
9
+import java.util.List;
8 10
 
11
+@Data
9 12
 public class SendMailRecord   extends BaseEntity {
10 13
     private static final long serialVersionUID = 1L;
11 14
 
@@ -40,6 +43,16 @@ public class SendMailRecord   extends BaseEntity {
40 43
     private Integer sendStatus;
41 44
 
42 45
 
46
+    /** 附件id */
47
+    private String fileIds;
48
+
49
+    /** 邮件主题 */
50
+    private String mailSubject;
51
+
52
+    /** 邮件发件人地址 */
53
+    private String mailFromAddress;
54
+    private List<CaseAttach> caseAttachList;
55
+
43 56
 
44 57
     public Integer getSendStatus() {
45 58
         return sendStatus;

+ 78
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/dto/sendrecord/SmsSendRecord.java Просмотреть файл

@@ -0,0 +1,78 @@
1
+package com.ruoyi.wisdomarbitrate.domain.dto.sendrecord;
2
+
3
+import com.fasterxml.jackson.annotation.JsonFormat;
4
+import com.ruoyi.common.core.domain.BaseEntity;
5
+
6
+import com.ruoyi.wisdomarbitrate.domain.entity.sms.MsSmsTemplateParam;
7
+import lombok.AllArgsConstructor;
8
+import lombok.Data;
9
+import lombok.NoArgsConstructor;
10
+
11
+import java.util.Date;
12
+import java.util.List;
13
+
14
+@Data
15
+@AllArgsConstructor
16
+@NoArgsConstructor
17
+public class SmsSendRecord extends BaseEntity {
18
+    /**
19
+     * ID
20
+     */
21
+    private Long id;
22
+    /**
23
+     * 短信模板主键id
24
+     */
25
+    private Long msSmsTemplateId;
26
+    /**
27
+     * 案件申请id
28
+     */
29
+    private Long caseId;
30
+    /**
31
+     * 案件编号
32
+     */
33
+    private String caseNum;
34
+    /**
35
+     * 手机号
36
+     */
37
+    private String phone;
38
+    /**
39
+     * 发送时间
40
+     */
41
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
42
+    private Date sendTime;
43
+
44
+    /**
45
+     * 发送状态
46
+     */
47
+    private Integer sendStatus;
48
+    /**
49
+     * 短信sid,发送的唯一标识
50
+     */
51
+    private String sid;
52
+    /**
53
+     * 失败原因
54
+     */
55
+    private String reason;
56
+    /**
57
+     * 短信内容
58
+     */
59
+    private String sendContent;
60
+    /**
61
+     * 腾讯云模板id
62
+     */
63
+    private String templateId;
64
+    /**
65
+     * 模板内容
66
+     */
67
+    private String templateContent;
68
+    private List<MsSmsTemplateParam> templateParams;
69
+
70
+    public SmsSendRecord(Long caseId, String caseNum, String phone, Date sendTime, String sendContent,String sid) {
71
+        this.caseId = caseId;
72
+        this.caseNum = caseNum;
73
+        this.phone = phone;
74
+        this.sendTime = sendTime;
75
+        this.sendContent = sendContent;
76
+        this.sid = sid;
77
+    }
78
+}

+ 129
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/entity/CaseAffiliateEntity.java Просмотреть файл

@@ -0,0 +1,129 @@
1
+package com.ruoyi.wisdomarbitrate.domain.entity;
2
+
3
+import com.fasterxml.jackson.annotation.JsonFormat;
4
+import lombok.Data;
5
+import lombok.Getter;
6
+import lombok.Setter;
7
+import lombok.ToString;
8
+
9
+import java.util.Date;
10
+
11
+@Getter
12
+@Setter
13
+@ToString
14
+@Data
15
+public class CaseAffiliateEntity {
16
+    /**
17
+     * id
18
+     */
19
+    private Long id;
20
+    /**
21
+     * 案件主表id,案件申请表主键
22
+     */
23
+    private Long caseAppliId;
24
+    /**
25
+     * 案件日志表id
26
+     */
27
+    private Long caseAppliLogId;
28
+    /**
29
+     * 用户id,用户表user_id关联
30
+     */
31
+    private Long userId;
32
+    /**
33
+     * 申请机构id,和部门表id关联
34
+     */
35
+    private Long applicantDeptId;
36
+
37
+    /**
38
+     * 代码(统一社会信用代码或者身份证号)
39
+     */
40
+    private String code;
41
+    /**
42
+     * 用户名
43
+     */
44
+    private String userName;
45
+
46
+    /**
47
+     * 法定代表人
48
+     */
49
+    private String compLegalPerson;
50
+    /**
51
+     * 角色类别,1-申请操作人/申请人,2-申请人代理人,3-被申请人操作人/被申请人,4-被申请人代理人
52
+     */
53
+    private Integer roleType=1;
54
+    /**
55
+     * 组别
56
+     */
57
+    private Integer groupOrder;
58
+    /**
59
+     * 是否操作人,0-否,1-是
60
+     */
61
+    private Integer operatorFlag=1;
62
+    /**
63
+     * 是否机构申请,0-自然人,1-申请机构,默认0
64
+     */
65
+    private Integer organizeFlag=0;
66
+    /**
67
+     * 电话
68
+     */
69
+    private String phone;
70
+    /**
71
+     * 邮箱
72
+     */
73
+    private String email;
74
+    /**
75
+     * 姓名
76
+     */
77
+    private String name;
78
+    /**
79
+     * 住所
80
+     */
81
+    private String home;
82
+    /**
83
+     * 联系地址
84
+     */
85
+    private String address;
86
+    /**
87
+     * 身份证号
88
+     */
89
+    private String idCard;
90
+
91
+    /**
92
+     * '身份类别,0-身份证,1-护照,默认0'
93
+     */
94
+    private Integer idType;
95
+    /**
96
+     * 国籍,0-境内,1-境外,默认0
97
+     */
98
+    private Integer nationality;
99
+    /**
100
+     * 生日
101
+     */
102
+    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
103
+    private Date birth;
104
+    /**
105
+     * 性别,0-男,1-女
106
+     */
107
+    private String sex;
108
+    /**
109
+     * 被申请人姓名
110
+     */
111
+    private String resName;
112
+    /**
113
+     * 角色名称
114
+     */
115
+    private String roleName;
116
+    /**
117
+     * 申请机构名称
118
+     */
119
+    private String applicantOrgName;
120
+    /**
121
+     * 角色id
122
+     */
123
+    private Long roleId;
124
+    /**
125
+     * 职位
126
+     */
127
+    private String position;
128
+
129
+}

+ 32
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/entity/sms/MsSmsSendHistoryRecordParam.java Просмотреть файл

@@ -0,0 +1,32 @@
1
+package com.ruoyi.wisdomarbitrate.domain.entity.sms;
2
+
3
+import lombok.Getter;
4
+import lombok.Setter;
5
+import lombok.ToString;
6
+
7
+import javax.persistence.Column;
8
+import javax.persistence.GeneratedValue;
9
+import javax.persistence.Id;
10
+import javax.persistence.Table;
11
+
12
+@Getter
13
+@Setter
14
+@ToString
15
+@Table(name = "sms_send_history_record_param")
16
+public class MsSmsSendHistoryRecordParam {
17
+    @Id
18
+    @GeneratedValue(generator = "JDBC")
19
+    private Long id;
20
+
21
+    /**
22
+     * 短信历史记录表id
23
+     */
24
+    @Column(name = "sms_record_history_id")
25
+    private Long smsRecordHistoryId;
26
+
27
+    /**
28
+     * 参数值
29
+     */
30
+    @Column(name = "param_value")
31
+    private String paramValue;
32
+}

+ 33
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/entity/sms/MsSmsSendRecordParam.java Просмотреть файл

@@ -0,0 +1,33 @@
1
+package com.ruoyi.wisdomarbitrate.domain.entity.sms;
2
+
3
+import lombok.Getter;
4
+import lombok.Setter;
5
+import lombok.ToString;
6
+
7
+import javax.persistence.Column;
8
+import javax.persistence.GeneratedValue;
9
+import javax.persistence.Id;
10
+import javax.persistence.Table;
11
+
12
+@Getter
13
+@Setter
14
+@ToString
15
+@Table(name = "sms_send_record_param")
16
+public class MsSmsSendRecordParam {
17
+    @Id
18
+    @GeneratedValue(generator = "JDBC")
19
+    private Integer id;
20
+
21
+    /**
22
+     * 短信记录表id
23
+     */
24
+    @Column(name = "sms_record_id")
25
+    private Long smsRecordId;
26
+
27
+
28
+    /**
29
+     * 参数值
30
+     */
31
+    @Column(name = "param_value")
32
+    private String paramValue;
33
+}

+ 38
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/entity/sms/MsSmsTemplate.java Просмотреть файл

@@ -0,0 +1,38 @@
1
+package com.ruoyi.wisdomarbitrate.domain.entity.sms;
2
+
3
+import lombok.Getter;
4
+import lombok.Setter;
5
+import lombok.ToString;
6
+
7
+import javax.persistence.*;
8
+import java.util.List;
9
+
10
+@Getter
11
+@Setter
12
+@ToString
13
+@Table(name = "sms_template")
14
+public class MsSmsTemplate {
15
+    @Id
16
+    @GeneratedValue(generator = "JDBC")
17
+    private Long id;
18
+
19
+    /**
20
+     * 腾讯云模板id
21
+     */
22
+    @Column(name = "template_id")
23
+    private String templateId;
24
+
25
+    /**
26
+     * 模板名称
27
+     */
28
+    private String name;
29
+    /**
30
+     * 模板内容
31
+     */
32
+    private String content;
33
+    /**
34
+     * 模板参数
35
+     */
36
+    @Transient
37
+    private List<MsSmsTemplateParam> templateParams;
38
+}

+ 38
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/entity/sms/MsSmsTemplateParam.java Просмотреть файл

@@ -0,0 +1,38 @@
1
+package com.ruoyi.wisdomarbitrate.domain.entity.sms;
2
+
3
+import lombok.Getter;
4
+import lombok.Setter;
5
+import lombok.ToString;
6
+
7
+import javax.persistence.*;
8
+
9
+@Getter
10
+@Setter
11
+@ToString
12
+@Table(name = "sms_template_param")
13
+public class MsSmsTemplateParam {
14
+    @Id
15
+    @GeneratedValue(generator = "JDBC")
16
+    private Long id;
17
+
18
+    /**
19
+     * ms_sms_template表id
20
+     */
21
+    @Column(name = "sms_template_id")
22
+    private Long smsTemplateId;
23
+
24
+    /**
25
+     * 参数
26
+     */
27
+    private String param;
28
+    /**
29
+     * 参数名
30
+     */
31
+    @Column(name = "param_name")
32
+    private String paramName;
33
+    /**
34
+     * 参数值
35
+     */
36
+    @Transient
37
+    private String paramValue;
38
+}

+ 60
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/shortmessage/MeetingInfo.java Просмотреть файл

@@ -0,0 +1,60 @@
1
+package com.ruoyi.wisdomarbitrate.domain.shortmessage;
2
+
3
+import lombok.AllArgsConstructor;
4
+import lombok.Builder;
5
+import lombok.Data;
6
+import lombok.NoArgsConstructor;
7
+
8
+import javax.persistence.Column;
9
+import javax.persistence.Id;
10
+import javax.persistence.Table;
11
+import java.util.Date;
12
+
13
+@Data
14
+@Builder
15
+@NoArgsConstructor
16
+@AllArgsConstructor
17
+@Table(name = "meeting_info")
18
+public class MeetingInfo {
19
+    /**
20
+     * 主键Id
21
+     */
22
+    @Id
23
+    private String uid;
24
+
25
+    /**
26
+     * 案件Id
27
+     */
28
+    @Column(name = "case_id")
29
+    private Long caseId;
30
+
31
+    /**
32
+     * 用户Id
33
+     */
34
+    @Column(name = "user_id")
35
+    private Long userId;
36
+
37
+    /**
38
+     * 用户名称
39
+     */
40
+    @Column(name = "user_name")
41
+    private String userName;
42
+
43
+    /**
44
+     * 房间Id
45
+     */
46
+    @Column(name = "room_id")
47
+    private String roomId;
48
+
49
+    /**
50
+     * 系统类型
51
+     */
52
+    @Column(name = "system_type")
53
+    private String systemType;
54
+
55
+    /**
56
+     * 创建时间
57
+     */
58
+    @Column(name = "create_time")
59
+    private Date createTime;
60
+}

+ 111
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/shortmessage/MsSendMailHistoryRecord.java Просмотреть файл

@@ -0,0 +1,111 @@
1
+package com.ruoyi.wisdomarbitrate.domain.shortmessage;
2
+
3
+import lombok.Getter;
4
+import lombok.Setter;
5
+import lombok.ToString;
6
+
7
+import javax.persistence.Column;
8
+import javax.persistence.GeneratedValue;
9
+import javax.persistence.Id;
10
+import javax.persistence.Table;
11
+import java.util.Date;
12
+
13
+@Getter
14
+@Setter
15
+@ToString
16
+@Table(name = "send_mail_history_record")
17
+public class MsSendMailHistoryRecord {
18
+    @Id
19
+    @GeneratedValue(generator = "JDBC")
20
+    private Long id;
21
+
22
+    /**
23
+     * 邮件名称
24
+     */
25
+    @Column(name = "mail_name")
26
+    private String mailName;
27
+
28
+    /**
29
+     * 邮件接收地址
30
+     */
31
+    @Column(name = "mail_address")
32
+    private String mailAddress;
33
+
34
+    /**
35
+     * 发送时间
36
+     */
37
+    @Column(name = "send_time")
38
+    private Date sendTime;
39
+
40
+    /**
41
+     * 案件编号
42
+     */
43
+    @Column(name = "case_num")
44
+    private String caseNum;
45
+
46
+    /**
47
+     * 发送状态
48
+     */
49
+    @Column(name = "send_status")
50
+    private Long sendStatus;
51
+
52
+    /**
53
+     * 立案申请id
54
+     */
55
+    @Column(name = "case_id")
56
+    private Long caseId;
57
+
58
+    /**
59
+     * 创建时间
60
+     */
61
+    @Column(name = "create_time")
62
+    private Date createTime;
63
+
64
+    /**
65
+     * 创建者
66
+     */
67
+    @Column(name = "create_by")
68
+    private String createBy;
69
+
70
+    /**
71
+     * 更新者
72
+     */
73
+    @Column(name = "update_by")
74
+    private String updateBy;
75
+
76
+    /**
77
+     * 更新时间
78
+     */
79
+    @Column(name = "update_time")
80
+    private Date updateTime;
81
+
82
+    /**
83
+     * 附件id用英文逗号隔开
84
+     */
85
+    @Column(name = "file_ids")
86
+    private String fileIds;
87
+
88
+    /**
89
+     * 邮件主题
90
+     */
91
+    @Column(name = "mail_subject")
92
+    private String mailSubject;
93
+
94
+    /**
95
+     * 邮件发送地址
96
+     */
97
+    @Column(name = "mail_from_address")
98
+    private String mailFromAddress;
99
+
100
+    /**
101
+     * 邮件父类id
102
+     */
103
+    @Column(name = "parent_id")
104
+    private Long parentId;
105
+
106
+    /**
107
+     * 邮件内容
108
+     */
109
+    @Column(name = "mail_content")
110
+    private String mailContent;
111
+}

+ 98
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/shortmessage/MsSmsSendHistoryRecord.java Просмотреть файл

@@ -0,0 +1,98 @@
1
+package com.ruoyi.wisdomarbitrate.domain.shortmessage;
2
+
3
+import lombok.AllArgsConstructor;
4
+import lombok.Builder;
5
+import lombok.Data;
6
+import lombok.NoArgsConstructor;
7
+
8
+import javax.persistence.Column;
9
+import javax.persistence.GeneratedValue;
10
+import javax.persistence.Id;
11
+import javax.persistence.Table;
12
+import java.util.Date;
13
+
14
+@Data
15
+@AllArgsConstructor
16
+@NoArgsConstructor
17
+@Builder
18
+@Table(name = "sms_send_history_record")
19
+public class MsSmsSendHistoryRecord {
20
+    @Id
21
+    @GeneratedValue(generator = "JDBC")
22
+    private Long id;
23
+
24
+    /**
25
+     * 案件id
26
+     */
27
+    @Column(name = "case_appli_id")
28
+    private Long caseAppliId;
29
+    /**
30
+     * 短信模板表主键id
31
+     */
32
+    @Column(name = "ms_sms_template_id")
33
+    private Long msSmsTemplateId;
34
+
35
+    /**
36
+     * 案件编号
37
+     */
38
+    @Column(name = "case_num")
39
+    private String caseNum;
40
+
41
+    /**
42
+     * 手机号
43
+     */
44
+    private String phone;
45
+
46
+    /**
47
+     * 发送时间
48
+     */
49
+    @Column(name = "send_time")
50
+    private Date sendTime;
51
+
52
+    /**
53
+     * 发送状态,0-失败,1-成功
54
+     */
55
+    @Column(name = "send_status")
56
+    private Long sendStatus;
57
+
58
+
59
+    /**
60
+     * 创建时间
61
+     */
62
+    @Column(name = "create_time")
63
+    private Date createTime;
64
+
65
+    /**
66
+     * 更新时间
67
+     */
68
+    @Column(name = "update_time")
69
+    private Date updateTime;
70
+
71
+    /**
72
+     * 创建人
73
+     */
74
+    @Column(name = "create_by")
75
+    private String createBy;
76
+
77
+    /**
78
+     * 更新者
79
+     */
80
+    @Column(name = "update_by")
81
+    private String updateBy;
82
+
83
+    /**
84
+     * 发送短信唯一标识
85
+     */
86
+    private String sid;
87
+
88
+    /**
89
+     * 父类短信id
90
+     */
91
+    @Column(name = "parent_id")
92
+    private Long parentId;
93
+
94
+    /**
95
+     * 失败原因
96
+     */
97
+    private String reason;
98
+}

+ 33
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/CaseAffiliateBase.java Просмотреть файл

@@ -0,0 +1,33 @@
1
+package com.ruoyi.wisdomarbitrate.domain.vo;
2
+
3
+import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
4
+import com.ruoyi.wisdomarbitrate.domain.entity.CaseAffiliateEntity;
5
+import lombok.Data;
6
+
7
+/**
8
+ * @Classname MsCaseAffiliateList
9
+ * @Description 案件人员表
10
+ * @Version 1.0.0
11
+ * @Date 2024/3/27 16:08
12
+ * @Created wangqiong
13
+ */
14
+@Data
15
+public class CaseAffiliateBase {
16
+    /**
17
+     * 申请人/操作人
18
+     */
19
+    private CaseAffiliateEntity applicant;
20
+    /**
21
+     * 申请人代理人
22
+     */
23
+    private CaseAffiliateEntity applicantAgent;
24
+    /**
25
+     * 被申请人/操作人
26
+     */
27
+    private CaseAffiliateEntity res;
28
+    /**
29
+     * 被申请人代理人
30
+     */
31
+    private CaseAffiliateEntity resAgent;
32
+
33
+}

+ 32
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/CaseAffiliateVO.java Просмотреть файл

@@ -0,0 +1,32 @@
1
+package com.ruoyi.wisdomarbitrate.domain.vo;
2
+
3
+import lombok.Data;
4
+import lombok.Getter;
5
+import lombok.Setter;
6
+import lombok.ToString;
7
+
8
+import java.util.List;
9
+
10
+/**
11
+ * @Classname MsCaseAffiliateVO
12
+ * @Description 案件人员表
13
+ * @Version 1.0.0
14
+ * @Date 2024/3/22 11:46
15
+ * @Created wangqiong
16
+ */
17
+@Getter
18
+@Setter
19
+@ToString
20
+@Data
21
+public class CaseAffiliateVO {
22
+    /**
23
+     * 申请人/操作人
24
+     */
25
+    private List<CaseAffiliateBase> applicant;
26
+
27
+    /**
28
+     * 被申请人/操作人
29
+     */
30
+    private List<CaseAffiliateBase> res;
31
+
32
+}

+ 419
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/CaseApplicationVO.java Просмотреть файл

@@ -0,0 +1,419 @@
1
+package com.ruoyi.wisdomarbitrate.domain.vo;
2
+
3
+import com.fasterxml.jackson.annotation.JsonFormat;
4
+import com.ruoyi.common.annotation.Excel;
5
+import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
6
+import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
7
+import lombok.Data;
8
+
9
+import java.math.BigDecimal;
10
+import java.util.Date;
11
+import java.util.List;
12
+
13
+@Data
14
+public class CaseApplicationVO {
15
+    private static final long serialVersionUID = 1L;
16
+    /**
17
+     * 查询案件时区分是否待办案件,0待办案件,1已办案件
18
+     */
19
+    private String selectCaseStatus;
20
+
21
+    /** ID */
22
+    private Long id;
23
+    /** 案件名称 */
24
+    @Excel(name = "案件名称")
25
+    private String caseName;
26
+    /** 案件编号 */
27
+//    @Excel(name = "案件编号")
28
+    private String caseNum;
29
+    /** 案件标的 */
30
+    @Excel(name = "案件标的")
31
+    private BigDecimal caseSubjectAmount;
32
+    /**
33
+     * 模板id
34
+     */
35
+    private Long templateId;
36
+
37
+
38
+
39
+    /** 立案日期 */
40
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
41
+    private Date registerDate;
42
+    /** 仲裁方式 */
43
+    private Integer arbitratMethod;
44
+    /**
45
+     * 是否导入,0手动录入,1导入,默认0
46
+     */
47
+    private Integer importFlag;
48
+    /** 仲裁方式名称 */
49
+    private String arbitratMethodName;
50
+
51
+    /** 案件状态 */
52
+    private Integer caseStatus;
53
+    private String caseStatusstr;
54
+
55
+    /** 申请人是否书面审理 */
56
+    private Integer applicantIsWrittenHear;
57
+
58
+    /** 被申请人是否书面审理 */
59
+    private Integer respondentIsWrittenHear;
60
+    /** 开庭方式是否一致 */
61
+    private Integer arbitraMethodIssame;
62
+    /** 仲裁方式说明 */
63
+    private String arbitratMethodIllustrate;
64
+
65
+
66
+    /** 案件申请表ID */
67
+    private Long caseAppliId;
68
+
69
+    /** 开庭日期 */
70
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
71
+    private Date hearDate;
72
+
73
+    /** 借款开始日期 */
74
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
75
+    @Excel(name = "借款开始日期")
76
+    private Date loanStartDate;
77
+    /** 借款结束日期 */
78
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
79
+    @Excel(name = "借款结束日期")
80
+    private Date loanEndDate;
81
+    /** 合同编号 */
82
+    @Excel(name = "合同编号")
83
+    private String contractNumber;
84
+    /** 申请人主张欠本金 */
85
+    @Excel(name = "申请人主张欠本金")
86
+    private BigDecimal claimPrinciOwed;
87
+    /** 申请人主张欠利息 */
88
+    @Excel(name = "申请人主张欠利息")
89
+    private BigDecimal claimInterestOwed;
90
+    /** 申请人主张违约金 */
91
+    @Excel(name = "申请人主张违约金")
92
+    private BigDecimal claimLiquidDamag;
93
+    /** 申请人请求仲裁庭裁决 */
94
+    @Excel(name = "申请人请求仲裁庭裁决",width = 36)
95
+    private String requestRule;
96
+
97
+    /** 是否财产保全申请 */
98
+    @Excel(name = "是否财产保全申请",width = 26,combo= {"是","否"},readConverterExp = "0=否,1=是")
99
+    private Integer properPreser;
100
+    /** 申请人仲裁请求及事实和理由 */
101
+    @Excel(name = "申请人仲裁请求及事实和理由",width = 36)
102
+    private String arbitratClaims;
103
+    /** 仲裁应缴费用 */
104
+    private BigDecimal feePayable;
105
+
106
+    /** 开始在线视频时间 */
107
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
108
+    private Date beginVideoDate;
109
+    /** 在线视频人员 */
110
+    private String onlineVideoPerson;
111
+
112
+    /** 仲裁员id */
113
+    private String arbitratorId;
114
+    /** 仲裁员名称 */
115
+    private String arbitratorName;
116
+
117
+    /** 案件描述 */
118
+    private String caseDescribe;
119
+    /** 裁决书URL */
120
+    private String  filearbitraUrl;
121
+
122
+    /** 是否同意组庭 */
123
+    private Integer isAgreePendTral;
124
+
125
+    /** 是否有异议需要举证 */
126
+    private Integer objectionAddEviden;
127
+    /** 是否需要开庭审理 */
128
+    private Integer openCourtHear;
129
+
130
+    /** 是否仲裁反请求 */
131
+    private Integer adjudicaCounter;
132
+    /**
133
+     * 仲裁反请求原因
134
+     */
135
+    private String adjudicaCounterReason;
136
+
137
+    /** 被申请人是否缺席 */
138
+    private Integer isAbsence;
139
+    /** 是否管辖异议申请 */
140
+    private Integer objectiJuris;
141
+    /** 被申请人质证意见 */
142
+    private String responCrossOpin;
143
+    /** 被申请人的答辩意见 */
144
+    private String responDefenOpini;
145
+    /** 申请人是否缺席 */
146
+    private Integer appliIsAbsen;
147
+
148
+    /** 申请人质证意见 */
149
+    private String applicaCrossOpin;
150
+
151
+    /** 支付状态 */
152
+    private Integer paymentStatus;
153
+
154
+    /** 支付状态描述 */
155
+    private String paymentStatusName;
156
+    /**
157
+     * 支付方式code,0线上支付,1线下支付
158
+     */
159
+    private Integer payTypeCode;
160
+    /**
161
+     * 支付方式name,0线上支付,1线下支付
162
+     */
163
+    private String payTypeName;
164
+
165
+
166
+
167
+    // 导入校验失败信息
168
+    private StringBuilder errorMsg;
169
+    /**
170
+     * 是否锁定,0-否,1-是
171
+     */
172
+    private Integer lockStatus;
173
+    /** 案件状态名称 */
174
+    private String caseStatusName;
175
+    /** 是否同意审核 */
176
+    private Integer agreeOrNotCheck;
177
+    /** 申请人名称 */
178
+    private String applicantName;
179
+    /** 被申请人名称 */
180
+    private String respondentName;
181
+    /**
182
+     * 用户身份证号
183
+     */
184
+    private String idCard;
185
+    /**
186
+     * 用户id
187
+     */
188
+    private String userId;
189
+    /**
190
+     * 登录用户用户名
191
+     */
192
+    private String loginUserName;
193
+    private List<Long> deptIds;
194
+    /**
195
+     * 部门长状态
196
+     */
197
+    private List<Integer> deptHeadStatus;
198
+    /**
199
+     * 代理人角色有关部门
200
+     */
201
+    private List<Long> agentDeptIds;
202
+    /**
203
+     * 财务状态
204
+     */
205
+    private Integer financeStatus;
206
+    /**
207
+     * 是否是被申请人,仲裁员,部门长,财务,代理人,0-否,1-是
208
+     */
209
+    private Integer isOtherRole;
210
+    /**
211
+     * 案件日志id
212
+     */
213
+    private Long caseLogId;
214
+    /** 仲裁结果 */
215
+    private String caseResult;
216
+
217
+    /** 案件关联人信息 */
218
+    private List<CaseAffiliate> caseAffiliates;
219
+
220
+
221
+
222
+    private List<Integer> caseStatusList;
223
+
224
+    private List<Integer> annexTypeList;
225
+
226
+    private Integer annexType;
227
+    /**
228
+     * 案件附件列表
229
+     */
230
+    private List<CaseAttach> caseAttachList;
231
+
232
+
233
+
234
+
235
+    /**
236
+     * 申请人主体信息
237
+     */
238
+    /** 姓名 */
239
+    @Excel(name = "申请人主体信息-申请人(机构)",width = 26)
240
+    private String name;
241
+    /** 身份证号 */
242
+    @Excel(name = "申请人主体信息-代码",width = 26)
243
+    private String identityNum;
244
+    /** 申请人主体信息-法定代表人 */
245
+    @Excel(name = "申请人主体信息-法定代表人",width = 26)
246
+    private String compLegalPerson;
247
+    /** 申请人主体信息-法定代表人 */
248
+    @Excel(name = "申请人主体信息-法定代表人职位",width = 26)
249
+    private String compLegalperPost;
250
+    /**
251
+     * 申请人主体信息-申请人(机构)id
252
+     */
253
+    private String nameId;
254
+
255
+    /** 联系电话 */
256
+    @Excel(name = "申请人主体信息-联系电话",width = 26)
257
+    private String contactTelphone;
258
+    /** 联系地址 */
259
+    @Excel(name = "申请人主体信息-联系地址",width = 26)
260
+    private String contactAddress;
261
+    /** 单位电话 */
262
+    @Excel(name = "申请人主体信息-单位电话",width = 26)
263
+    private String workTelphone;
264
+    /** 单位地址 */
265
+    @Excel(name = "申请人主体信息-单位地址",width = 26)
266
+    private String workAddress;
267
+
268
+    /** 申请人住所 */
269
+    @Excel(name = "申请人主体信息-住所",width = 26)
270
+    private String residenAffiliAppli;
271
+
272
+    /** 申请人邮箱 */
273
+    @Excel(name = "申请人主体信息-邮箱",width = 26)
274
+    private String email;
275
+    /** 代理人姓名 */
276
+    @Excel(name = "申请人主体信息-代理人姓名",width = 26)
277
+    private String nameAgent;
278
+    /** 身份证号 */
279
+    @Excel(name = "申请人主体信息-代理人身份证号",width = 26)
280
+    private String identityNumAgent;
281
+
282
+    /** 联系电话 */
283
+    @Excel(name = "申请人主体信息-代理人联系电话",width = 26)
284
+    private String contactTelphoneAgent;
285
+    /** 联系地址 */
286
+    @Excel(name = "申请人主体信息-代理人联系地址",width = 26)
287
+    private String contactAddressAgent;
288
+    /** 申请人代理人职称 */
289
+    @Excel(name = "申请人主体信息-代理人职称",width = 26)
290
+    private String appliAgentTitle;
291
+    /**
292
+     * 被申请人主体信息
293
+     */
294
+    /** 姓名 */
295
+    @Excel(name = "被申请人主体信息-申请人姓名",width = 26)
296
+    private String debtorName;
297
+    /** 身份证号 */
298
+    @Excel(name = "被申请人主体信息-身份证号",width = 26)
299
+    private String debtorIdentityNum;
300
+    /** 被申请人主体信息-性别 */
301
+    @Excel(name = "被申请人主体信息-性别",width = 26,combo= {"男","女"},readConverterExp = "0=男,1=女")
302
+    private String responSex;
303
+    /** 被申请人主体信息-出生年月日 */
304
+    @Excel(name = "被申请人主体信息-出生年月日",width = 26)
305
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
306
+    private Date responBirth;
307
+    /** 联系电话 */
308
+    @Excel(name = "被申请人主体信息-联系电话",width = 26)
309
+    private String debtorContactTelphone;
310
+    /** 联系地址 */
311
+    @Excel(name = "被申请人主体信息-联系地址",width = 26)
312
+    private String debtorContactAddress;
313
+    /** 被申请人住所 */
314
+    @Excel(name = "被申请人主体信息-住所",width = 26)
315
+    private String residenAffiliRespon;
316
+    /** 单位电话 */
317
+    @Excel(name = "被申请人主体信息-单位电话",width = 26)
318
+    private String debtorWorkTelphone;
319
+    /** 单位地址 */
320
+    @Excel(name = "被申请人主体信息-单位地址",width = 26)
321
+    private String debtorWorkAddress;
322
+    /** 邮箱 */
323
+    @Excel(name = "被申请人主体信息-邮箱",width = 26)
324
+    private String debtorEmail;
325
+
326
+    /** 代理人姓名 */
327
+    @Excel(name = "被申请人主体信息-代理人姓名",width = 26)
328
+    private String debtorNameAgent;
329
+    /** 身份证号 */
330
+    @Excel(name = "被申请人主体信息-代理人身份证号",width = 26)
331
+    private String debtorIdentityNumAgent;
332
+    /** 联系电话 */
333
+    @Excel(name = "被申请人主体信息-代理人联系电话",width = 26)
334
+    private String debtorContactTelphoneAgent;
335
+    /** 联系地址 */
336
+    @Excel(name = "被申请人主体信息-代理人联系地址",width = 26)
337
+    private String debtorContactAddressAgent;
338
+    /**
339
+     * 申请机构id
340
+     */
341
+    private String applicationOrganId;
342
+    /**
343
+     * 版本号
344
+     */
345
+    private Integer version;
346
+    /**
347
+     * 修改案件的提交状态,0-未提交,1-已提交,2-同意,3-拒绝,4-撤销
348
+     */
349
+    private Integer updateSubmitStatus;
350
+    /** 合同名称 */
351
+    private String contractName;
352
+    /**
353
+     * 事实和理由
354
+     */
355
+    private String facts;
356
+    /**
357
+     * 合同甲方
358
+     */
359
+    private String partyA;
360
+    /**
361
+     * 利率
362
+     */
363
+    private String interestRate;
364
+    /**
365
+     * 待还金额
366
+     */
367
+    private String outstandingMoney;
368
+    /**
369
+     * 调解达成协议内容
370
+     */
371
+    private String mediationAgreement;
372
+    /**
373
+     * 金融消费纠纷基本情况
374
+     */
375
+    private String disputes;
376
+    /**
377
+     * 贷款类型
378
+     */
379
+    private String loanType;
380
+    /**
381
+     * 贷款期限
382
+     */
383
+    private String loanTerm;
384
+    /**
385
+     * 本案争议焦点
386
+     */
387
+    private String caseFocus;
388
+    /**
389
+     * 本案事实
390
+     */
391
+    private String caseFacts;
392
+    /**
393
+     * 被申请人对上述材料的质证意见
394
+     */
395
+    private String respondentOpinion;
396
+    /**
397
+     * 申请人对上述材料的质证意见
398
+     */
399
+    private String applicantOpinion;
400
+    /**
401
+     * 批号
402
+     */
403
+    private Integer batchNumber;
404
+
405
+    /**
406
+     * 待办状态,0待办,1已办
407
+     */
408
+    private Integer pendingStatus;
409
+    /** e签宝流程id */
410
+    private String signFlowId;
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+
419
+}

+ 3
- 3
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/CaseEvidenceDirectoryVO.java Просмотреть файл

@@ -30,7 +30,7 @@ public class CaseEvidenceDirectoryVO implements Serializable {
30 30
     /**
31 31
      * 附件id
32 32
      */
33
-    private Integer annexId;
33
+    private Long annexId;
34 34
 
35 35
     /**
36 36
      * 级数
@@ -105,11 +105,11 @@ public class CaseEvidenceDirectoryVO implements Serializable {
105 105
         this.evidenceName = evidenceName;
106 106
     }
107 107
 
108
-    public Integer getAnnexId() {
108
+    public Long getAnnexId() {
109 109
         return annexId;
110 110
     }
111 111
 
112
-    public void setAnnexId(Integer annexId) {
112
+    public void setAnnexId(Long annexId) {
113 113
         this.annexId = annexId;
114 114
     }
115 115
 

+ 4
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/CaseEvidenceVO.java Просмотреть файл

@@ -37,4 +37,8 @@ public class CaseEvidenceVO {
37 37
      */
38 38
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
39 39
     private Date scheduleStartTime;
40
+    /**
41
+     * 案件编号
42
+     */
43
+    private String caseStatusName;
40 44
 }

+ 3
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/CasePayListVO.java Просмотреть файл

@@ -4,14 +4,15 @@ import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
4 4
 import com.ruoyi.wisdomarbitrate.domain.CaseApplicationPay;
5 5
 import lombok.Data;
6 6
 
7
+import java.math.BigDecimal;
7 8
 import java.util.List;
8 9
 
9 10
 @Data
10 11
 public class CasePayListVO {
11 12
     /**
12
-     * 订单总金额 单位:分
13
+     * 订单总金额
13 14
      */
14
-    private int totalFee;
15
+    private BigDecimal totalFee;
15 16
 
16 17
     /**
17 18
      * 案件总条数

+ 7
- 7
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/ToDoCount.java Просмотреть файл

@@ -21,14 +21,14 @@ public class ToDoCount {
21 21
     private int caseApplyArbitrateWay=0; // 待审核仲裁方式
22 22
     private int caseApplyGroupOnline=0; // 待开庭审理
23 23
     private int caseApplyGroupOffline=0; // 待书面审理
24
-    private int caseApplyAward=0; // 待生成仲裁文
25
-    private int caseApplyAwardCheck=0; // 待核验仲裁文
26
-    private int caseApplyAwardConfirm=0; // 待审核仲裁文
27
-    private int caseApplyAwardSign=0; // 待仲裁文书签名
28
-    private int caseApplyAwardSeal=0; // 待仲裁文书用印
29
-    private int caseApplyAwardSend=0; // 待仲裁文书送达
24
+    private int caseApplyAward=0; // 待生成裁决
25
+    private int caseApplyAwardCheck=0; // 待核验裁决
26
+    private int caseApplyAwardConfirm=0; // 待审核裁决
27
+    private int caseApplyAwardSign=0; // 待裁决书签名
28
+    private int caseApplyAwardSeal=0; // 待裁决书用印
29
+    private int caseApplyAwardSend=0; // 待裁决书送达
30 30
     private int caseApplyStored=0; // 待案件归档
31 31
     private int caseApplyArchived=0; // 已归档
32 32
     private int updateOnlineHearDate=0; // 待修改开庭时间
33
-    private int arbitratorApplyAwardConfirm=0; // 待仲裁员审核仲裁文
33
+    private int arbitratorApplyAwardConfirm=0; // 待仲裁员审核裁决
34 34
 }

+ 41
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/shortmessage/MeetingInfoVO.java Просмотреть файл

@@ -0,0 +1,41 @@
1
+package com.ruoyi.wisdomarbitrate.domain.vo.shortmessage;
2
+
3
+import lombok.AllArgsConstructor;
4
+import lombok.Builder;
5
+import lombok.Data;
6
+import lombok.NoArgsConstructor;
7
+
8
+@Data
9
+@Builder
10
+@NoArgsConstructor
11
+@AllArgsConstructor
12
+public class MeetingInfoVO {
13
+    /**
14
+     * 案件Id
15
+     */
16
+    private Long caseId;
17
+
18
+    /**
19
+     * 用户Id
20
+     */
21
+    private Long userId;
22
+
23
+    /**
24
+     * 用户名称
25
+     */
26
+    private String userName;
27
+
28
+    /**
29
+     * 房间Id
30
+     */
31
+    private String roomId;
32
+
33
+    /**
34
+     * 系统类型
35
+     */
36
+    private String systemType;
37
+    /**
38
+     * 登录认证令牌
39
+     */
40
+    private String token;
41
+}

+ 34
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/shortmessage/ReSendMessageVO.java Просмотреть файл

@@ -0,0 +1,34 @@
1
+package com.ruoyi.wisdomarbitrate.domain.vo.shortmessage;
2
+
3
+
4
+import com.ruoyi.wisdomarbitrate.domain.entity.sms.MsSmsTemplateParam;
5
+import lombok.AllArgsConstructor;
6
+import lombok.Builder;
7
+import lombok.Data;
8
+import lombok.NoArgsConstructor;
9
+
10
+import java.util.List;
11
+
12
+@Data
13
+@Builder
14
+@NoArgsConstructor
15
+@AllArgsConstructor
16
+public class ReSendMessageVO {
17
+    /**
18
+     * 短信模版Id
19
+     */
20
+    private String templateId;
21
+    /**
22
+     * 手机号
23
+     */
24
+    private String phone;
25
+    /**
26
+     * 短信id
27
+     */
28
+    private Long id;
29
+    /**
30
+     * 短信模版参数值
31
+     */
32
+    private List<MsSmsTemplateParam> templateParams;
33
+
34
+}

+ 2
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseAffiliateLogMapper.java Просмотреть файл

@@ -2,6 +2,7 @@ package com.ruoyi.wisdomarbitrate.mapper;
2 2
 
3 3
 import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
4 4
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
5
+import com.ruoyi.wisdomarbitrate.domain.entity.CaseAffiliateEntity;
5 6
 import org.apache.ibatis.annotations.Param;
6 7
 import org.springframework.stereotype.Repository;
7 8
 
@@ -10,7 +11,7 @@ import java.util.List;
10 11
 public interface CaseAffiliateLogMapper {
11 12
 
12 13
 
13
-    int batchCaseAffiliate(List<CaseAffiliate> caseAffiliates);
14
+    int batchCaseAffiliate(List<CaseAffiliateEntity> caseAffiliates);
14 15
 
15 16
 
16 17
     void deletecaseAffiliate(CaseApplication caseApplication);

+ 15
- 15
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseAffiliateMapper.java Просмотреть файл

@@ -3,6 +3,8 @@ package com.ruoyi.wisdomarbitrate.mapper;
3 3
 import com.ruoyi.wisdomarbitrate.domain.BatchCaseApplication;
4 4
 import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
5 5
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
6
+import com.ruoyi.wisdomarbitrate.domain.dto.CaseApplicationDTO;
7
+import com.ruoyi.wisdomarbitrate.domain.entity.CaseAffiliateEntity;
6 8
 import com.ruoyi.wisdomarbitrate.domain.vo.BookSendVO;
7 9
 import org.apache.ibatis.annotations.Param;
8 10
 
@@ -18,28 +20,26 @@ public interface CaseAffiliateMapper {
18 20
     void batchDeletecaseAffiliate(@Param("ids") List<Long> ids);
19 21
 
20 22
 
21
-    List<CaseAffiliate>  selectCaseAffiliate(CaseAffiliate caseAffiliate);
22
-    List<CaseAffiliate>  selectCaseAffiliateByCaseIds(@Param("ids") List<Long> ids);
23
-    CaseAffiliate  selectCaseAffiliateByIdentityType(@Param("caseAppliId") Long caseAppliId, @Param("identityType")int identityType);
24
-
25
-    int updataCaseAffiliate(CaseAffiliate caseAffiliate);
23
+    List<CaseAffiliateEntity>  selectCaseAffiliate(CaseAffiliateEntity entity);
24
+    List<CaseAffiliateEntity>  selectCaseAffiliateByCaseIds(@Param("caseIds") List<Long> ids);
26 25
 
27 26
     /**
28
-     * 根据案件查询邮箱
29
-     * @param id
30
-     * @return
27
+     * 根据案件id删除
28
+     * @param caseId
31 29
      */
32
-    List<CaseAffiliate> emailByCaseId(@Param("caseAppliId")Long id);
30
+    void deleteByCaseId(@Param("caseAppliId") Long caseId);
33 31
 
34 32
     /**
35
-     * 批量修改
36
-     * @param affiliateLogList
33
+     * 新增人员
34
+     * @param affiliate
37 35
      */
38
-    void updateCaseAffiliateByCaseId(@Param("caseAppliId")Long caseAppliId,@Param("list") List<CaseAffiliate> affiliateLogList);
36
+
37
+    void insert(CaseAffiliateEntity affiliate);
39 38
 
40 39
     /**
41
-     * 根据案件id删除
42
-     * @param caseId
40
+     * 根据案件id查询邮箱
41
+     * @param id
42
+     * @return
43 43
      */
44
-    void deleteByCaseId(@Param("caseAppliId") Long caseId);
44
+    List<CaseAffiliateEntity> emailByCaseId(Long id);
45 45
 }

+ 8
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseApplicationLogMapper.java Просмотреть файл

@@ -38,7 +38,7 @@ public interface CaseApplicationLogMapper {
38 38
     Integer selectMaxVersionBySecret(@Param("caseAppliId")Long id);
39 39
 
40 40
     /**
41
-     * 根据案件id删除案件记录表和案件关联人日志
41
+     * 删除日志
42 42
      * @param ids
43 43
      */
44 44
     void batchDeleteLog(@Param("ids") List<Long> ids);
@@ -46,4 +46,11 @@ public interface CaseApplicationLogMapper {
46 46
     CaseApplication selectBeforeCase(@Param("caseId") Long caseId, @Param("version")Integer version);
47 47
 
48 48
     Integer batchSave(@Param("list")List<CaseApplication> caseApplications);
49
+
50
+    /**
51
+     * 根据案件id查询所有的日志id
52
+     * @param ids
53
+     * @return
54
+     */
55
+    List<Long> selectLogsByCaseIds(@Param("ids")List<Long> ids);
49 56
 }

+ 37
- 19
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseApplicationMapper.java Просмотреть файл

@@ -4,6 +4,7 @@ import com.ruoyi.wisdomarbitrate.domain.Arbitrator;
4 4
 import com.ruoyi.wisdomarbitrate.domain.BatchCaseApplication;
5 5
 import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
6 6
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
7
+import com.ruoyi.wisdomarbitrate.domain.dto.CaseApplicationDTO;
7 8
 import com.ruoyi.wisdomarbitrate.domain.dto.CaseConfirmPayDTO;
8 9
 import com.ruoyi.wisdomarbitrate.domain.vo.ToDoCount;
9 10
 import org.apache.ibatis.annotations.Param;
@@ -11,18 +12,9 @@ import org.apache.ibatis.annotations.Param;
11 12
 import java.util.List;
12 13
 
13 14
 public interface CaseApplicationMapper {
14
-    List<CaseApplication> selectCaseApplicationList(CaseApplication caseApplication);
15
-    List<CaseApplication> selectCaseApplicationList1(CaseApplication caseApplication);
16 15
 
17 16
     int selectCaseApplicationCount(CaseApplication caseApplication);
18 17
 
19
-    /**
20
-     * 查询超级管理员案件
21
-     * @param caseApplication
22
-     * @return
23
-     */
24
-    List<CaseApplication> selectAdminCaseApplicationList(CaseApplication caseApplication);
25
-
26 18
     int insertCaseApplication(CaseApplication caseApplication);
27 19
 
28 20
 
@@ -41,7 +33,7 @@ public interface CaseApplicationMapper {
41 33
      */
42 34
     List<CaseApplication> listCaseApplicationByIds(@Param("ids")List<Long> ids);
43 35
 
44
-    CaseApplication selectCaseApplicationConfirm(CaseApplication caseApplication);
36
+
45 37
 
46 38
     /**
47 39
      * 查询最大编号
@@ -65,10 +57,11 @@ public interface CaseApplicationMapper {
65 57
     void updatePayType(CaseConfirmPayDTO payDTO);
66 58
 
67 59
 
68
-    ToDoCount selectAdminCaseToDoCount();
69 60
 
70 61
 
71
-    ToDoCount selectTodoCountByRole(CaseApplication caseApplication);
62
+    ToDoCount selectTodoCountByRole(@Param("caseApplication") CaseApplication caseApplication,
63
+                                    @Param("caseStatusList") List<Integer> caseStatusList,
64
+                                    @Param("roleIds") List<Long> roleIds);
72 65
 
73 66
     /**
74 67
      * 修改案件锁定状态
@@ -99,12 +92,6 @@ public interface CaseApplicationMapper {
99 92
      */
100 93
     Long selectCaseIdByRoomId(@Param("roomId")String roomId);
101 94
 
102
-    /**
103
-     * 查询已办案件
104
-     * @param caseApplication
105
-     * @return
106
-     */
107
-    List<CaseApplication> selectHandledCase(CaseApplication caseApplication);
108 95
     /**
109 96
      * 查询最大房间号
110 97
      * @return
@@ -123,7 +110,7 @@ public interface CaseApplicationMapper {
123 110
      * 查询最大批号
124 111
      * @return
125 112
      */
126
-    Integer selectBatchNumberLike();
113
+    Integer selectMaxBatchNumber();
127 114
 
128 115
     /**
129 116
      * 批量新增案件
@@ -133,4 +120,35 @@ public interface CaseApplicationMapper {
133 120
     int batchSave(@Param("list")List<CaseApplication> caseApplications);
134 121
 
135 122
     int selectCasenum(@Param("userId") String userId);
123
+
124
+    List<CaseApplication> selectAdminCaseApplicationListBatch(CaseApplication caseApplication);
125
+
126
+    List<CaseApplication> listCaseApplicationByBatchNumber(CaseApplication caseApplication);
127
+
128
+
129
+
130
+    /**
131
+     * 案件列表查询
132
+     * @param caseApplication
133
+     * @return
134
+     */
135
+    List<CaseApplication> list(@Param("caseApplication") CaseApplication caseApplication,
136
+                               @Param("caseStatusList") List<Integer> caseStatusList,
137
+                               @Param("roleIds") List<Long> roleIds);
138
+
139
+    /**
140
+     * 查询当前案件节点
141
+     * @param id
142
+     * @return
143
+     */
144
+    Integer selectCaseApplicationCaseStatus(@Param("id") Long id);
145
+
146
+    /**
147
+     * 新增
148
+     * @param caseApplication
149
+     * @return
150
+     */
151
+    int insert(CaseApplicationDTO caseApplication);
152
+    int update(CaseApplicationDTO caseApplication);
153
+
136 154
 }

+ 16
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseAttachMapper.java Просмотреть файл

@@ -21,11 +21,11 @@ public interface CaseAttachMapper {
21 21
 
22 22
     int updateCaseAttachBycaseid(CaseAttach caseAttach);
23 23
 
24
-    int deleteByFileIds(@Param("ids") List<Integer> fileIds);
24
+    int deleteByFileIds(@Param("ids") List<Long> fileIds);
25 25
 
26 26
     List<CaseAttach> getCaseAttachByCaseIdAndType(CaseAttach caseAttach);
27 27
 
28
-    CaseAttach queryAnnexById(Integer annexId);
28
+    CaseAttach queryAnnexById(@Param("annexId")Long annexId);
29 29
 
30 30
     /**
31 31
      * 根据案件id和附件类型删除和上传类型
@@ -35,4 +35,18 @@ public interface CaseAttachMapper {
35 35
     void deleteByCasedIdAndType(@Param("caseAppliId")Long caseAppliId,@Param("annexType") int annexType,@Param("isBatchUpload") int isBatchUpload);
36 36
 
37 37
     void deleteCaseAttachByCasedIdAndType(@Param("caseAppliId")Long caseAppliId,@Param("annexType") int annexType);
38
+
39
+    /**
40
+     * 删除存在的附件不包括该附件
41
+     * @param caseId 附件
42
+     * @param type 附件类型
43
+     * @param annexId 附件id
44
+     */
45
+    void deleteCaseAttach(@Param("caseId")Long caseId, @Param("type")int type,@Param("annexId") Long annexId);
46
+    /**
47
+     * 根据ids查询
48
+     * @param fileIds
49
+     * @return
50
+     */
51
+    List<CaseAttach> selectByIds(@Param("ids") List<String> fileIds);
38 52
 }

+ 1
- 4
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseEvidenceMapper.java Просмотреть файл

@@ -9,8 +9,5 @@ import java.util.List;
9 9
 
10 10
 @Mapper
11 11
 public interface CaseEvidenceMapper {
12
-    List<CaseEvidenceVO> getCaseListByRespondent(@Param(value = "identityNum" ) String identityNum
13
-            , @Param(value = "caseStatusList") List<Integer> caseStatusList
14
-            , @Param(value = "identityType" ) Integer identityType
15
-    );
12
+
16 13
 }

+ 4
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseNumRuleMapper.java Просмотреть файл

@@ -13,4 +13,8 @@ public interface CaseNumRuleMapper {
13 13
     int deleteCaseNumRule(CaseNumRule caseNumRule);
14 14
 
15 15
     List<CaseNumRule> selectCaseNumRules(CaseNumRule caseNumRule);
16
+
17
+    int countCaseNumRule(CaseNumRule caseNumRule);
18
+
19
+    CaseNumRule selectCaseNumRule(CaseNumRule caseNumRule);
16 20
 }

+ 3
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CasePaymentRecordMapper.java Просмотреть файл

@@ -2,10 +2,12 @@ package com.ruoyi.wisdomarbitrate.mapper;
2 2
 
3 3
 import com.ruoyi.wisdomarbitrate.domain.CasePaymentRecord;
4 4
 
5
+import java.util.List;
6
+
5 7
 public interface CasePaymentRecordMapper {
6 8
     int saveRecord(CasePaymentRecord casePaymentRecord);
7 9
 
8
-    CasePaymentRecord queryRecord(String orderNumber);
10
+    List<CasePaymentRecord> queryRecord(String orderNumber);
9 11
 
10 12
     void update(CasePaymentRecord casePaymentRecord);
11 13
 

+ 23
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/SealSignRecordMapper.java Просмотреть файл

@@ -2,17 +2,40 @@ package com.ruoyi.wisdomarbitrate.mapper;
2 2
 
3 3
 
4 4
 
5
+import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
5 6
 import com.ruoyi.wisdomarbitrate.domain.SealSignRecord;
7
+import org.apache.ibatis.annotations.Param;
6 8
 
7 9
 import java.util.List;
8 10
 
9 11
 public interface SealSignRecordMapper {
10 12
     List<SealSignRecord> selectSealSignRecord(SealSignRecord sealSignRecord);
11 13
 
14
+    /**
15
+     * 查询已签署和签署中的文件
16
+     * @param sealSignRecord
17
+     * @return
18
+     */
12 19
     List<SealSignRecord> selectSealSignRecordbyStat(SealSignRecord sealSignRecord);
13 20
 
21
+    /**
22
+     * 差询等待签署,签署中的案件
23
+     * @param penSonAccount 签署人员
24
+     * @return
25
+     */
26
+    List<CaseApplication> selectSealSigning(@Param("penSonAccount") String penSonAccount, @Param("caseStatus") Integer caseStatus);
27
+
14 28
     int updataSealSignRecord(SealSignRecord sealSignRecord);
15 29
 
16 30
 
17 31
     void insertSealSignRecord(SealSignRecord sealSignRecord);
32
+
33
+    List<CaseApplication> selectsignFlow(@Param("batchNumber") Integer batchNumber,@Param("caseStatus")  Integer caseStatus);
34
+
35
+    /**
36
+     * 根据签署流程id查询签署记录
37
+     * @param signFlowId
38
+     * @return
39
+     */
40
+    SealSignRecord selectSealByFlowId(@Param("signFlowId") String signFlowId);
18 41
 }

+ 0
- 15
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/SendMailRecordMapper.java Просмотреть файл

@@ -1,15 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.mapper;
2
-
3
-import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
4
-import com.ruoyi.wisdomarbitrate.domain.SendMailRecord;
5
-
6
-import java.util.List;
7
-
8
-public interface SendMailRecordMapper {
9
-    int saveSendMailRecord(SendMailRecord sendMailRecord);
10
-
11
-    List<SendMailRecord>  selectSendMailRecord(SendMailRecord sendMailRecord);
12
-
13
-
14
-
15
-}

+ 36
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/sendrecord/SendMailRecordMapper.java Просмотреть файл

@@ -0,0 +1,36 @@
1
+package com.ruoyi.wisdomarbitrate.mapper.sendrecord;
2
+
3
+import com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SendMailRecord;
4
+
5
+import java.util.List;
6
+
7
+public interface SendMailRecordMapper {
8
+    /**
9
+     * 新增发送邮件记录
10
+     *
11
+     * @param sendMailRecord 发送邮件记录
12
+     * @return 结果
13
+     */
14
+
15
+    int saveSendMailRecord(SendMailRecord sendMailRecord);
16
+/**
17
+     * 查询发送邮件记录
18
+     *
19
+     * @param sendMailRecord 发送邮件记录
20
+     * @return 结果
21
+     */
22
+    List<SendMailRecord>  selectSendMailRecord(SendMailRecord sendMailRecord);
23
+/**
24
+     * 修改发送邮件记录
25
+     *
26
+     * @param sendMailRecord 发送邮件记录
27
+     * @return 结果
28
+     */
29
+   int updateSendMailRecord(SendMailRecord sendMailRecord);
30
+
31
+    /**
32
+     * 根据id查询发送邮件记录
33
+     * @param id
34
+     */
35
+    SendMailRecord querySendMailRecordById(Long id);
36
+}

ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/SmsRecordMapper.java → ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/sendrecord/SmsRecordMapper.java Просмотреть файл

@@ -1,6 +1,6 @@
1
-package com.ruoyi.wisdomarbitrate.mapper;
1
+package com.ruoyi.wisdomarbitrate.mapper.sendrecord;
2 2
 
3
-import com.ruoyi.wisdomarbitrate.domain.SmsSendRecord;
3
+import com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SmsSendRecord;
4 4
 import org.apache.ibatis.annotations.Mapper;
5 5
 import org.apache.ibatis.annotations.Param;
6 6
 
@@ -19,4 +19,13 @@ public interface SmsRecordMapper {
19 19
      * @return
20 20
      */
21 21
     int batchSaveSmsSendRecord(@Param("list") List<SmsSendRecord> smsSendRecordList);
22
+    SmsSendRecord selectBySId(@Param("sid") String sid);
23
+    void updateStatus (SmsSendRecord smsSendRecord);
24
+
25
+    /**
26
+     * 通过id查询短信发送记录
27
+     */
28
+    SmsSendRecord selectById(@Param("id") Long id);
29
+
30
+    void update(SmsSendRecord smsSendRecord);
22 31
 }

+ 8
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/shortmessage/MeetingInfoMapper.java Просмотреть файл

@@ -0,0 +1,8 @@
1
+package com.ruoyi.wisdomarbitrate.mapper.shortmessage;
2
+
3
+
4
+import com.ruoyi.wisdomarbitrate.domain.shortmessage.MeetingInfo;
5
+import tk.mybatis.mapper.common.Mapper;
6
+
7
+public interface MeetingInfoMapper extends Mapper<MeetingInfo> {
8
+}

+ 8
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/shortmessage/MsSendMailHistoryRecordMapper.java Просмотреть файл

@@ -0,0 +1,8 @@
1
+package com.ruoyi.wisdomarbitrate.mapper.shortmessage;
2
+
3
+
4
+import com.ruoyi.wisdomarbitrate.domain.shortmessage.MsSendMailHistoryRecord;
5
+import tk.mybatis.mapper.common.Mapper;
6
+
7
+public interface MsSendMailHistoryRecordMapper extends Mapper<MsSendMailHistoryRecord> {
8
+}

+ 8
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/shortmessage/MsSmsSendHistoryRecordMapper.java Просмотреть файл

@@ -0,0 +1,8 @@
1
+package com.ruoyi.wisdomarbitrate.mapper.shortmessage;
2
+
3
+
4
+import com.ruoyi.wisdomarbitrate.domain.shortmessage.MsSmsSendHistoryRecord;
5
+import tk.mybatis.mapper.common.Mapper;
6
+
7
+public interface MsSmsSendHistoryRecordMapper extends Mapper<MsSmsSendHistoryRecord> {
8
+}

+ 22
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/sms/MsSmsSendHistoryRecordParamMapper.java Просмотреть файл

@@ -0,0 +1,22 @@
1
+package com.ruoyi.wisdomarbitrate.mapper.sms;
2
+
3
+import com.ruoyi.wisdomarbitrate.domain.entity.sms.MsSmsSendHistoryRecordParam;
4
+import org.apache.ibatis.annotations.Param;
5
+import org.apache.ibatis.annotations.Select;
6
+import tk.mybatis.mapper.common.Mapper;
7
+
8
+import java.util.List;
9
+
10
+public interface MsSmsSendHistoryRecordParamMapper extends Mapper<MsSmsSendHistoryRecordParam> {
11
+    /**
12
+     * 批量新增
13
+     * @param historyRecordParams
14
+     */
15
+    @Select("<script> INSERT INTO sms_send_history_record_param (sms_record_history_id, param_value)\n" +
16
+            "       VALUES\n" +
17
+            "       <foreach item=\"item\" index=\"index\" collection=\"list\" separator=\",\">\n" +
18
+            "           (#{item.smsRecordHistoryId}, #{item.paramValue})\n" +
19
+            "       </foreach> " +
20
+            "</script>")
21
+    void batchInsert(@Param("list") List<MsSmsSendHistoryRecordParam> historyRecordParams);
22
+}

+ 22
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/sms/MsSmsSendRecordParamMapper.java Просмотреть файл

@@ -0,0 +1,22 @@
1
+package com.ruoyi.wisdomarbitrate.mapper.sms;
2
+
3
+import com.ruoyi.wisdomarbitrate.domain.entity.sms.MsSmsSendRecordParam;
4
+import org.apache.ibatis.annotations.Param;
5
+import org.apache.ibatis.annotations.Select;
6
+import tk.mybatis.mapper.common.Mapper;
7
+
8
+import java.util.List;
9
+
10
+public interface MsSmsSendRecordParamMapper extends Mapper<MsSmsSendRecordParam> {
11
+    /**
12
+     * 批量插入
13
+     * @param list
14
+     */
15
+    @Select("<script> INSERT INTO sms_send_record_param (sms_record_id, param_value)\n" +
16
+            "       VALUES\n" +
17
+            "       <foreach item=\"item\" index=\"index\" collection=\"list\" separator=\",\">\n" +
18
+            "           (#{item.smsRecordId}, #{item.paramValue})\n" +
19
+            "       </foreach> " +
20
+            "</script>")
21
+    void batchInsert(@Param("list") List<MsSmsSendRecordParam> list);
22
+}

+ 8
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/sms/MsSmsTemplateMapper.java Просмотреть файл

@@ -0,0 +1,8 @@
1
+package com.ruoyi.wisdomarbitrate.mapper.sms;
2
+
3
+
4
+import com.ruoyi.wisdomarbitrate.domain.entity.sms.MsSmsTemplate;
5
+import tk.mybatis.mapper.common.Mapper;
6
+
7
+public interface MsSmsTemplateMapper extends Mapper<MsSmsTemplate> {
8
+}

+ 19
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/sms/MsSmsTemplateParamMapper.java Просмотреть файл

@@ -0,0 +1,19 @@
1
+package com.ruoyi.wisdomarbitrate.mapper.sms;
2
+
3
+
4
+import com.ruoyi.wisdomarbitrate.domain.entity.sms.MsSmsTemplateParam;
5
+import org.apache.ibatis.annotations.Param;
6
+import org.apache.ibatis.annotations.Select;
7
+import tk.mybatis.mapper.common.Mapper;
8
+
9
+import java.util.List;
10
+
11
+public interface MsSmsTemplateParamMapper extends Mapper<MsSmsTemplateParam> {
12
+    @Select("<script> INSERT INTO sms_template_param (sms_template_id, param,param_name)\n" +
13
+            "       VALUES\n" +
14
+            "       <foreach item=\"item\" index=\"index\" collection=\"list\" separator=\",\">\n" +
15
+            "           (#{item.smsTemplateId}, #{item.param}, #{item.paramName})\n" +
16
+            "       </foreach> " +
17
+            "</script>")
18
+    void batchInsert(@Param("list") List<MsSmsTemplateParam> templateParams);
19
+}

+ 46
- 5
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/IAdjudicationService.java Просмотреть файл

@@ -1,10 +1,14 @@
1 1
 package com.ruoyi.wisdomarbitrate.service;
2 2
 
3 3
 import com.ruoyi.common.core.domain.AjaxResult;
4
+import com.ruoyi.common.exception.EsignDemoException;
5
+import com.ruoyi.wisdomarbitrate.StringIdsReq;
4 6
 import com.ruoyi.wisdomarbitrate.domain.BatchCaseApplication;
5 7
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
8
+import com.ruoyi.wisdomarbitrate.domain.SealSignRecord;
6 9
 import com.ruoyi.wisdomarbitrate.domain.vo.LogisticsInfoVO;
7 10
 
11
+import java.io.IOException;
8 12
 import java.util.List;
9 13
 
10 14
 public interface IAdjudicationService {
@@ -12,19 +16,16 @@ public interface IAdjudicationService {
12 16
 
13 17
     AjaxResult sendDocumentByEmail(Long id,String appEmail,String resEmail ,String apptrackingNum,String restrackingNum);
14 18
 
15
-    List<LogisticsInfoVO> getLogisticsInfo(CaseApplication caseApplication);
19
+//    List<LogisticsInfoVO> getLogisticsInfo(CaseApplication caseApplication);
16 20
 
17
-    AjaxResult signature(CaseApplication caseApplication);
18 21
 
19 22
     AjaxResult caseFile( List<Long> ids);
20 23
 
21 24
     AjaxResult service(Long id, String appEmail, String resEmail, String apptrackingNum, String restrackingNum);
22 25
 
23
-    AjaxResult stamp(CaseApplication caseApplication);
24 26
 
25
-    AjaxResult getArchivesDetail(Long id);
26 27
 
27
-    AjaxResult regenerationDocument(CaseApplication caseApplication);
28
+
28 29
 
29 30
     /**
30 31
      * 根据案件id查询邮箱
@@ -39,4 +40,44 @@ public interface IAdjudicationService {
39 40
      * @return
40 41
      */
41 42
     AjaxResult batchDocument(List<Long> ids);
43
+
44
+    /**
45
+     * 根据签署流程id查询批量签名链接
46
+     * @param idsReq
47
+     * @return
48
+     */
49
+    SealSignRecord selectBatchSignUrl( StringIdsReq idsReq);
50
+
51
+    /**
52
+     * 根据仲裁员手机号分页查询等待签署,签署中的裁决书
53
+     * @param personAccount
54
+     * @return
55
+     */
56
+    List<CaseApplication> selectSealSigning(String personAccount,Integer caseStatus);
57
+
58
+    SealSignRecord selectBatchSealUrl(StringIdsReq idsReq);
59
+
60
+    SealSignRecord getSignUrlBatch(StringIdsReq idsReq);
61
+
62
+    SealSignRecord getSealUrlBatch(StringIdsReq idsReq);
63
+
64
+    AjaxResult caseFileBatch(Integer batchNumber);
65
+
66
+    AjaxResult serviceBatch(Integer batchNumber) throws EsignDemoException, IOException;
67
+
68
+    /**
69
+     * 开庭审理,确定审理结果,生成裁决书
70
+     * @param caseApplication
71
+     * @return
72
+     */
73
+    AjaxResult caseJudgment(CaseApplication caseApplication);
74
+
75
+    /**
76
+     * 案件状态改变
77
+     * @param id 案件id
78
+     * @param caseStatus 案件状态
79
+     * @return
80
+     */
81
+
82
+    AjaxResult changeCaseStatus(Long id, Integer caseStatus);
42 83
 }

+ 94
- 19
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseApplicationService.java Просмотреть файл

@@ -1,12 +1,13 @@
1 1
 package com.ruoyi.wisdomarbitrate.service;
2 2
 
3
+import com.alibaba.fastjson.JSONArray;
3 4
 import com.ruoyi.common.core.domain.AjaxResult;
5
+import com.ruoyi.common.core.domain.entity.SysUser;
4 6
 import com.ruoyi.common.exception.EsignDemoException;
5 7
 import com.ruoyi.wisdomarbitrate.domain.*;
6
-import com.ruoyi.wisdomarbitrate.domain.vo.ColumnValue;
7
-import com.ruoyi.wisdomarbitrate.domain.vo.ReservedConferenceVO;
8
-import com.ruoyi.wisdomarbitrate.domain.vo.SendRoomNoMessageVO;
9
-import com.ruoyi.wisdomarbitrate.domain.vo.ToDoCount;
8
+import com.ruoyi.wisdomarbitrate.domain.dto.CaseApplicationDTO;
9
+import com.ruoyi.wisdomarbitrate.domain.entity.CaseAffiliateEntity;
10
+import com.ruoyi.wisdomarbitrate.domain.vo.*;
10 11
 import org.springframework.web.bind.annotation.RequestParam;
11 12
 import org.springframework.web.multipart.MultipartFile;
12 13
 
@@ -15,15 +16,15 @@ import java.util.List;
15 16
 import java.util.Map;
16 17
 
17 18
 public interface ICaseApplicationService {
18
-    List<CaseApplication> selectCaseApplicationList(CaseApplication caseApplication);
19
-    List<CaseApplication> selectCaseApplicationListByRole(CaseApplication caseApplication);
20 19
 
21 20
 
22
-    int insertcaseApplication(CaseApplication caseApplication);
21
+//    int insertcaseApplication(CaseApplication caseApplication);
22
+
23
+//    int insertcaseApplication1(CaseApplication caseApplication);
23 24
 
24 25
     int selectCaseApplicationCount(CaseApplication caseApplication);
25 26
 
26
-    AjaxResult editCaseApplication(CaseApplication caseApplication);
27
+//    AjaxResult editCaseApplication(CaseApplication caseApplication);
27 28
 
28 29
     int submitCaseApplication( List<Long> ids);
29 30
 
@@ -37,7 +38,7 @@ public interface ICaseApplicationService {
37 38
 
38 39
     int pendingAppointArbotrar(CaseApplication caseApplication);
39 40
 
40
-    int pendTralCheck(CaseApplication caseApplication);
41
+    AjaxResult pendTralCheck(CaseApplication caseApplication);
41 42
 
42 43
     int pendTralSure(CaseApplication caseApplication);
43 44
 
@@ -47,15 +48,13 @@ public interface ICaseApplicationService {
47 48
 
48 49
     int submitCaseApplicationCheck(List<Long> ids, Integer agreeOrNotCheck,String caseCheckReject);
49 50
 
50
-    CaseApplication selectCaseApplicationConfirm(CaseApplication caseApplication);
51
-
52 51
     String sendRoomNoMessage(SendRoomNoMessageVO messageVO);
53 52
 
54 53
     SealSignRecord selectSignUrl(CaseApplication caseApplication) throws EsignDemoException;
55 54
 
56 55
     SealSignRecord selectSealUrl(CaseApplication caseApplication) throws EsignDemoException;
57 56
 
58
-    AjaxResult creatTrialRecord(ArbitrateRecord arbitrateRecord);
57
+
59 58
 
60 59
     CaseApplication selectSignSealUrl(CaseApplication caseApplication) throws EsignDemoException;
61 60
 
@@ -77,12 +76,7 @@ public interface ICaseApplicationService {
77 76
     int updateCaseLockStatus(CaseApplication caseApplication);
78 77
 
79 78
     AjaxResult uploadZipFile(MultipartFile file, Long id, String username, Long userId);
80
-    /**
81
-     * 查询短信发送记录
82
-     * @param smsSendRecord
83
-     * @return
84
-     */
85
-    List<SmsSendRecord> getSmsSendRecord(SmsSendRecord smsSendRecord);
79
+
86 80
 
87 81
     /**
88 82
      * 获取userSign
@@ -114,7 +108,7 @@ public interface ICaseApplicationService {
114 108
 
115 109
     AjaxResult deleteRoom(  String roomId);
116 110
 
117
-    AjaxResult uploadCaseZipFile(MultipartFile file,Long templateId);
111
+    AjaxResult uploadCaseZipFile(MultipartFile file,Long templateId,Integer applicantType,Integer resType);
118 112
 
119 113
     /**
120 114
      * 根据附件id修改案件id
@@ -135,4 +129,85 @@ public interface ICaseApplicationService {
135 129
     AjaxResult editCaseApplicationDefineval(CaseApplication caseApplication);
136 130
 
137 131
     CaseAttach downloadCaseZipFile(CaseApplication caseApplication);
132
+
133
+//    List<CaseApplication> selectCaseApplicationListBatchByRole(CaseApplication caseApplication);
134
+    public List<CaseApplication> page(CaseApplication caseApplication) ;
135
+
136
+
137
+    AjaxResult submitCaseApplicationBatch(String batchNumber);
138
+
139
+    AjaxResult submitCaseApplicationCheckBatch(String batchNumber, Integer agreeOrNotCheck, String caseCheckReject);
140
+
141
+    int pendTralCheckBatch(CaseApplication caseApplication);
142
+
143
+    int pendTralSureBatch(CaseApplication caseApplication);
144
+
145
+    int verificationArbitrateRecordBatch(CaseApplication caseApplication);
146
+
147
+    AjaxResult arbitratorCheckArbitrateRecordBatch(CaseApplication caseApplication);
148
+
149
+    AjaxResult checkArbitrateRecordBatch(CaseApplication caseApplication);
150
+    /**
151
+     * 附件上传到onlyoffice服务器
152
+     * @param annexPath
153
+     */
154
+    JSONArray uploadOnlyOffice(String annexPath, Long id);
155
+    /**
156
+     * 保存onlyOffice在线编辑的文件
157
+     * @param
158
+     * @return
159
+     */
160
+
161
+    AjaxResult saveOnlyOfficeFile(CaseAttach caseAttach);
162
+
163
+    /**
164
+     * 新增或编辑
165
+     * @param caseApplication
166
+     * @return
167
+     */
168
+
169
+    AjaxResult insertOrUpdate(CaseApplicationDTO caseApplication);
170
+
171
+    /**
172
+     * 设置案件相关信息
173
+     * @param caseApplication
174
+     * @param affiliate
175
+     * @param groupOrder 组别
176
+     * @param operatorCount 操作人数量
177
+     * @param updateFlag 是否修改案件
178
+     */
179
+    public int setCaseAfflicate(List<CaseAffiliateEntity> affliates,CaseApplicationDTO caseApplication, CaseAffiliateEntity affiliate, int groupOrder, int operatorCount, boolean updateFlag);
180
+
181
+    /**
182
+     * 新增案件
183
+     * @param caseApplication
184
+     */
185
+    void insert(CaseApplicationDTO caseApplication);
186
+
187
+    /**
188
+     * 修改案件
189
+     * @param caseApplication
190
+     */
191
+
192
+    void update(CaseApplicationDTO caseApplication);
193
+    /**
194
+     * 新增案件相关人员信息
195
+     * @param affiliate 相关人员信息
196
+     * @param roleIdList 角色id
197
+     * @param updateFlag 是否修改案件
198
+
199
+     */
200
+    public void insertAfficateUser(CaseAffiliateEntity affiliate,  List<Long> roleIdList,boolean updateFlag,List<CaseAffiliateEntity> affiliateEntities);
201
+
202
+    void insertCaseAfflicate(CaseAffiliateVO caseAffiliateVO, List<CaseAffiliateEntity> affliates,CaseApplicationDTO caseApplicationm,boolean updateFlag);
203
+
204
+    /**
205
+     * 根据案件id查询相关人员
206
+     * @param id
207
+     * @return
208
+     */
209
+
210
+    List<CaseAffiliateEntity> selectAfflicatesByCaseId(Long id);
211
+
212
+    SysUser getUserInfo();
138 213
 }

+ 0
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseArbitrateService.java Просмотреть файл


Некоторые файлы не были показаны из-за большого количества измененных файлов