18792927508 2 лет назад
Родитель
Сommit
d0c94dc287
100 измененных файлов: 411 добавлений и 14504 удалений
  1. 2
    42
      ruoyi-admin/pom.xml
  2. 2
    0
      ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java
  3. 4
    0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java
  4. 0
    191
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/AdjudicationController.java
  5. 0
    44
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/ArbitratorController.java
  6. 0
    588
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java
  7. 0
    107
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationLogController.java
  8. 0
    47
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseArbitrateController.java
  9. 0
    160
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseEvidenceController.java
  10. 1
    3
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseLogRecordController.java
  11. 0
    110
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CasePaymentController.java
  12. 0
    14
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/SendMailRecordController.java
  13. 0
    149
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/VideoController.java
  14. 1
    1
      ruoyi-admin/src/main/resources/application-druid.yml
  15. 1
    1
      ruoyi-admin/src/main/resources/application.yml
  16. 3
    3
      ruoyi-admin/src/main/resources/generator/config.properties
  17. 3
    3
      ruoyi-admin/src/main/resources/generator/generatorConfig.xml
  18. 2
    1
      ruoyi-common/src/main/java/com/ruoyi/common/utils/EmailOutUtil.java
  19. 2
    1
      ruoyi-framework/src/main/java/com/ruoyi/framework/config/ApplicationConfig.java
  20. 5
    5
      ruoyi-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml
  21. 11
    11
      ruoyi-generator/src/main/resources/mapper/generator/GenTableMapper.xml
  22. 5
    5
      ruoyi-quartz/src/main/resources/mapper/quartz/SysJobLogMapper.xml
  23. 5
    5
      ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml
  24. 51
    2
      ruoyi-system/pom.xml
  25. 0
    1
      ruoyi-system/src/main/java/com/ruoyi/system/service/ISysUserService.java
  26. 0
    21
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java
  27. 76
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/dto/MsCaseLogRecordDTO.java
  28. 1
    1
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/StringIdsReq.java
  29. 0
    17
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/ArbitrateRecordMapper.java
  30. 0
    12
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/ArbitratorMapper.java
  31. 0
    25
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseAffiliateLogMapper.java
  32. 0
    45
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseAffiliateMapper.java
  33. 0
    56
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseApplicationLogMapper.java
  34. 0
    140
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseApplicationMapper.java
  35. 0
    29
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseEvidenceDirectoryMapper.java
  36. 0
    16
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseEvidenceMapper.java
  37. 4
    5
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseLogRecordMapper.java
  38. 0
    15
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CasePaymentRecordMapper.java
  39. 0
    32
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/SealSignRecordMapper.java
  40. 0
    16
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/TemplateManualMapper.java
  41. 0
    58
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/CaseApplicationLogService.java
  42. 0
    60
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/IAdjudicationService.java
  43. 0
    12
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/IArbitratorService.java
  44. 0
    154
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseApplicationService.java
  45. 0
    17
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseArbitrateService.java
  46. 0
    70
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseEvidenceService.java
  47. 0
    36
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICasePaymentService.java
  48. 0
    1513
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/AdjudicationServiceImpl.java
  49. 0
    28
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/ArbitratorServiceImpl.java
  50. 5
    4
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CallBackHandleServiceImpl.java
  51. 0
    512
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationLogServiceImpl.java
  52. 0
    3703
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java
  53. 0
    533
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseArbitrateServiceImpl.java
  54. 0
    511
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseEvidenceServiceImpl.java
  55. 0
    328
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseImportValid.java
  56. 0
    491
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CasePaymentServiceImpl.java
  57. 0
    1035
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseZipImportImpl.java
  58. 0
    485
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/VideoServiceImpl.java
  59. 0
    72
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/task/CaseZipImportTask.java
  60. 0
    362
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/FixSelectFlowDetailUtils.java
  61. 0
    10
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/ImageToBase64Converter.java
  62. 1
    8
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/SignAward.java
  63. 0
    6
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/UnZipFileUtils.java
  64. 0
    21
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/ZipFileUtils.java
  65. 5
    5
      ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml
  66. 18
    18
      ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
  67. 8
    8
      ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml
  68. 5
    5
      ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
  69. 4
    4
      ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml
  70. 27
    27
      ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml
  71. 5
    5
      ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml
  72. 4
    4
      ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
  73. 11
    11
      ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml
  74. 4
    4
      ruoyi-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml
  75. 12
    12
      ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
  76. 4
    4
      ruoyi-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml
  77. 50
    50
      ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
  78. 4
    4
      ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml
  79. 6
    6
      ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml
  80. 0
    109
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/ArbitrateRecordMapper.xml
  81. 0
    40
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/ArbitratorMapper.xml
  82. 0
    137
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAffiliateLogMapper.xml
  83. 0
    204
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAffiliateMapper.xml
  84. 0
    291
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationLogMapper.xml
  85. 0
    1377
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml
  86. 9
    9
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAttachLogMapper.xml
  87. 11
    11
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAttachMapper.xml
  88. 0
    79
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseEvidenceDirectoryMapper.xml
  89. 0
    31
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseEvidenceMapper.xml
  90. 3
    3
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseLogRecordMapper.xml
  91. 6
    6
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseNumRuleMapper.xml
  92. 0
    57
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CasePaymentRecordMapper.xml
  93. 4
    4
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/ColumnValueLogMapper.xml
  94. 5
    5
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/ColumnValueMapper.xml
  95. 3
    3
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/DeptIdentifyMapper.xml
  96. 7
    7
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/FatchRuleMapper.xml
  97. 4
    4
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/IdentityAuthenticationMapper.xml
  98. 4
    4
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/ReservedConferenceMapper.xml
  99. 3
    3
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/SealManageMapper.xml
  100. 0
    0
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/SealSignRecordMapper.xml

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

@@ -54,17 +54,7 @@
54 54
             <groupId>com.ruoyi</groupId>
55 55
             <artifactId>ruoyi-quartz</artifactId>
56 56
         </dependency>
57
-        <!--通用mapper-->
58
-        <dependency>
59
-            <groupId>tk.mybatis</groupId>
60
-            <artifactId>mapper-spring-boot-starter</artifactId>
61
-            <version>2.1.5</version>
62
-        </dependency>
63
-        <!-- 代码生成-->
64
-        <dependency>
65
-            <groupId>com.ruoyi</groupId>
66
-            <artifactId>ruoyi-generator</artifactId>
67
-        </dependency>
57
+
68 58
         <dependency>
69 59
             <groupId>com.ruoyi</groupId>
70 60
             <artifactId>pay</artifactId>
@@ -98,37 +88,7 @@
98 88
                     <warName>${project.artifactId}</warName>
99 89
                 </configuration>
100 90
             </plugin>
101
-            <!-- 通用mapper代码生成器-->
102
-            <plugin>
103
-                <groupId>org.mybatis.generator</groupId>
104
-                <artifactId>mybatis-generator-maven-plugin</artifactId>
105
-                <version>1.3.6</version>
106
-                <configuration>
107
-                    <configurationFile>
108
-                        ${basedir}/src/main/resources/generator/generatorConfig.xml
109
-                    </configurationFile>
110
-                    <overwrite>true</overwrite>
111
-                    <verbose>true</verbose>
112
-                </configuration>
113
-                <dependencies>
114
-                    <dependency>
115
-                        <groupId>mysql</groupId>
116
-                        <artifactId>mysql-connector-java</artifactId>
117
-                        <version>8.0.26</version>
118
-                    </dependency>
119
-                    <dependency>
120
-                        <groupId>tk.mybatis</groupId>
121
-                        <artifactId>mapper</artifactId>
122
-                        <version>4.1.5</version>
123
-                    </dependency>
124
-                    <dependency>
125
-                        <groupId>org.projectlombok</groupId>
126
-                        <artifactId>lombok</artifactId>
127
-                        <version>1.18.20</version>
128
-                        <scope>compile</scope>
129
-                    </dependency>
130
-                </dependencies>
131
-            </plugin>
91
+
132 92
             <!--跳过单测-->
133 93
             <plugin>
134 94
                 <groupId>org.apache.maven.plugins</groupId>

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

@@ -4,6 +4,7 @@ import org.springframework.boot.SpringApplication;
4 4
 import org.springframework.boot.autoconfigure.SpringBootApplication;
5 5
 import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
6 6
 import org.springframework.scheduling.annotation.EnableScheduling;
7
+import springfox.documentation.swagger2.annotations.EnableSwagger2;
7 8
 
8 9
 /**
9 10
  * 启动程序
@@ -12,6 +13,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
12 13
  */
13 14
 @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
14 15
 @EnableScheduling
16
+@EnableSwagger2
15 17
 public class RuoYiApplication
16 18
 {
17 19
     public static void main(String[] args)

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

@@ -6,6 +6,8 @@ import javax.servlet.http.HttpServletResponse;
6 6
 
7 7
 import cn.hutool.core.util.StrUtil;
8 8
 import com.ruoyi.common.annotation.Anonymous;
9
+import io.swagger.annotations.Api;
10
+import io.swagger.annotations.ApiOperation;
9 11
 import org.apache.commons.lang3.ArrayUtils;
10 12
 import org.springframework.beans.factory.annotation.Autowired;
11 13
 import org.springframework.security.access.prepost.PreAuthorize;
@@ -33,6 +35,7 @@ import com.ruoyi.system.service.ISysUserService;
33 35
  * 
34 36
  * @author ruoyi
35 37
  */
38
+@Api("用户信息管理")
36 39
 @RestController
37 40
 @RequestMapping("/system/user")
38 41
 public class SysUserController extends BaseController
@@ -52,6 +55,7 @@ public class SysUserController extends BaseController
52 55
     /**
53 56
      * 获取用户列表
54 57
      */
58
+    @ApiOperation(value = "获取用户列表",notes = "分页获取用户列表")
55 59
     @PreAuthorize("@ss.hasPermi('system:user:list')")
56 60
     @GetMapping("/list")
57 61
     public TableDataInfo list(SysUser user)

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

@@ -1,191 +0,0 @@
1
-package com.ruoyi.web.controller.wisdomarbitrate;
2
-
3
-import cn.hutool.core.collection.CollectionUtil;
4
-import cn.hutool.core.util.StrUtil;
5
-import com.ruoyi.common.core.controller.BaseController;
6
-import com.ruoyi.common.core.domain.AjaxResult;
7
-import com.ruoyi.common.core.page.TableDataInfo;
8
-import com.ruoyi.common.core.redis.RedisCache;
9
-import com.ruoyi.wisdomarbitrate.StringIdsReq;
10
-import com.ruoyi.wisdomarbitrate.domain.BatchCaseApplication;
11
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
12
-import com.ruoyi.wisdomarbitrate.domain.SealSignRecord;
13
-import com.ruoyi.wisdomarbitrate.domain.vo.BookSendVO;
14
-import com.ruoyi.wisdomarbitrate.domain.vo.LogisticsInfoVO;
15
-import com.ruoyi.wisdomarbitrate.service.IAdjudicationService;
16
-import org.springframework.beans.factory.annotation.Autowired;
17
-import org.springframework.security.access.prepost.PreAuthorize;
18
-import org.springframework.validation.annotation.Validated;
19
-import org.springframework.web.bind.annotation.*;
20
-
21
-import java.util.List;
22
-
23
-@RestController
24
-@RequestMapping("/adjudication")
25
-public class AdjudicationController extends BaseController {
26
-    @Autowired
27
-    private IAdjudicationService adjudicationService;
28
-
29
-    /**
30
-     * 根据签署流程id查询批量签名链接
31
-     */
32
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSignUrl')")
33
-    @PostMapping("/selectBatchSignUrl")
34
-    public AjaxResult selectBatchSignUrl(@RequestBody StringIdsReq idsReq) {
35
-        if(CollectionUtil.isEmpty(idsReq.getIds())|| StrUtil.isEmpty(idsReq.getPsnAccount())){
36
-            return error("参数校验失败");
37
-        }
38
-        SealSignRecord sealSignRecordselect = adjudicationService.selectBatchSignUrl(idsReq);
39
-        return success(sealSignRecordselect);
40
-    }
41
-
42
-    /**
43
-     * 根据签署流程id查询批量用印链接
44
-     */
45
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSignUrl')")
46
-    @PostMapping("/selectBatchSealUrl")
47
-    public AjaxResult selectBatchSealUrl(@RequestBody StringIdsReq idsReq) {
48
-        if(CollectionUtil.isEmpty(idsReq.getIds())|| StrUtil.isEmpty(idsReq.getPsnAccount())){
49
-            return error("参数校验失败");
50
-        }
51
-        SealSignRecord sealSignRecordselect = adjudicationService.selectBatchSealUrl(idsReq);
52
-        return success(sealSignRecordselect);
53
-    }
54
-    /**
55
-     * 根据仲裁员手机号分页查询待签名/待用印的案件
56
-     */
57
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSignUrl')")
58
-    @GetMapping("/pageSignAdjudicate")
59
-    public TableDataInfo pageSignAdjudicate(@RequestParam(value = "personAccount",required = false) String personAccount, @RequestParam("caseStatus") Integer caseStatus)  {
60
-        startPage();
61
-        List<CaseApplication> list = adjudicationService.selectSealSigning(personAccount,caseStatus);
62
-        return getDataTable(list);
63
-    }
64
-
65
-
66
-    /**
67
-     * 生成裁决书
68
-     * @param caseApplication
69
-     * @return
70
-     */
71
-    @PostMapping("/document")
72
-    public AjaxResult createDocument(@Validated @RequestBody CaseApplication caseApplication){
73
-        if (caseApplication.getId() == null) {
74
-            return AjaxResult.error("案件id不能为空");
75
-        }
76
-        return adjudicationService.createDocument(caseApplication);
77
-    }
78
-    /**
79
-     * 批量生成裁决书
80
-     * @param caseApplication
81
-     * @return
82
-     */
83
-    @PostMapping("/batchDocument")
84
-    public AjaxResult batchDocument(@Validated @RequestBody BatchCaseApplication caseApplication){
85
-        if (CollectionUtil.isEmpty(caseApplication.getIds())) {
86
-            return AjaxResult.error("参数校验失败");
87
-        }
88
-        return adjudicationService.batchDocument(caseApplication.getIds());
89
-    }
90
-
91
-    /**
92
-     * 重新生成裁决书
93
-     * @param caseApplication
94
-     * @return
95
-     */
96
-    @PostMapping("/regenerationDocument")
97
-    public AjaxResult regenerationDocument(@Validated @RequestBody CaseApplication caseApplication){
98
-        return adjudicationService.regenerationDocument(caseApplication);
99
-    }
100
-
101
-    /**
102
-     * 裁决书送达(电子邮件)
103
-     * @param bookSendVO
104
-     * @return
105
-     */
106
-    @PostMapping("/delivery")
107
-    public AjaxResult sendDocumentByEmail(@RequestBody BookSendVO bookSendVO){
108
-        return adjudicationService.sendDocumentByEmail(bookSendVO.getId(),bookSendVO.getAppEmail(),bookSendVO.getResEmail(),bookSendVO.getApptrackingNum(),bookSendVO.getRestrackingNum());
109
-    }
110
-
111
-    /**
112
-     * 根据快递单号查询物流信息
113
-     * @param caseApplication
114
-     * @return
115
-     */
116
-    @GetMapping("/logistics")
117
-//    @PreAuthorize("@ss.hasPermi('delivery:detail')")
118
-    public AjaxResult  getLogisticsInfo(CaseApplication caseApplication){
119
-        List<LogisticsInfoVO> logisticsInfo = adjudicationService.getLogisticsInfo(caseApplication);
120
-        return AjaxResult.success(logisticsInfo);
121
-    }
122
-
123
-    /**
124
-     * 签名(暂时只改案件状态)
125
-     * @param caseApplication
126
-     * @return
127
-     */
128
-    @PostMapping("/signature")
129
-//    @PreAuthorize("@ss.hasPermi('awardManagement:list:sign')")
130
-    public AjaxResult signature(@Validated @RequestBody CaseApplication caseApplication){
131
-        return adjudicationService.signature(caseApplication);
132
-    }
133
-
134
-
135
-    /**
136
-     * 归档(暂时只改案件状态)
137
-     * @param batchCaseApplication
138
-     * @return
139
-     */
140
-    @PostMapping("/caseFile")
141
-//    @PreAuthorize("@ss.hasPermi('awardManagement:list:file')")
142
-    public AjaxResult caseFile(@RequestBody BatchCaseApplication batchCaseApplication){
143
-        if(CollectionUtil.isEmpty(batchCaseApplication.getIds())){
144
-            return error("参数校验失败");
145
-        }
146
-        return adjudicationService.caseFile(batchCaseApplication.getIds());
147
-    }
148
-
149
-    /**
150
-     * 送达(不包含发送电子邮件)
151
-     * @param bookSendVO
152
-     * @return
153
-     */
154
-    @PostMapping("/service")
155
-//    @PreAuthorize("@ss.hasPermi('awardManagement:list:sendaward')")
156
-    public AjaxResult service(@RequestBody BookSendVO bookSendVO){
157
-        return adjudicationService.service(bookSendVO.getId(),bookSendVO.getAppEmail(),bookSendVO.getResEmail(),bookSendVO.getApptrackingNum(),bookSendVO.getRestrackingNum());
158
-    }
159
-    /**
160
-     * 用印(暂时只改案件状态)
161
-     * @param caseApplication
162
-     * @return
163
-     */
164
-    @PostMapping("/stamp")
165
-//    @PreAuthorize("@ss.hasPermi('awardManagement:list:signprint')")
166
-    public AjaxResult stamp(@Validated @RequestBody CaseApplication caseApplication){
167
-        return adjudicationService.stamp(caseApplication);
168
-    }
169
-
170
-    /**
171
-     * 档案详情查询
172
-     * @param id 案件id
173
-     * @return
174
-     */
175
-    @GetMapping("/archives")
176
-    public AjaxResult getArchivesDetail(Long id){
177
-
178
-        return adjudicationService.getArchivesDetail(id);
179
-    }
180
-    /**
181
-     * 根据案件id获取邮箱
182
-     * @param id 案件id
183
-     * @return
184
-     */
185
-    @GetMapping("/emailByCaseId")
186
-    public AjaxResult emailByCaseId(@RequestParam("id") Long id){
187
-
188
-        return adjudicationService.emailByCaseId(id);
189
-    }
190
-
191
-}

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

@@ -1,44 +0,0 @@
1
-package com.ruoyi.web.controller.wisdomarbitrate;
2
-
3
-import com.ruoyi.common.core.controller.BaseController;
4
-import com.ruoyi.common.core.domain.entity.SysUser;
5
-import com.ruoyi.common.core.page.TableDataInfo;
6
-import com.ruoyi.system.mapper.SysUserMapper;
7
-import com.ruoyi.system.service.ISysUserService;
8
-import com.ruoyi.wisdomarbitrate.domain.Arbitrator;
9
-import com.ruoyi.wisdomarbitrate.service.IArbitratorService;
10
-import org.springframework.beans.factory.annotation.Autowired;
11
-import org.springframework.security.access.prepost.PreAuthorize;
12
-import org.springframework.web.bind.annotation.GetMapping;
13
-import org.springframework.web.bind.annotation.RequestMapping;
14
-import org.springframework.web.bind.annotation.RestController;
15
-
16
-import java.util.List;
17
-
18
-@RestController
19
-@RequestMapping("/arbitrator")
20
-public class ArbitratorController   extends BaseController {
21
-    @Autowired
22
-    private ISysUserService sysUserService;
23
-
24
-    /**
25
-     * 查询仲裁员信息
26
-     */
27
-//    @PreAuthorize("@ss.hasPermi('arbitrator:list')")
28
-    @GetMapping("/list")
29
-    public TableDataInfo list(Arbitrator arbitrator)
30
-    {
31
-        startPage();
32
-        List<SysUser> list = sysUserService.selectUserListByAdRole(arbitrator);
33
-        return getDataTable(list);
34
-    }
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-}

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

@@ -1,588 +0,0 @@
1
-package com.ruoyi.web.controller.wisdomarbitrate;
2
-
3
-import cn.hutool.core.collection.CollectionUtil;
4
-import cn.hutool.core.util.StrUtil;
5
-import com.alipay.api.internal.util.file.IOUtils;
6
-import com.ruoyi.common.annotation.Anonymous;
7
-import com.ruoyi.common.annotation.Log;
8
-import com.ruoyi.common.constant.FileTransformation;
9
-import com.ruoyi.common.core.controller.BaseController;
10
-import com.ruoyi.common.core.domain.AjaxResult;
11
-import com.ruoyi.common.core.page.TableDataInfo;
12
-import com.ruoyi.common.enums.BusinessType;
13
-import com.ruoyi.common.exception.EsignDemoException;
14
-import com.ruoyi.common.exception.ServiceException;
15
-import com.ruoyi.common.utils.StringUtils;
16
-import com.ruoyi.common.utils.WxAppletNotifyUtils;
17
-import com.ruoyi.util.FileUtil;
18
-import com.ruoyi.wisdomarbitrate.StringIdsReq;
19
-import com.ruoyi.wisdomarbitrate.domain.*;
20
-import com.ruoyi.wisdomarbitrate.domain.vo.ReservedConferenceVO;
21
-import com.ruoyi.wisdomarbitrate.domain.vo.SendRoomNoMessageVO;
22
-import com.ruoyi.wisdomarbitrate.domain.vo.ToDoCount;
23
-import com.ruoyi.wisdomarbitrate.service.IAdjudicationService;
24
-import com.ruoyi.wisdomarbitrate.service.ICaseApplicationService;
25
-import org.springframework.beans.factory.annotation.Autowired;
26
-import org.springframework.security.access.prepost.PreAuthorize;
27
-import org.springframework.validation.annotation.Validated;
28
-import org.springframework.web.bind.annotation.*;
29
-import com.ruoyi.common.utils.poi.ExcelUtil;
30
-import org.springframework.web.multipart.MultipartFile;
31
-
32
-import javax.servlet.ServletException;
33
-import javax.servlet.http.HttpServletRequest;
34
-import javax.servlet.http.HttpServletResponse;
35
-import java.io.*;
36
-import java.net.URL;
37
-import java.net.URLEncoder;
38
-import java.util.List;
39
-
40
-
41
-@RestController
42
-@RequestMapping("/caseApplication")
43
-public class CaseApplicationController extends BaseController {
44
-    @Autowired
45
-    private ICaseApplicationService caseApplicationService;
46
-    @Autowired
47
-    private IAdjudicationService adjudicationService;
48
-
49
-
50
-    /**
51
-     * 查询立案数据
52
-     */
53
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list')")
54
-    @GetMapping("/list")
55
-    public TableDataInfo list(CaseApplication caseApplication) {
56
-        if(StrUtil.isEmpty(caseApplication.getSelectCaseStatus())){
57
-          caseApplication.setSelectCaseStatus("0");
58
-        }
59
-        startPage();
60
-        List<CaseApplication> list = caseApplicationService.selectCaseApplicationListByRole(caseApplication);
61
-        return getDataTable(list);
62
-    }
63
-
64
-    /**
65
-     * 查询批量管理案件列表
66
-     */
67
-    @GetMapping("/listBatch")
68
-    public TableDataInfo listBatch(CaseApplication caseApplication) {
69
-        startPage();
70
-        List<CaseApplication> list = caseApplicationService.selectCaseApplicationListBatchByRole(caseApplication);
71
-        return getDataTable(list);
72
-    }
73
-
74
-    /**
75
-     * 根据角色查询待办数量
76
-     * @return
77
-     */
78
-
79
-    @GetMapping("/toDoCount")
80
-    public AjaxResult toDoCount() {
81
-        ToDoCount toDoCount = caseApplicationService.selectToDoCount();
82
-//        List<CaseApplication> list = caseApplicationService.selectCaseApplicationList(caseApplication);
83
-        return success(toDoCount);
84
-    }
85
-
86
-    /**
87
-     * 新增立案数据
88
-     */
89
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:add')")
90
-    @Log(title = "新增立案数据", businessType = BusinessType.INSERT)
91
-    @PostMapping("/addCaseApplication")
92
-    public AjaxResult addCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
93
-    {
94
-
95
-        caseApplication.setCreateBy(getUsername());
96
-        return toAjax(caseApplicationService.insertcaseApplication(caseApplication));
97
-    }
98
-
99
-    /**
100
-     * 修改立案数据
101
-     */
102
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:update')")
103
-    @Log(title = "修改立案数据", businessType = BusinessType.UPDATE)
104
-    @PostMapping("/editCaseApplication")
105
-    public AjaxResult editCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
106
-
107
-        caseApplication.setUpdateBy(getUsername());
108
-        return caseApplicationService.editCaseApplication(caseApplication);
109
-    }
110
-
111
-    /**
112
-     * 修改立案数据自定义字段
113
-     */
114
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:update')")
115
-    @Log(title = "修改立案数据自定义字段", businessType = BusinessType.UPDATE)
116
-    @PostMapping("/editCaseApplicationDefineval")
117
-    public AjaxResult editCaseApplicationDefineval(@Validated @RequestBody CaseApplication caseApplication) {
118
-        return caseApplicationService.editCaseApplicationDefineval(caseApplication);
119
-    }
120
-
121
-    /**
122
-     * 提交立案申请
123
-     */
124
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:submit')")
125
-    @Log(title = "提交立案申请", businessType = BusinessType.UPDATE)
126
-    @PostMapping("/submitCaseApplication")
127
-    public AjaxResult submitCaseApplication(@RequestBody  BatchCaseApplication batchCaseApplication) {
128
-        if(CollectionUtil.isEmpty(batchCaseApplication.getIds())){
129
-            return error("参数校验失败");
130
-        }
131
-        return toAjax(caseApplicationService.submitCaseApplication(batchCaseApplication.getIds()));
132
-    }
133
-
134
-    /**
135
-     * 批量提交立案申请
136
-     */
137
-    @Log(title = "批量提交立案申请", businessType = BusinessType.UPDATE)
138
-    @PostMapping("/submitCaseApplicationBatch")
139
-    public AjaxResult submitCaseApplicationBatch(@RequestBody  BatchCaseApplication batchCaseApplication) {
140
-        if(StringUtils.isEmpty(batchCaseApplication.getBatchNumber())){
141
-            return error("参数校验失败");
142
-        }
143
-        return toAjax(caseApplicationService.submitCaseApplicationBatch(batchCaseApplication.getBatchNumber()));
144
-    }
145
-
146
-
147
-
148
-
149
-    /**
150
-     * 删除立案数据
151
-     */
152
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:delete')")
153
-    @Log(title = "删除立案数据", businessType = BusinessType.DELETE)
154
-    @PostMapping("/removeCaseApplication")
155
-    public AjaxResult removeCaseApplication(@RequestBody  BatchCaseApplication batchCaseApplication) {
156
-        if(CollectionUtil.isEmpty(batchCaseApplication.getIds())){
157
-            return error("参数校验失败");
158
-        }
159
-        return success(caseApplicationService.deletecaseApplicationByIds(batchCaseApplication.getIds()));
160
-    }
161
-
162
-    /**
163
-     * 查询立案信息
164
-     */
165
-//     @PreAuthorize("@ss.hasPermi('caseManagement:list:detail')")
166
-    @PostMapping("/selectCaseApplication")
167
-    public AjaxResult selectCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
168
-
169
-        CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplication(caseApplication);
170
-        return success(caseApplicationselect);
171
-    }
172
-
173
-    /**
174
-     * 查询已签署裁决书URL
175
-     */
176
-    @PostMapping("/selectSignSealUrl")
177
-    public AjaxResult selectSignSealUrl(@Validated @RequestBody CaseApplication caseApplication) throws EsignDemoException {
178
-        CaseApplication caseApplicationselect = caseApplicationService.selectSignSealUrl(caseApplication);
179
-        return success(caseApplicationselect);
180
-    }
181
-
182
-    /**
183
-     * 查询案件进度
184
-     */
185
-    @PostMapping("/selectCaseProgress")
186
-    public AjaxResult selectCaseProgress(@Validated @RequestBody CaseApplication caseApplication) {
187
-        AjaxResult caseApplicationselect = caseApplicationService.selectCaseProgress(caseApplication);
188
-        return success(caseApplicationselect);
189
-    }
190
-
191
-
192
-    /**
193
-     * 查询签名链接
194
-     */
195
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSignUrl')")
196
-    @PostMapping("/selectSignUrl")
197
-    public AjaxResult selectSignUrl(@Validated @RequestBody CaseApplication caseApplication) throws EsignDemoException {
198
-        SealSignRecord sealSignRecordselect = caseApplicationService.selectSignUrl(caseApplication);
199
-        return success(sealSignRecordselect);
200
-    }
201
-
202
-
203
-    /**
204
-     * 查询用印链接
205
-     */
206
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSealUrl')")
207
-    @PostMapping("/selectSealUrl")
208
-    public AjaxResult selectSealUrl(@Validated @RequestBody CaseApplication caseApplication) throws EsignDemoException {
209
-        SealSignRecord sealUrlRecordselect = caseApplicationService.selectSealUrl(caseApplication);
210
-        return success(sealUrlRecordselect);
211
-    }
212
-
213
-
214
-    /**
215
-     * 案件证据材料压缩包上传
216
-     *
217
-     * @param file      附件
218
-     * @param id        案件申请id
219
-     * @return
220
-     */
221
-    @PostMapping("/uploadZipFile")
222
-    public AjaxResult uploadZipFile(@RequestParam("file") MultipartFile file, Long id) {
223
-        String username = this.getUsername();
224
-        Long userId = this.getUserId();
225
-        return caseApplicationService.uploadZipFile(file, id, username, userId);
226
-    }
227
-
228
-    /**
229
-     * 立案申请导入模板下载
230
-     */
231
-    @PostMapping("/importTemplate")
232
-    public void importTemplate(HttpServletResponse response) {
233
-        // 读取文件
234
-        try {
235
-            InputStream fileInputStream = new URL("http://121.40.189.20:8000/API/uploadPath/template/案件导入模板.xlsx").openStream();
236
-            response.setHeader("content-type", "application/octet-stream");
237
-            response.setContentType("application/octet-stream");
238
-            response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode("案件导入模板.xlsx","UTF-8"));
239
-                        byte[] buffer = new byte[1024];
240
-            int length;
241
-            while ((length = fileInputStream.read(buffer)) > 0) {
242
-                response.getOutputStream().write(buffer, 0, length);
243
-            }
244
-
245
-        } catch (IOException e) {
246
-            throw new RuntimeException(e);
247
-        }
248
-
249
-    }
250
-
251
-    @Log(title = "立案信息导入", businessType = BusinessType.IMPORT)
252
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:import')")
253
-    @PostMapping("/importData")
254
-    public AjaxResult importData(MultipartFile file) throws Exception {
255
-        if(file==null){
256
-            return warn("请上传文件");
257
-        }
258
-        ExcelUtil<CaseApplication> util = new ExcelUtil<CaseApplication>(CaseApplication.class);
259
-        List<CaseApplication> caseApplicationList = util.importExcel(file.getInputStream());
260
-        String operName = getUsername();
261
-        String message = caseApplicationService.importCaseApplication(caseApplicationList, operName);
262
-        return success(message);
263
-    }
264
-
265
-    /**
266
-     * 组庭
267
-     */
268
-//    @PreAuthorize("@ss.hasPermi('caseApplication:pendTral')")
269
-    @Log(title = "组庭", businessType = BusinessType.UPDATE)
270
-    @PostMapping("/pendTral")
271
-    public AjaxResult pendTral(@Validated @RequestBody CaseApplication caseApplication) {
272
-        return toAjax(caseApplicationService.pendTral(caseApplication));
273
-    }
274
-
275
-    /**
276
-     * 组庭审核
277
-     */
278
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:checkgroup')")
279
-    @Log(title = "组庭审核", businessType = BusinessType.UPDATE)
280
-    @PostMapping("/pendTralCheck")
281
-    public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication) {
282
-        return toAjax(caseApplicationService.pendTralCheck(caseApplication));
283
-    }
284
-
285
-    /**
286
-     * 组庭确认
287
-     */
288
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:confirmgroup')")
289
-    @Log(title = "组庭确认", businessType = BusinessType.UPDATE)
290
-    @PostMapping("/pendTralSure")
291
-    public AjaxResult pendTralSure(@Validated @RequestBody CaseApplication caseApplication) {
292
-        return toAjax(caseApplicationService.pendTralSure(caseApplication));
293
-    }
294
-
295
-    /**
296
-     * 批量组庭审核
297
-     */
298
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:checkgroup')")
299
-    @Log(title = "批量组庭审核", businessType = BusinessType.UPDATE)
300
-    @PostMapping("/pendTralCheckBatch")
301
-    public AjaxResult pendTralCheckBatch(@Validated @RequestBody CaseApplication caseApplication) {
302
-        return toAjax(caseApplicationService.pendTralCheckBatch(caseApplication));
303
-    }
304
-
305
-    /**
306
-     * 批量组庭确认
307
-     */
308
-    @Log(title = "批量组庭确认", businessType = BusinessType.UPDATE)
309
-    @PostMapping("/pendTralSureBatch")
310
-    public AjaxResult pendTralSureBatch(@Validated @RequestBody CaseApplication caseApplication) {
311
-        return toAjax(caseApplicationService.pendTralSureBatch(caseApplication));
312
-    }
313
-
314
-    /**
315
-     * 修改开庭时间
316
-     */
317
-    @Log(title = "修改开庭时间", businessType = BusinessType.UPDATE)
318
-    @PostMapping("/updateHeardate")
319
-    public AjaxResult updateHeardate(@Validated @RequestBody CaseApplication caseApplication) {
320
-        return toAjax(caseApplicationService.updateHeardate(caseApplication));
321
-    }
322
-
323
-    /**
324
-     * 核验裁决书
325
-     */
326
-//    @PreAuthorize("@ss.hasPermi('caseApplication:verificationArbitrateRecord')")
327
-    @Log(title = "核验裁决书", businessType = BusinessType.UPDATE)
328
-    @PostMapping("/verificationArbitrateRecord")
329
-    public AjaxResult verificationArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication) {
330
-        return toAjax(caseApplicationService.verificationArbitrateRecord(caseApplication));
331
-    }
332
-
333
-    /**
334
-     * 部门长审核裁决书
335
-     */
336
-//    @PreAuthorize("@ss.hasPermi('caseApplication:checkArbitrateRecord')")
337
-    @Log(title = "部门长审核裁决书", businessType = BusinessType.UPDATE)
338
-    @PostMapping("/checkArbitrateRecord")
339
-    public AjaxResult checkArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication) {
340
-
341
-        return caseApplicationService.checkArbitrateRecord(caseApplication);
342
-    }
343
-    /**
344
-     * 仲裁员审核裁决书
345
-     */
346
-//    @PreAuthorize("@ss.hasPermi('caseApplication:checkArbitrateRecord')")
347
-    @Log(title = "仲裁员审核裁决书", businessType = BusinessType.UPDATE)
348
-    @PostMapping("/arbitrator/checkArbitrateRecord")
349
-    public AjaxResult arbitratorCheckArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication) {
350
-
351
-        return caseApplicationService.arbitratorCheckArbitrateRecord(caseApplication);
352
-    }
353
-
354
-    /**
355
-     * 批量操作仲裁员审核裁决书
356
-     */
357
-    @Log(title = "批量操作仲裁员审核裁决书", businessType = BusinessType.UPDATE)
358
-    @PostMapping("/arbitrator/checkArbitrateRecordBatch")
359
-    public AjaxResult arbitratorCheckArbitrateRecordBatch(@Validated @RequestBody CaseApplication caseApplication) {
360
-
361
-        return caseApplicationService.arbitratorCheckArbitrateRecordBatch(caseApplication);
362
-    }
363
-
364
-    /**
365
-     * 批量部门长审核裁决书
366
-     */
367
-    @Log(title = "批量部门长审核裁决书", businessType = BusinessType.UPDATE)
368
-    @PostMapping("/checkArbitrateRecordBatch")
369
-    public AjaxResult checkArbitrateRecordBatch(@Validated @RequestBody CaseApplication caseApplication) {
370
-
371
-        return caseApplicationService.checkArbitrateRecordBatch(caseApplication);
372
-    }
373
-
374
-    /**
375
-     * 批量核验裁决书
376
-     */
377
-    @Log(title = "批量核验裁决书", businessType = BusinessType.UPDATE)
378
-    @PostMapping("/verificationArbitrateRecordBatch")
379
-    public AjaxResult verificationArbitrateRecordBatch(@Validated @RequestBody CaseApplication caseApplication) {
380
-        return toAjax(caseApplicationService.verificationArbitrateRecordBatch(caseApplication));
381
-    }
382
-
383
-
384
-    /**
385
-     * 是否指派仲裁员
386
-     */
387
-//    @PreAuthorize("@ss.hasPermi('caseApplication:pendingAppointArbotrar')")
388
-    @Log(title = "是否指派仲裁员", businessType = BusinessType.UPDATE)
389
-    @PostMapping("/pendingAppointArbotrar")
390
-    public AjaxResult pendingAppointArbotrar(@Validated @RequestBody CaseApplication caseApplication) {
391
-        return toAjax(caseApplicationService.pendingAppointArbotrar(caseApplication));
392
-    }
393
-
394
-    /**
395
-     * 提交立案审查
396
-     */
397
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:check')")
398
-    @Log(title = "提交立案审查", businessType = BusinessType.UPDATE)
399
-    @PostMapping("/submitCaseApplicationCheck")
400
-    public AjaxResult submitCaseApplicationCheck(@RequestBody BatchCaseApplication batchCaseApplication) {
401
-        if(CollectionUtil.isEmpty(batchCaseApplication.getIds())|| batchCaseApplication.getAgreeOrNotCheck()==null){
402
-            return error("参数校验失败");
403
-        }
404
-        return success(caseApplicationService.submitCaseApplicationCheck(batchCaseApplication.getIds(),batchCaseApplication.getAgreeOrNotCheck(),batchCaseApplication.getCaseCheckReject()));
405
-    }
406
-
407
-    /**
408
-     * 确认缴费查询立案信息
409
-     */
410
-//    @PreAuthorize("@ss.hasPermi('paymentManagement:list:detail')")
411
-    @PostMapping("/selectCaseApplicationConfirm")
412
-    public AjaxResult selectCaseApplicationConfirm(@Validated @RequestBody CaseApplication caseApplication) {
413
-        CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplicationConfirm(caseApplication);
414
-        return success(caseApplicationselect);
415
-    }
416
-
417
-    /**
418
-     * 批量提交立案审查
419
-     */
420
-    @Log(title = "批量提交立案审查", businessType = BusinessType.UPDATE)
421
-    @PostMapping("/submitCaseApplicationCheckBatch")
422
-    public AjaxResult submitCaseApplicationCheckBatch(@RequestBody BatchCaseApplication batchCaseApplication) {
423
-        if(StringUtils.isEmpty(batchCaseApplication.getBatchNumber()) || batchCaseApplication.getAgreeOrNotCheck()==null){
424
-            return error("参数校验失败");
425
-        }
426
-        return success(caseApplicationService.submitCaseApplicationCheckBatch(batchCaseApplication.getBatchNumber(),batchCaseApplication.getAgreeOrNotCheck(),batchCaseApplication.getCaseCheckReject()));
427
-    }
428
-
429
-    /**
430
-     * 下载案件压缩包
431
-     */
432
-    @PostMapping("/downloadCaseZipFile")
433
-    public AjaxResult downloadCaseZipFile(@Validated @RequestBody CaseApplication caseApplication) {
434
-
435
-        CaseAttach caseAttach = caseApplicationService.downloadCaseZipFile(caseApplication);
436
-        return success(caseAttach);
437
-    }
438
-
439
-
440
-
441
-
442
-
443
-    /**
444
-     * 发送房间号短信
445
-     */
446
-    @Anonymous
447
-    @PostMapping("/sendRoomNoMessage")
448
-    public AjaxResult sendRoomNoMessage(@Validated @RequestBody SendRoomNoMessageVO messageVO) {
449
-        String result = caseApplicationService.sendRoomNoMessage(messageVO);
450
-        return success(result);
451
-    }
452
-    /**
453
-     * 获取UrlScheme
454
-     */
455
-    @Anonymous
456
-    @GetMapping("/getUrlScheme")
457
-    public AjaxResult getUrlScheme() {
458
-        String schemeUrl = WxAppletNotifyUtils.jumpAppletSchemeUrl();
459
-        return success(schemeUrl);
460
-    }
461
-
462
-    /**
463
-     * 生成庭审笔录
464
-     * @param arbitrateRecord
465
-     * @return
466
-     */
467
-    @PostMapping("/creatTrialRecord")
468
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:creatTrialRecord')")
469
-    public AjaxResult creatTrialRecord(@Validated @RequestBody ArbitrateRecord arbitrateRecord){
470
-        return caseApplicationService.creatTrialRecord(arbitrateRecord);
471
-    }
472
-
473
-    /**
474
-     * 记录庭审笔录
475
-     * @param arbitrateRecord
476
-     * @return
477
-     */
478
-    @PostMapping("/creatTrialRecordnew")
479
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:creatTrialRecord')")
480
-    public AjaxResult creatTrialRecordnew(@Validated @RequestBody ArbitrateRecord arbitrateRecord){
481
-        return caseApplicationService.creatTrialRecordnew(arbitrateRecord);
482
-    }
483
-
484
-    /**
485
-     * 案件锁定或者解锁
486
-     * @param caseApplication
487
-     * @return
488
-     */
489
-    @PostMapping("/updateCaseLockStatus")
490
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:creatTrialRecord')")
491
-    public AjaxResult updateCaseLockStatus(@Validated @RequestBody CaseApplication caseApplication){
492
-        if(caseApplication.getId()==null || caseApplication.getLockStatus()==null){
493
-            return error("参数校验失败");
494
-        }
495
-        return AjaxResult.success(caseApplicationService.updateCaseLockStatus(caseApplication));
496
-    }
497
-
498
-    /**
499
-     * 查询短信发送记录
500
-     * @param smsSendRecord
501
-     * @return
502
-     */
503
-    @PostMapping("/smsRecord")
504
-    public TableDataInfo getSmsSendRecord(@RequestBody SmsSendRecord smsSendRecord){
505
-        startPage();
506
-        List<SmsSendRecord> list = caseApplicationService.getSmsSendRecord(smsSendRecord);
507
-        return getDataTable(list);
508
-    }
509
-    /**
510
-     * 获取userSign
511
-     * @param userId
512
-     * @return
513
-     */
514
-    @Anonymous
515
-    @GetMapping("/generateUserSign")
516
-    public AjaxResult generateUserSign(@RequestParam(required = true) String userId){
517
-        if(StrUtil.isEmpty(userId)){
518
-            error("参数校验失败");
519
-        }
520
-        return AjaxResult.success(caseApplicationService.generateUserSign(userId));
521
-    }
522
-    /**
523
-     * 预约会议
524
-     * @param reservedConferenceVO
525
-     * @return
526
-     */
527
-    @PostMapping("/reservedConference")
528
-    public AjaxResult reservedConference(@Validated @RequestBody ReservedConferenceVO reservedConferenceVO) throws Exception {
529
-
530
-        return caseApplicationService.reservedConference(reservedConferenceVO);
531
-    }
532
-
533
-    /**
534
-     * 生成房间号
535
-     * @return
536
-     */
537
-    @Anonymous
538
-    @GetMapping("/createRoomId")
539
-    public AjaxResult createRoomId(@RequestParam("caseId") Long caseId) {
540
-
541
-        return  success(caseApplicationService.createRoomId(caseId));
542
-    }
543
-    /**
544
-     * 删除房间号
545
-     * @return
546
-     */
547
-    @Anonymous
548
-    @PostMapping("/deleteRoom")
549
-    public AjaxResult deleteRoom(@RequestParam("roomId") String roomId) {
550
-
551
-        return  caseApplicationService.deleteRoom(roomId);
552
-    }
553
-    /**
554
-     * 根据案件id查询已预约的会议
555
-     * @param caseId
556
-     * @return
557
-     */
558
-    @Anonymous
559
-    @GetMapping("/reserveConferenceList")
560
-    public AjaxResult reserveConferenceList(  @RequestParam("caseId") Long caseId) {
561
-
562
-        return  success(caseApplicationService.reserveConferenceList(caseId));
563
-    }
564
-
565
-    /**
566
-     * 案件压缩包导入
567
-     * @param file
568
-     * @return
569
-     * @throws IOException
570
-     */
571
-    @PostMapping("/uploadCaseZipFile")
572
-    public AjaxResult uploadCaseZipFile(@RequestParam("file") MultipartFile file,@RequestParam("templateId")  Long templateId) throws IOException {
573
-        return caseApplicationService.uploadCaseZipFile(file,templateId);
574
-    }
575
-
576
-    /**
577
-     * 根据附件id修改案件id
578
-     * @param caseAttach
579
-     * @return
580
-     */
581
-    @PostMapping("/updateCaseIdByAnnexId")
582
-    public AjaxResult updateCaseIdByAnnexId(@RequestBody CaseAttach caseAttach)  {
583
-        if(caseAttach.getAnnexId()==null || caseAttach.getCaseAppliId()==null){
584
-            return error("参数校验失败");
585
-        }
586
-        return caseApplicationService.updateCaseIdByAnnexId(caseAttach);
587
-    }
588
-}

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

@@ -1,107 +0,0 @@
1
-package com.ruoyi.web.controller.wisdomarbitrate;
2
-
3
-import com.ruoyi.common.annotation.Anonymous;
4
-import com.ruoyi.common.core.domain.AjaxResult;
5
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
6
-import com.ruoyi.wisdomarbitrate.domain.vo.UpdateSubmitVO;
7
-import com.ruoyi.wisdomarbitrate.service.CaseApplicationLogService;
8
-import org.springframework.beans.factory.annotation.Autowired;
9
-import org.springframework.web.bind.annotation.*;
10
-import org.springframework.web.bind.annotation.PostMapping;
11
-
12
-import static com.ruoyi.common.core.domain.AjaxResult.success;
13
-
14
-/**
15
- * @author wangqiong
16
- * @description 案件日志
17
- * @date 2023-11-17 13:58
18
- */
19
-@RestController
20
-@RequestMapping (value = "/caseApplicationLog")
21
-public class CaseApplicationLogController {
22
-
23
-    @Autowired
24
-    private CaseApplicationLogService caseApplicationLogService;
25
-
26
-    /**
27
-     * 新增
28
-     * @author wangqiong
29
-     * @date 2023/11/17
30
-     **/
31
-    @PostMapping("/insert")
32
-    public AjaxResult insert(@RequestBody CaseApplication caseApplicationLog){
33
-        return success(caseApplicationLogService.insert(caseApplicationLog));
34
-    }
35
-
36
-    /**
37
-     * 刪除
38
-     * @author wangqiong
39
-     * @date 2023/11/17
40
-     **/
41
-    @PostMapping("/delete")
42
-    public AjaxResult delete(Long id){
43
-        return success(caseApplicationLogService.delete(id));
44
-    }
45
-    /**
46
-     * 修改的案件提交到秘书
47
-     * @author wangqiong
48
-     * @date 2023/11/17
49
-     **/
50
-    @PostMapping("/submit")
51
-    public AjaxResult submit(@RequestBody UpdateSubmitVO vo){
52
-        if(vo.getCaseId()==null || vo.getVersion()==null){
53
-            return AjaxResult.error("参数校验错误");
54
-        }
55
-        return caseApplicationLogService.submit(vo);
56
-    }
57
-
58
-    /**
59
-     * 修改撤销申请
60
-     * @author wangqiong
61
-     * @date 2023/11/17
62
-     **/
63
-    @PostMapping("/revoke")
64
-    public AjaxResult revoke(@RequestBody UpdateSubmitVO vo){
65
-        if(vo.getCaseId()==null || vo.getVersion()==null){
66
-            return AjaxResult.error("参数校验错误");
67
-        }
68
-        // todo 需确定
69
-        return caseApplicationLogService.revoke(vo);
70
-    }
71
-
72
-    /**
73
-     * 查询 根据主键 id 查询
74
-     * @author wangqiong
75
-     * @date 2023/11/17
76
-     **/
77
-    @GetMapping("/selectByCaseIdAndVersion")
78
-    public AjaxResult selectByCaseIdAndVersion(@RequestParam(value = "caseId") Long caseId,@RequestParam(value = "version")Integer version ){
79
-        return success(caseApplicationLogService.selectByCaseIdAndVersion(caseId,version));
80
-    }
81
-    /**
82
-     * 秘书审核修改的案件
83
-     * @author wangqiong
84
-     * @date 2023/11/17
85
-     **/
86
-    @PostMapping("/updateAudit")
87
-    public AjaxResult updateAudit(@RequestBody UpdateSubmitVO vo){
88
-        if(vo.getCaseId()==null || vo.getVersion()==null || vo.getIsAgree()==null || vo.getUpdateSubmitStatus()==null){
89
-            return AjaxResult.error("参数校验错误");
90
-        }
91
-        return caseApplicationLogService.updateAudit(vo);
92
-    }
93
-    /**
94
-     * 查询该版本及之前版本案件进行对比
95
-     * @author wangqiong
96
-     * @date 2023/11/17
97
-     **/
98
-    @Anonymous
99
-    @PostMapping("/selectCompareCase")
100
-    public AjaxResult selectCompareCase(@RequestBody UpdateSubmitVO vo){
101
-        if(vo.getCaseId()==null || vo.getVersion()==null ){
102
-            return AjaxResult.error("参数校验错误");
103
-        }
104
-        return caseApplicationLogService.selectCompareCase(vo);
105
-    }
106
-  
107
-}

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

@@ -1,47 +0,0 @@
1
-package com.ruoyi.web.controller.wisdomarbitrate;
2
-
3
-import cn.hutool.core.collection.CollectionUtil;
4
-import com.ruoyi.common.core.controller.BaseController;
5
-import com.ruoyi.common.core.domain.AjaxResult;
6
-import com.ruoyi.wisdomarbitrate.domain.ArbitrateRecord;
7
-import com.ruoyi.wisdomarbitrate.domain.BatchCaseApplication;
8
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
9
-import com.ruoyi.wisdomarbitrate.domain.CaseIds;
10
-import com.ruoyi.wisdomarbitrate.service.ICaseArbitrateService;
11
-import org.springframework.beans.factory.annotation.Autowired;
12
-import org.springframework.security.access.prepost.PreAuthorize;
13
-import org.springframework.validation.annotation.Validated;
14
-import org.springframework.web.bind.annotation.*;
15
-
16
-import java.util.List;
17
-
18
-@RestController
19
-@RequestMapping("/arbitrate")
20
-public class CaseArbitrateController extends BaseController {
21
-    @Autowired
22
-    private ICaseArbitrateService caseArbitrateService;
23
-
24
-    /**
25
-     * 审核仲裁方式
26
-     * @param caseApplication
27
-     * @param opinion   1同意,0拒绝
28
-     * @return
29
-     */
30
-    @PutMapping("/method")
31
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:checkarbitrationway')")
32
-    public AjaxResult examineArbitrateMethod(@Validated @RequestBody CaseApplication caseApplication
33
-            , Integer opinion, Integer arbitratMethod){
34
-        return caseArbitrateService.examineArbitrateMethod(caseApplication,opinion,arbitratMethod);
35
-    }
36
-
37
-    /**
38
-     * 书面审理
39
-     * @param
40
-     * @return
41
-     */
42
-    @PostMapping("/writtenHear")
43
-    public AjaxResult writtenHear(@RequestBody CaseIds caseIds){
44
-        return  caseArbitrateService.writtenHear(caseIds);
45
-
46
-    }
47
-}

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

@@ -1,160 +0,0 @@
1
-package com.ruoyi.web.controller.wisdomarbitrate;
2
-
3
-import cn.hutool.core.collection.CollectionUtil;
4
-import cn.hutool.core.util.StrUtil;
5
-import com.ruoyi.common.core.controller.BaseController;
6
-import com.ruoyi.common.core.domain.AjaxResult;
7
-import com.ruoyi.common.core.page.TableDataInfo;
8
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
9
-import com.ruoyi.wisdomarbitrate.domain.CaseEvidenceDirectory;
10
-import com.ruoyi.wisdomarbitrate.domain.dto.CaseEvidenceDTO;
11
-import com.ruoyi.wisdomarbitrate.domain.vo.CaseEvidenceVO;
12
-import com.ruoyi.wisdomarbitrate.service.ICaseEvidenceService;
13
-import org.springframework.beans.factory.annotation.Autowired;
14
-import org.springframework.security.access.prepost.PreAuthorize;
15
-import org.springframework.validation.annotation.Validated;
16
-import org.springframework.web.bind.annotation.*;
17
-import org.springframework.web.multipart.MultipartFile;
18
-
19
-import java.util.ArrayList;
20
-import java.util.List;
21
-
22
-/**
23
- * 案件证据
24
- */
25
-@RestController
26
-@RequestMapping("/evidence")
27
-public class CaseEvidenceController extends BaseController {
28
-    private final ICaseEvidenceService caseEvidenceService;
29
-
30
-    @Autowired
31
-    public CaseEvidenceController(ICaseEvidenceService caseEvidenceService) {
32
-        this.caseEvidenceService = caseEvidenceService;
33
-    }
34
-
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
-    }
46
-
47
-    /**
48
-     * 案件证据上传
49
-     *
50
-     * @param file      附件
51
-     * @param annexType 附件类型,立案申请书(1)、证据材料(2)、仲裁文书(3)、案件视频(4)、身份证件(5)
52
-     * @param id        案件申请id
53
-     * @return
54
-     */
55
-    @PostMapping("/upload")
56
-    public AjaxResult uploadEvidence(@RequestParam("file") MultipartFile file, Integer annexType, Long id) {
57
-        String username = this.getUsername();
58
-        Long userId = this.getUserId();
59
-        return caseEvidenceService.uploadEvidence(file, annexType, id, username, userId);
60
-    }
61
-
62
-    /**
63
-     * 上传庭审笔录
64
-     *
65
-     * @param file      附件
66
-     * @param annexType 附件类型,庭审笔录(7)
67
-     * @param id        案件申请id
68
-     * @return
69
-     */
70
-    @PostMapping("/uploadRecord")
71
-    public AjaxResult uploadRecord(@RequestParam("file") MultipartFile file, Integer annexType, Long id) {
72
-        String username = this.getUsername();
73
-        Long userId = this.getUserId();
74
-        return caseEvidenceService.uploadRecord(file, annexType, id, username, userId);
75
-    }
76
-
77
-    @PostMapping("/batchUpload")
78
-    public AjaxResult batchUpload(@RequestParam("file") MultipartFile[] file, Integer annexType, Long id) {
79
-        if(file==null){
80
-            return error("请选择要上传的文件");
81
-        }
82
-        String username = this.getUsername();
83
-        Long userId = this.getUserId();
84
-        return caseEvidenceService.batchUpload(file, annexType, id, username, userId);
85
-    }
86
-
87
-    /**
88
-     * 获取附件
89
-     * @param caseAppliId
90
-     * @param annexTypeList
91
-     * @param
92
-     * @return
93
-     */
94
-    @GetMapping("/fileList")
95
-    public AjaxResult fileList(Long caseAppliId, @RequestParam("annexTypeList") List<Integer> annexTypeList){
96
-        if(caseAppliId==null){
97
-            return error("案件id不能为空");
98
-        }
99
-        return caseEvidenceService.fileList(caseAppliId, annexTypeList);
100
-    }
101
-
102
-    /**
103
-     * 删除附件
104
-     * @param fileIds
105
-     * @return
106
-     */
107
-    @PostMapping("/deleteFile")
108
-    public AjaxResult deleteFile( @RequestParam("fileIds") List<Integer> fileIds){
109
-
110
-        if(CollectionUtil.isEmpty(fileIds)){
111
-            return error("附件id不能为空");
112
-        }
113
-        return toAjax(caseEvidenceService.deleteFile( fileIds));
114
-    }
115
-
116
-
117
-    /**
118
-     * 查询当前用户案件列表
119
-     *
120
-     * @param caseStatus
121
-     * @return
122
-     */
123
-    @GetMapping("/all")
124
-    public AjaxResult getCaseListAll(@RequestParam("caseStatus") Integer caseStatus) {
125
-
126
-       return success(caseEvidenceService.getCaseListAll(caseStatus));
127
-
128
-    }
129
-
130
-    /**
131
-     * 证据确认
132
-     *
133
-     * @param caseApplication 案件对象
134
-     * @return 统一返回结果
135
-     */
136
-    @PutMapping("/confirm")
137
-    public AjaxResult evidenceConfirmation(@Validated @RequestBody CaseApplication caseApplication) {
138
-        return caseEvidenceService.evidenceConfirmation(caseApplication);
139
-    }
140
-
141
-    /**
142
-     * 案件质证
143
-     *
144
-     * @param caseEvidenceDTO
145
-     * @return
146
-     */
147
-    @PostMapping("/crossexami")
148
-    public AjaxResult caseCrossexamination(@Validated @RequestBody CaseEvidenceDTO caseEvidenceDTO) {
149
-        return caseEvidenceService.caseCrossexamination(caseEvidenceDTO);
150
-    }
151
-    /**
152
-     * 获取证据目录树列表
153
-     */
154
-    @GetMapping("/evidenceTree")
155
-    public AjaxResult evidenceTree(CaseEvidenceDirectory caseEvidenceDirectory)
156
-    {
157
-        return success(caseEvidenceService.selectEvidenceTreeList(caseEvidenceDirectory)) ;
158
-    }
159
-
160
-}

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

@@ -2,8 +2,6 @@ package com.ruoyi.web.controller.wisdomarbitrate;
2 2
 
3 3
 import com.ruoyi.common.core.controller.BaseController;
4 4
 import com.ruoyi.common.core.domain.AjaxResult;
5
-import com.ruoyi.common.core.page.TableDataInfo;
6
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
7 5
 import com.ruoyi.wisdomarbitrate.domain.CaseLogRecord;
8 6
 import com.ruoyi.wisdomarbitrate.service.ICaseLogRecordService;
9 7
 import org.springframework.beans.factory.annotation.Autowired;
@@ -23,7 +21,7 @@ public class CaseLogRecordController   extends BaseController {
23 21
     /**
24 22
      * 查询案件日志列表
25 23
      */
26
-//    @PreAuthorize("@ss.hasPermi('caseLog:list')")
24
+    @PreAuthorize("@ss.hasPermi('caseLog:list')")
27 25
     @GetMapping("/list")
28 26
     public AjaxResult list(CaseLogRecord caseLogRecord)
29 27
     {

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

@@ -1,110 +0,0 @@
1
-package com.ruoyi.web.controller.wisdomarbitrate;
2
-
3
-import cn.hutool.core.collection.CollectionUtil;
4
-import com.ruoyi.common.core.domain.AjaxResult;
5
-import com.ruoyi.common.utils.StringUtils;
6
-import com.ruoyi.wisdomarbitrate.domain.BatchCaseApplication;
7
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
8
-import com.ruoyi.wisdomarbitrate.domain.dto.CaseConfirmPayDTO;
9
-import com.ruoyi.wisdomarbitrate.service.ICasePaymentService;
10
-import com.ruoyi.wisdomarbitrate.domain.dto.CasePayDTO;
11
-import org.springframework.beans.factory.annotation.Autowired;
12
-import org.springframework.validation.annotation.Validated;
13
-import org.springframework.web.bind.annotation.*;
14
-
15
-import java.util.ArrayList;
16
-import java.util.List;
17
-
18
-/**
19
- * 缴费支付
20
- */
21
-@RestController
22
-@RequestMapping("/pay")
23
-public class CasePaymentController {
24
-    private final ICasePaymentService paymentService;
25
-    @Autowired
26
-    public CasePaymentController(ICasePaymentService paymentService){
27
-       this.paymentService=paymentService;
28
-    }
29
-    /**
30
-     * 案件缴费
31
-     * @param casePayDTO 缴费传入参数
32
-     * @return 统一响应结果
33
-     */
34
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:pay')")
35
-    @PostMapping("/casePay")
36
-    public AjaxResult casePay(@Validated @RequestBody CasePayDTO casePayDTO) {
37
-        return paymentService.casePay(casePayDTO);
38
-    }
39
-    /**
40
-     * 确认缴费
41
-     * @param payDTO 缴费传入参数
42
-     * @return 统一响应结果
43
-     */
44
-//    @PreAuthorize("@ss.hasPermi('caseManagement:list:pay')")
45
-    @PostMapping("/confirmPay")
46
-    public AjaxResult confirmPay(@Validated @RequestBody CaseConfirmPayDTO payDTO) {
47
-        return paymentService.confirmPay(payDTO);
48
-    }
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
-
70
-    /**
71
-     * 缴费确认
72
-     * @param batchCaseApplication
73
-     * @return
74
-     */
75
-//    @PreAuthorize("@ss.hasPermi('paymentManagement:list:payconfirm')")
76
-    @PutMapping("/confirm")
77
-    public AjaxResult confirmPayment(@Validated @RequestBody BatchCaseApplication batchCaseApplication) {
78
-        if(CollectionUtil.isEmpty(batchCaseApplication.getIds())){
79
-            return AjaxResult.error("参数校验失败");
80
-        }
81
-            return paymentService.confirmPayment(batchCaseApplication.getIds());
82
-    }
83
-    /**
84
-     * 缴费列表查询
85
-     * @param casePayDTO
86
-     * @return
87
-     */
88
-    @GetMapping("/list")
89
-    public AjaxResult casePayList(CasePayDTO casePayDTO) {
90
-        return paymentService.casePayList(casePayDTO);
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
-    }
110
-}

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

@@ -30,19 +30,5 @@ public class SendMailRecordController  extends BaseController {
30 30
     }
31 31
 
32 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 33
 
48 34
 }

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

@@ -1,149 +0,0 @@
1
-package com.ruoyi.web.controller.wisdomarbitrate;
2
-
3
-import cn.hutool.core.util.StrUtil;
4
-import com.alibaba.fastjson.JSON;
5
-import com.ruoyi.common.annotation.Anonymous;
6
-import com.ruoyi.common.core.controller.BaseController;
7
-import com.ruoyi.common.core.domain.AjaxResult;
8
-import com.ruoyi.wisdomarbitrate.domain.IdentityAuthentication;
9
-import com.ruoyi.wisdomarbitrate.domain.vo.ReservedConferenceVO;
10
-import com.ruoyi.wisdomarbitrate.domain.vo.SendRoomNoMessageVO;
11
-import com.ruoyi.wisdomarbitrate.domain.vo.WeChatUserVO;
12
-import com.ruoyi.wisdomarbitrate.service.VideoService;
13
-import com.ruoyi.wisdomarbitrate.service.WeChatUserService;
14
-import com.tencentcloudapi.common.Credential;
15
-import com.tencentcloudapi.common.exception.TencentCloudSDKException;
16
-import com.tencentcloudapi.common.profile.ClientProfile;
17
-import com.tencentcloudapi.common.profile.HttpProfile;
18
-import com.tencentcloudapi.trtc.v20190722.TrtcClient;
19
-import com.tencentcloudapi.trtc.v20190722.models.*;
20
-import com.tencentyun.TLSSigAPIv2;
21
-import org.springframework.beans.factory.annotation.Autowired;
22
-import org.springframework.web.bind.annotation.*;
23
-import org.springframework.web.multipart.MultipartFile;
24
-
25
-import javax.servlet.http.HttpServletRequest;
26
-import javax.validation.Valid;
27
-import java.io.IOException;
28
-
29
-/**
30
- * @author wangqiong
31
- * @description trtc实时音视频
32
- * @date 2023-10-26 11:25
33
- */
34
-@RestController
35
-@RequestMapping("/video")
36
-public class VideoController extends BaseController {
37
-    @Autowired
38
-    private VideoService videoService;
39
-
40
-    /**
41
-     * 从腾讯云下载文件到本地
42
-     * @param
43
-     * @return
44
-     */
45
-    @Anonymous
46
-    @PostMapping("/videoRollBack")
47
-    public AjaxResult videoRollBack(  @RequestBody String body, HttpServletRequest request) {
48
-        videoService.videoRollBack(body,request);
49
-       return success();
50
-    }
51
-    /**
52
-     * 根据房间号绑定案件ID
53
-     * @param
54
-     * @return
55
-     */
56
-    @Anonymous
57
-    @PostMapping("/bindCaseId")
58
-    public AjaxResult bindCaseId(@Valid @RequestBody SendRoomNoMessageVO vo) {
59
-
60
-        return videoService.bindCaseId(vo.getId(),vo.getRoomNo());
61
-    }
62
-    /**
63
-     * 根据案件ID查询视频
64
-     * @param caseId 案件id
65
-     * @return
66
-     */
67
-    @GetMapping("/videoList")
68
-    public AjaxResult videoList(  @RequestParam Long caseId) {
69
-
70
-        return videoService.videoList(caseId);
71
-    }
72
-    /**
73
-     * 开启腾讯云录制
74
-     * @param vo
75
-     * @return
76
-     * @throws Exception
77
-     */
78
-    @Anonymous
79
-    @PostMapping("/openCloudRecording")
80
-    private AjaxResult openCloudRecording( @RequestBody ReservedConferenceVO vo)  {
81
-        if(vo.getCaseId()==null || vo.getRoomId()==null){
82
-            return AjaxResult.error("参数错误");
83
-        }
84
-        return videoService.openCloudRecording(vo.getCaseId(),vo.getRoomId());
85
-    }
86
-    /**
87
-     * 关闭腾讯云录制
88
-     * @param taskId 任务ID
89
-     * @return
90
-     */
91
-    @Anonymous
92
-    @PostMapping("/closeDeleteCloudRecording")
93
-    public AjaxResult closeDeleteCloudRecording(@RequestParam("taskId") String taskId){
94
-        return videoService.closeDeleteCloudRecording(taskId);
95
-    }
96
-    /**
97
-     * 解散房间
98
-     * @param reservedConferenceVO
99
-     * @return
100
-     */
101
-    @Anonymous
102
-    @PostMapping("/dissolveRoom")
103
-    public AjaxResult dissolveRoom(   @RequestBody ReservedConferenceVO reservedConferenceVO) {
104
-        if( reservedConferenceVO.getRoomId()==null){
105
-            return error("参数校验失败");
106
-        }
107
-
108
-        return  videoService.dissolveRoom(reservedConferenceVO.getRoomId());
109
-    }
110
-    /**
111
-     * 根据userId查询该用户是否是秘书
112
-     * @param userId
113
-     * @return
114
-     */
115
-    @Anonymous
116
-    @GetMapping("secretaryRoleByUserId")
117
-    public AjaxResult secretaryRoleByUserId(   @RequestParam(value = "userId",required = true) Long userId) {
118
-
119
-        return  videoService.secretaryRoleByUserId(userId);
120
-    }
121
-    /**
122
-     * 根据html字符串转pdf并和案件关联
123
-     * @param reservedConferenceVO
124
-     * @return
125
-     */
126
-    @Anonymous
127
-    @PostMapping("htmlToPDF")
128
-    public AjaxResult secretaryRoleByUserId( @RequestBody ReservedConferenceVO reservedConferenceVO) {
129
-        if( reservedConferenceVO.getCaseId()==null || StrUtil.isEmpty(reservedConferenceVO.getHtmlContent())){
130
-            return success();
131
-        }
132
-
133
-        return  videoService.htmlToPDF(reservedConferenceVO);
134
-    }
135
-    /**
136
-     * 根据案件id和类型查询附件
137
-     * @param caseAppliId
138
-     * @param annexType
139
-     * @return
140
-     */
141
-
142
-    @GetMapping("attachListByCaseId")
143
-    public AjaxResult attachListByCaseId( @RequestParam("caseAppliId") Long caseAppliId,@RequestParam("annexType") Integer annexType) {
144
-
145
-        return  videoService.attachListByCaseId(caseAppliId,annexType);
146
-    }
147
-
148
-
149
-}

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

@@ -6,7 +6,7 @@ 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/mediation_system?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=Asia/Shanghai&useSSL=false
10 10
                 username: root
11 11
                 password: YMzc157#
12 12
             # 从库数据源

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

@@ -143,7 +143,7 @@ swagger:
143 143
   # 是否开启swagger
144 144
   enabled: true
145 145
   # 请求前缀
146
-  pathMapping: /dev-api
146
+  pathMapping:
147 147
 
148 148
 # 防止XSS攻击
149 149
 xss:

+ 3
- 3
ruoyi-admin/src/main/resources/generator/config.properties Просмотреть файл

@@ -1,7 +1,7 @@
1 1
 jdbc.driverClass=com.mysql.cj.jdbc.Driver
2
-jdbc.url=jdbc:mysql://158.58.50.21:3306/knslm?serverTimezone=Asia/Shanghai&useSSL=false&zeroDateTimeBehavior=CONVERT_TO_NULL&nullCatalogMeansCurrent=true
3
-jdbc.user=knslm
4
-jdbc.password=knslm2022
2
+jdbc.url=jdbc:mysql://158.58.50.21:3306/mediation_system?serverTimezone=Asia/Shanghai&useSSL=false&zeroDateTimeBehavior=CONVERT_TO_NULL&nullCatalogMeansCurrent=true
3
+jdbc.user=root
4
+jdbc.password=YMzc157#
5 5
 #模块名称
6 6
 
7 7
 moduleName=diagnosis

+ 3
- 3
ruoyi-admin/src/main/resources/generator/generatorConfig.xml Просмотреть файл

@@ -21,13 +21,13 @@
21 21
                         password="${jdbc.password}">
22 22
         </jdbcConnection>
23 23
         <!--实体-->
24
-        <javaModelGenerator targetPackage="com.njkn.knslm.domain.entity.${moduleName}"
24
+        <javaModelGenerator targetPackage="com.ruoyi.wisdomarbitrate.domain.${moduleName}"
25 25
                             targetProject="src/main/java"/>
26 26
         <!--mapper.xml-->
27
-        <sqlMapGenerator targetPackage="com.njkn.knslm.dao.${moduleName}"
27
+        <sqlMapGenerator targetPackage="mapper.**.${moduleName}"
28 28
                          targetProject="src/main/resources"/>
29 29
         <!--mapper接口-->
30
-        <javaClientGenerator targetPackage="com.njkn.knslm.dao.${moduleName}"
30
+        <javaClientGenerator targetPackage="com.ruoyi.**.mapper.${moduleName}"
31 31
                              targetProject="src/main/java"
32 32
                              type="XMLMAPPER"/>
33 33
         <!--需要生成的数据库表-->

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

@@ -3,6 +3,7 @@ package com.ruoyi.common.utils;
3 3
 
4 4
 
5 5
 import com.ruoyi.common.utils.uuid.UUID;
6
+import com.sun.net.ssl.internal.ssl.Provider;
6 7
 import lombok.Data;
7 8
 import lombok.extern.slf4j.Slf4j;
8 9
 import org.springframework.beans.factory.annotation.Value;
@@ -102,7 +103,7 @@ public class EmailOutUtil {
102 103
             MimeBodyPart messageBodyPart = new MimeBodyPart();
103 104
             messageBodyPart.setContent(messageContent, "text/html;charset=utf-8");
104 105
             messageBodyPart.setContentID(UUID.randomUUID().toString());
105
-            Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
106
+            Security.addProvider(new Provider());
106 107
             final String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory";
107 108
             //设置邮件会话参数
108 109
             Properties props = new Properties();

+ 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
+
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
  * 程序注解配置

+ 5
- 5
ruoyi-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml Просмотреть файл

@@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
30 30
     </resultMap>
31 31
 
32 32
 	<sql id="selectGenTableColumnVo">
33
-        select column_id, table_id, column_name, column_comment, column_type, java_type, java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list, is_query, query_type, html_type, dict_type, sort, create_by, create_time, update_by, update_time from gen_table_column
33
+        select column_id, table_id, column_name, column_comment, column_type, java_type, java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list, is_query, query_type, html_type, dict_type, sort, create_by, create_time, update_by, update_time from ms_gen_table_column
34 34
     </sql>
35 35
 
36 36
     <select id="selectGenTableColumnListByTableId" parameterType="Long" resultMap="GenTableColumnResult">
@@ -46,7 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
46 46
 	</select>
47 47
 
48 48
     <insert id="insertGenTableColumn" parameterType="GenTableColumn" useGeneratedKeys="true" keyProperty="columnId">
49
-        insert into gen_table_column (
49
+        insert into ms_gen_table_column (
50 50
 			<if test="tableId != null and tableId != ''">table_id,</if>
51 51
 			<if test="columnName != null and columnName != ''">column_name,</if>
52 52
 			<if test="columnComment != null and columnComment != ''">column_comment,</if>
@@ -90,7 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
90 90
     </insert>
91 91
 
92 92
     <update id="updateGenTableColumn" parameterType="GenTableColumn">
93
-        update gen_table_column
93
+        update ms_gen_table_column
94 94
         <set>
95 95
             <if test="columnComment != null">column_comment = #{columnComment},</if>
96 96
             <if test="javaType != null">java_type = #{javaType},</if>
@@ -111,14 +111,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
111 111
     </update>
112 112
 
113 113
     <delete id="deleteGenTableColumnByIds" parameterType="Long">
114
-        delete from gen_table_column where table_id in
114
+        delete from ms_gen_table_column where table_id in
115 115
         <foreach collection="array" item="tableId" open="(" separator="," close=")">
116 116
             #{tableId}
117 117
         </foreach>
118 118
     </delete>
119 119
 
120 120
     <delete id="deleteGenTableColumns">
121
-        delete from gen_table_column where column_id in
121
+        delete from ms_gen_table_column where column_id in
122 122
         <foreach collection="list" item="item" open="(" separator="," close=")">
123 123
             #{item.columnId}
124 124
         </foreach>

+ 11
- 11
ruoyi-generator/src/main/resources/mapper/generator/GenTableMapper.xml Просмотреть файл

@@ -54,7 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
54 54
     </resultMap>
55 55
 	
56 56
 	<sql id="selectGenTableVo">
57
-        select table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name, tpl_category, package_name, module_name, business_name, function_name, function_author, gen_type, gen_path, options, create_by, create_time, update_by, update_time, remark from gen_table
57
+        select table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name, tpl_category, package_name, module_name, business_name, function_name, function_author, gen_type, gen_path, options, create_by, create_time, update_by, update_time, remark from ms_gen_table
58 58
     </sql>
59 59
     
60 60
     <select id="selectGenTableList" parameterType="GenTable" resultMap="GenTableResult">
@@ -79,7 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
79 79
 		select table_name, table_comment, create_time, update_time from information_schema.tables
80 80
 		where table_schema = (select database())
81 81
 		AND table_name NOT LIKE 'qrtz_%' AND table_name NOT LIKE 'gen_%'
82
-		AND table_name NOT IN (select table_name from gen_table)
82
+		AND table_name NOT IN (select table_name from ms_gen_table)
83 83
 		<if test="tableName != null and tableName != ''">
84 84
 			AND lower(table_name) like lower(concat('%', #{tableName}, '%'))
85 85
 		</if>
@@ -113,29 +113,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
113 113
 	<select id="selectGenTableById" parameterType="Long" resultMap="GenTableResult">
114 114
 	    SELECT t.table_id, t.table_name, t.table_comment, t.sub_table_name, t.sub_table_fk_name, t.class_name, t.tpl_category, t.package_name, t.module_name, t.business_name, t.function_name, t.function_author, t.gen_type, t.gen_path, t.options, t.remark,
115 115
 			   c.column_id, c.column_name, c.column_comment, c.column_type, c.java_type, c.java_field, c.is_pk, c.is_increment, c.is_required, c.is_insert, c.is_edit, c.is_list, c.is_query, c.query_type, c.html_type, c.dict_type, c.sort
116
-		FROM gen_table t
117
-			 LEFT JOIN gen_table_column c ON t.table_id = c.table_id
116
+		FROM ms_gen_table t
117
+			 LEFT JOIN ms_gen_table_column c ON t.table_id = c.table_id
118 118
 		where t.table_id = #{tableId} order by c.sort
119 119
 	</select>
120 120
 	
121 121
 	<select id="selectGenTableByName" parameterType="String" resultMap="GenTableResult">
122 122
 	    SELECT t.table_id, t.table_name, t.table_comment, t.sub_table_name, t.sub_table_fk_name, t.class_name, t.tpl_category, t.package_name, t.module_name, t.business_name, t.function_name, t.function_author, t.gen_type, t.gen_path, t.options, t.remark,
123 123
 			   c.column_id, c.column_name, c.column_comment, c.column_type, c.java_type, c.java_field, c.is_pk, c.is_increment, c.is_required, c.is_insert, c.is_edit, c.is_list, c.is_query, c.query_type, c.html_type, c.dict_type, c.sort
124
-		FROM gen_table t
125
-			 LEFT JOIN gen_table_column c ON t.table_id = c.table_id
124
+		FROM ms_gen_table t
125
+			 LEFT JOIN ms_gen_table_column c ON t.table_id = c.table_id
126 126
 		where t.table_name = #{tableName} order by c.sort
127 127
 	</select>
128 128
 	
129 129
 	<select id="selectGenTableAll" parameterType="String" resultMap="GenTableResult">
130 130
 	    SELECT t.table_id, t.table_name, t.table_comment, t.sub_table_name, t.sub_table_fk_name, t.class_name, t.tpl_category, t.package_name, t.module_name, t.business_name, t.function_name, t.function_author, t.options, t.remark,
131 131
 			   c.column_id, c.column_name, c.column_comment, c.column_type, c.java_type, c.java_field, c.is_pk, c.is_increment, c.is_required, c.is_insert, c.is_edit, c.is_list, c.is_query, c.query_type, c.html_type, c.dict_type, c.sort
132
-		FROM gen_table t
133
-			 LEFT JOIN gen_table_column c ON t.table_id = c.table_id
132
+		FROM ms_gen_table t
133
+			 LEFT JOIN ms_gen_table_column c ON t.table_id = c.table_id
134 134
 		order by c.sort
135 135
 	</select>
136 136
 	
137 137
 	<insert id="insertGenTable" parameterType="GenTable" useGeneratedKeys="true" keyProperty="tableId">
138
-        insert into gen_table (
138
+        insert into ms_gen_table (
139 139
 			<if test="tableName != null">table_name,</if>
140 140
 			<if test="tableComment != null and tableComment != ''">table_comment,</if>
141 141
 			<if test="className != null and className != ''">class_name,</if>
@@ -169,7 +169,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
169 169
     </insert>
170 170
     
171 171
     <update id="updateGenTable" parameterType="GenTable">
172
-        update gen_table
172
+        update ms_gen_table
173 173
         <set>
174 174
             <if test="tableName != null">table_name = #{tableName},</if>
175 175
             <if test="tableComment != null and tableComment != ''">table_comment = #{tableComment},</if>
@@ -193,7 +193,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
193 193
     </update>
194 194
     
195 195
     <delete id="deleteGenTableByIds" parameterType="Long">
196
-        delete from gen_table where table_id in 
196
+        delete from ms_gen_table where table_id in 
197 197
         <foreach collection="array" item="tableId" open="(" separator="," close=")">
198 198
             #{tableId}
199 199
         </foreach>

+ 5
- 5
ruoyi-quartz/src/main/resources/mapper/quartz/SysJobLogMapper.xml Просмотреть файл

@@ -17,7 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
17 17
 	
18 18
 	<sql id="selectJobLogVo">
19 19
         select job_log_id, job_name, job_group, invoke_target, job_message, status, exception_info, create_time 
20
-		from sys_job_log
20
+		from ms_sys_job_log
21 21
     </sql>
22 22
 	
23 23
 	<select id="selectJobLogList" parameterType="SysJobLog" resultMap="SysJobLogResult">
@@ -54,22 +54,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
54 54
 	</select>
55 55
 	
56 56
 	<delete id="deleteJobLogById" parameterType="Long">
57
- 		delete from sys_job_log where job_log_id = #{jobLogId}
57
+ 		delete from ms_sys_job_log where job_log_id = #{jobLogId}
58 58
  	</delete>
59 59
  	
60 60
  	<delete id="deleteJobLogByIds" parameterType="Long">
61
- 		delete from sys_job_log where job_log_id in
61
+ 		delete from ms_sys_job_log where job_log_id in
62 62
  		<foreach collection="array" item="jobLogId" open="(" separator="," close=")">
63 63
  			#{jobLogId}
64 64
         </foreach> 
65 65
  	</delete>
66 66
  	
67 67
  	<update id="cleanJobLog">
68
-        truncate table sys_job_log
68
+        truncate table ms_sys_job_log
69 69
     </update>
70 70
  	
71 71
  	<insert id="insertJobLog" parameterType="SysJobLog">
72
- 		insert into sys_job_log(
72
+ 		insert into ms_sys_job_log(
73 73
  			<if test="jobLogId != null and jobLogId != 0">job_log_id,</if>
74 74
  			<if test="jobName != null and jobName != ''">job_name,</if>
75 75
  			<if test="jobGroup != null and jobGroup != ''">job_group,</if>

+ 5
- 5
ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml Просмотреть файл

@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
22 22
 	
23 23
 	<sql id="selectJobVo">
24 24
         select job_id, job_name, job_group, invoke_target, cron_expression, misfire_policy, concurrent, status, create_by, create_time, remark 
25
-		from sys_job
25
+		from ms_sys_job
26 26
     </sql>
27 27
 	
28 28
 	<select id="selectJobList" parameterType="SysJob" resultMap="SysJobResult">
@@ -53,18 +53,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
53 53
 	</select>
54 54
 	
55 55
 	<delete id="deleteJobById" parameterType="Long">
56
- 		delete from sys_job where job_id = #{jobId}
56
+ 		delete from ms_sys_job where job_id = #{jobId}
57 57
  	</delete>
58 58
  	
59 59
  	<delete id="deleteJobByIds" parameterType="Long">
60
- 		delete from sys_job where job_id in
60
+ 		delete from ms_sys_job where job_id in
61 61
  		<foreach collection="array" item="jobId" open="(" separator="," close=")">
62 62
  			#{jobId}
63 63
         </foreach> 
64 64
  	</delete>
65 65
  	
66 66
  	<update id="updateJob" parameterType="SysJob">
67
- 		update sys_job
67
+ 		update ms_sys_job
68 68
  		<set>
69 69
  			<if test="jobName != null and jobName != ''">job_name = #{jobName},</if>
70 70
  			<if test="jobGroup != null and jobGroup != ''">job_group = #{jobGroup},</if>
@@ -81,7 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
81 81
 	</update>
82 82
  	
83 83
  	<insert id="insertJob" parameterType="SysJob" useGeneratedKeys="true" keyProperty="jobId">
84
- 		insert into sys_job(
84
+ 		insert into ms_sys_job(
85 85
  			<if test="jobId != null and jobId != 0">job_id,</if>
86 86
  			<if test="jobName != null and jobName != ''">job_name,</if>
87 87
  			<if test="jobGroup != null and jobGroup != ''">job_group,</if>

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

@@ -33,7 +33,56 @@
33 33
             <artifactId>tls-sig-api-v2</artifactId>
34 34
             <version>1.2</version>
35 35
         </dependency>
36
-
36
+        <dependency>
37
+            <groupId>javax.persistence</groupId>
38
+            <artifactId>persistence-api</artifactId>
39
+            <version>1.0</version>
40
+        </dependency>
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
+        <!-- 代码生成-->
48
+        <dependency>
49
+            <groupId>com.ruoyi</groupId>
50
+            <artifactId>ruoyi-generator</artifactId>
51
+        </dependency>
37 52
     </dependencies>
38
-
53
+<build>
54
+    <plugins>
55
+        <!-- 通用mapper代码生成器-->
56
+        <plugin>
57
+            <groupId>org.mybatis.generator</groupId>
58
+            <artifactId>mybatis-generator-maven-plugin</artifactId>
59
+            <version>1.3.6</version>
60
+            <configuration>
61
+                <configurationFile>
62
+                    ${basedir}/src/main/resources/generator/generatorConfig.xml
63
+                </configurationFile>
64
+                <overwrite>true</overwrite>
65
+                <verbose>true</verbose>
66
+            </configuration>
67
+            <dependencies>
68
+                <dependency>
69
+                    <groupId>mysql</groupId>
70
+                    <artifactId>mysql-connector-java</artifactId>
71
+                    <version>8.0.26</version>
72
+                </dependency>
73
+                <dependency>
74
+                    <groupId>tk.mybatis</groupId>
75
+                    <artifactId>mapper</artifactId>
76
+                    <version>4.1.5</version>
77
+                </dependency>
78
+                <dependency>
79
+                    <groupId>org.projectlombok</groupId>
80
+                    <artifactId>lombok</artifactId>
81
+                    <version>1.18.20</version>
82
+                    <scope>compile</scope>
83
+                </dependency>
84
+            </dependencies>
85
+        </plugin>
86
+    </plugins>
87
+</build>
39 88
 </project>

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

@@ -20,7 +20,6 @@ public interface ISysUserService
20 20
      * @return 用户信息集合信息
21 21
      */
22 22
     public List<SysUser> selectUserList(SysUser user);
23
-    public List<SysUser> selectUserListByAdRole(Arbitrator arbitrator);
24 23
 
25 24
     /**
26 25
      * 根据条件分页查询已分配用户角色列表

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

@@ -9,8 +9,6 @@ import javax.validation.Validator;
9 9
 import com.ruoyi.common.core.domain.AjaxResult;
10 10
 import com.ruoyi.common.core.domain.entity.SysDept;
11 11
 import com.ruoyi.system.mapper.*;
12
-import com.ruoyi.wisdomarbitrate.domain.Arbitrator;
13
-import com.ruoyi.wisdomarbitrate.mapper.CaseApplicationMapper;
14 12
 import org.slf4j.Logger;
15 13
 import org.slf4j.LoggerFactory;
16 14
 import org.springframework.beans.factory.annotation.Autowired;
@@ -62,8 +60,6 @@ public class SysUserServiceImpl implements ISysUserService {
62 60
     @Autowired
63 61
     private ISysConfigService configService;
64 62
 
65
-    @Autowired
66
-    private CaseApplicationMapper caseApplicationMapper;
67 63
 
68 64
     @Autowired
69 65
     protected Validator validator;
@@ -80,23 +76,6 @@ public class SysUserServiceImpl implements ISysUserService {
80 76
         return userMapper.selectUserList(user);
81 77
     }
82 78
 
83
-    @Override
84
-    public List<SysUser> selectUserListByAdRole(Arbitrator arbitrator) {
85
-        List<SysUser> sysUsers = userMapper.selectUserListByAdRole(arbitrator);
86
-        if(sysUsers!=null&&sysUsers.size()>0){
87
-            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.setNickNameAndNum(nickNamenew);
93
-            }
94
-
95
-        }
96
-
97
-        return sysUsers;
98
-    }
99
-
100 79
     /**
101 80
      * 根据条件分页查询已分配用户角色列表
102 81
      *

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

@@ -0,0 +1,76 @@
1
+package com.ruoyi.wisdomarbitrate.domain.dto;
2
+
3
+import lombok.Data;
4
+
5
+import javax.persistence.*;
6
+import java.io.Serializable;
7
+import java.util.Date;
8
+
9
+@Entity
10
+@Data
11
+@Table(name="ms_case_log_record")
12
+public class MsCaseLogRecordDTO implements Serializable {
13
+
14
+    private static final long serialVersionUID = 1L;
15
+    @Id
16
+    @Column(name = "Id")
17
+    @GeneratedValue(generator = "JDBC")
18
+    private Long id;
19
+
20
+    /**
21
+     * 案件申请id
22
+     */
23
+    @Column(name="case_appli_id")
24
+    private Long caseAppliId;
25
+
26
+    /**
27
+     * 案件节点
28
+     */
29
+    @Column(name="case_node")
30
+    private Integer caseNode;
31
+
32
+    /**
33
+     * 案件节点时间
34
+     */
35
+    @Column(name="case_node_time")
36
+    private Date caseNodeTime;
37
+
38
+    /**
39
+     * 备注
40
+     */
41
+    @Column(name="notes")
42
+    private String notes;
43
+
44
+    /**
45
+     * 操作人用户名
46
+     */
47
+    @Column(name="create_by")
48
+    private String createBy;
49
+
50
+    /**
51
+     * 操作人用户昵称
52
+     */
53
+    @Column(name="create_nick_name")
54
+    private String createNickName;
55
+
56
+    /**
57
+     * 创建时间
58
+     */
59
+    @Column(name="create_time")
60
+    private Date createTime;
61
+
62
+    /**
63
+     * 更新者
64
+     */
65
+    @Column(name="update_by")
66
+    private String updateBy;
67
+
68
+    /**
69
+     * 更新时间
70
+     */
71
+    @Column(name="update_time")
72
+    private Date updateTime;
73
+
74
+
75
+
76
+}

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

@@ -1,4 +1,4 @@
1
-package com.ruoyi.wisdomarbitrate;
1
+package com.ruoyi.wisdomarbitrate.domain.vo;
2 2
 
3 3
 import lombok.Data;
4 4
 

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

@@ -1,17 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.mapper;
2
-
3
-import com.ruoyi.wisdomarbitrate.domain.ArbitrateRecord;
4
-import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
5
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
6
-
7
-import java.util.List;
8
-
9
-public interface ArbitrateRecordMapper {
10
-    int insertArbitrateRecord(ArbitrateRecord arbitrateRecord);
11
-
12
-    int updataArbitrateRecord(ArbitrateRecord arbitrateRecord);
13
-
14
-    ArbitrateRecord  selectArbitrateRecord(ArbitrateRecord arbitrateRecord);
15
-
16
-
17
-}

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

@@ -1,12 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.mapper;
2
-
3
-import com.ruoyi.wisdomarbitrate.domain.Arbitrator;
4
-import org.apache.ibatis.annotations.Param;
5
-
6
-import java.util.List;
7
-
8
-public interface ArbitratorMapper {
9
-    List<Arbitrator> selectArbitratorList(Arbitrator arbitrator);
10
-
11
-
12
-}

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

@@ -1,25 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.mapper;
2
-
3
-import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
4
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
5
-import org.apache.ibatis.annotations.Param;
6
-import org.springframework.stereotype.Repository;
7
-
8
-import java.util.List;
9
-@Repository
10
-public interface CaseAffiliateLogMapper {
11
-
12
-
13
-    int batchCaseAffiliate(List<CaseAffiliate> caseAffiliates);
14
-
15
-
16
-    void deletecaseAffiliate(CaseApplication caseApplication);
17
-    void batchDeletecaseAffiliate(@Param("ids") List<Long> ids);
18
-
19
-
20
-    List<CaseAffiliate>  selectCaseAffiliate(@Param("caseAppliLogId") Long caseAppliLogId);
21
-    CaseAffiliate  selectCaseAffiliateByIdentityType(@Param("caseAppliLogId") Long caseAppliLogId, @Param("identityType")int identityType);
22
-
23
-    int updataCaseAffiliate(CaseAffiliate caseAffiliate);
24
-
25
-}

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

@@ -1,45 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.mapper;
2
-
3
-import com.ruoyi.wisdomarbitrate.domain.BatchCaseApplication;
4
-import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
5
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
6
-import com.ruoyi.wisdomarbitrate.domain.vo.BookSendVO;
7
-import org.apache.ibatis.annotations.Param;
8
-
9
-import java.util.List;
10
-
11
-public interface CaseAffiliateMapper {
12
-
13
-
14
-    int batchCaseAffiliate(List<CaseAffiliate> caseAffiliates);
15
-
16
-
17
-    void deletecaseAffiliate(CaseApplication caseApplication);
18
-    void batchDeletecaseAffiliate(@Param("ids") List<Long> ids);
19
-
20
-
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);
26
-
27
-    /**
28
-     * 根据案件查询邮箱
29
-     * @param id
30
-     * @return
31
-     */
32
-    List<CaseAffiliate> emailByCaseId(@Param("caseAppliId")Long id);
33
-
34
-    /**
35
-     * 批量修改
36
-     * @param affiliateLogList
37
-     */
38
-    void updateCaseAffiliateByCaseId(@Param("caseAppliId")Long caseAppliId,@Param("list") List<CaseAffiliate> affiliateLogList);
39
-
40
-    /**
41
-     * 根据案件id删除
42
-     * @param caseId
43
-     */
44
-    void deleteByCaseId(@Param("caseAppliId") Long caseId);
45
-}

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

@@ -1,56 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.mapper;
2
-
3
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
4
-import com.ruoyi.wisdomarbitrate.domain.vo.UpdateSubmitVO;
5
-import org.apache.ibatis.annotations.Param;
6
-import org.springframework.stereotype.Repository;
7
-
8
-import java.util.List;
9
-
10
-/**
11
- * @author wangqiong
12
- * @description 案件日志
13
- * @date 2023-11-17 14:05
14
- */
15
-@Repository
16
-public interface CaseApplicationLogMapper {
17
-    int insert(CaseApplication caseApplicationLog);
18
-
19
-    int deleteById(Long id);
20
-
21
-
22
-
23
-    CaseApplication selectByCaseIdAndVersion(@Param("caseAppliId")long caseAppliId,@Param("version") int version);
24
-
25
-    Integer selectMaxVersionByCaseId(@Param("caseAppliId")long caseAppliId);
26
-
27
-    /**
28
-     * 修改日志表状态
29
-     * @param vo
30
-     */
31
-    void updateStatus(UpdateSubmitVO vo);
32
-
33
-    /**
34
-     * 根据案件id查询秘书角色最新版本号
35
-     * @param id
36
-     * @return
37
-     */
38
-    Integer selectMaxVersionBySecret(@Param("caseAppliId")Long id);
39
-
40
-    /**
41
-     * 删除日志
42
-     * @param ids
43
-     */
44
-    void batchDeleteLog(@Param("ids") List<Long> ids);
45
-
46
-    CaseApplication selectBeforeCase(@Param("caseId") Long caseId, @Param("version")Integer version);
47
-
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);
56
-}

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

@@ -1,140 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.mapper;
2
-
3
-import com.ruoyi.wisdomarbitrate.domain.Arbitrator;
4
-import com.ruoyi.wisdomarbitrate.domain.BatchCaseApplication;
5
-import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
6
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
7
-import com.ruoyi.wisdomarbitrate.domain.dto.CaseConfirmPayDTO;
8
-import com.ruoyi.wisdomarbitrate.domain.vo.ToDoCount;
9
-import org.apache.ibatis.annotations.Param;
10
-
11
-import java.util.List;
12
-
13
-public interface CaseApplicationMapper {
14
-    List<CaseApplication> selectCaseApplicationList(CaseApplication caseApplication);
15
-    List<CaseApplication> selectCaseApplicationList1(CaseApplication caseApplication);
16
-
17
-    int selectCaseApplicationCount(CaseApplication caseApplication);
18
-
19
-    /**
20
-     * 查询超级管理员案件
21
-     * @param caseApplication
22
-     * @return
23
-     */
24
-    List<CaseApplication> selectAdminCaseApplicationList(CaseApplication caseApplication);
25
-
26
-    int insertCaseApplication(CaseApplication caseApplication);
27
-
28
-
29
-    int updataCaseApplication(CaseApplication caseApplication);
30
-
31
-    int submitCaseApplication(CaseApplication caseApplication);
32
-
33
-    int deletecaseApplication(CaseApplication caseApplication);
34
-
35
-    CaseApplication selectCaseApplication(CaseApplication caseApplication);
36
-
37
-    /**
38
-     * 根据案件id查询案件信息
39
-     * @param ids
40
-     * @return
41
-     */
42
-    List<CaseApplication> listCaseApplicationByIds(@Param("ids")List<Long> ids);
43
-
44
-    CaseApplication selectCaseApplicationConfirm(CaseApplication caseApplication);
45
-
46
-    /**
47
-     * 查询最大编号
48
-     * @param caseNum
49
-     * @param length
50
-     * @return
51
-     */
52
-    Integer selectCaseNumLike(@Param("caseNum") String caseNum, @Param("length") int length);
53
-
54
-    /**
55
-     * 查询仲裁员根据案件id
56
-     * @param id
57
-     * @return
58
-     */
59
-    String selectArbitratorList(@Param("id") String id);
60
-
61
-    /**
62
-     * 修改支付方式
63
-     * @param payDTO
64
-     */
65
-    void updatePayType(CaseConfirmPayDTO payDTO);
66
-
67
-
68
-    ToDoCount selectAdminCaseToDoCount();
69
-
70
-
71
-    ToDoCount selectTodoCountByRole(CaseApplication caseApplication);
72
-
73
-    /**
74
-     * 修改案件锁定状态
75
-     * @param id
76
-     * @param lockStatus
77
-     * @return
78
-     */
79
-    int updateCaseLockStatus(@Param("id")Long id,@Param("lockStatus") Integer lockStatus);
80
-
81
-    /**
82
-     * 批量删除案件
83
-     * @param ids
84
-     * @return
85
-     */
86
-    int batchDeletecaseApplication(@Param("ids") List<Long> ids);
87
-
88
-    /**
89
-     * 绑定房间号
90
-     * @param caseId
91
-     * @param roomId
92
-     */
93
-    void bindCaseId(@Param("caseId")Long caseId,@Param("roomId") String roomId);
94
-
95
-    /**
96
-     * 根据房间号查询案件id
97
-     * @param roomId
98
-     * @return
99
-     */
100
-    Long selectCaseIdByRoomId(@Param("roomId")String roomId);
101
-
102
-    /**
103
-     * 查询已办案件
104
-     * @param caseApplication
105
-     * @return
106
-     */
107
-    List<CaseApplication> selectHandledCase(CaseApplication caseApplication);
108
-    /**
109
-     * 查询最大房间号
110
-     * @return
111
-     */
112
-    Long selectMaxRoomId();
113
-
114
-    /**
115
-     * 修改案件版本号
116
-     * @param id
117
-     * @param version
118
-     */
119
-    void updateVersionById(@Param("id")Long id, @Param("version")Integer version);
120
-
121
-
122
-    /**
123
-     * 查询最大批号
124
-     * @return
125
-     */
126
-    Integer selectBatchNumberLike();
127
-
128
-    /**
129
-     * 批量新增案件
130
-     * @param caseApplications
131
-     * @return
132
-     */
133
-    int batchSave(@Param("list")List<CaseApplication> caseApplications);
134
-
135
-    int selectCasenum(@Param("userId") String userId);
136
-
137
-    List<CaseApplication> selectAdminCaseApplicationListBatch(CaseApplication caseApplication);
138
-
139
-    List<CaseApplication> listCaseApplicationByBatchNumber(CaseApplication caseApplication);
140
-}

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

@@ -1,29 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.mapper;
2
-
3
-
4
-import com.ruoyi.common.core.domain.entity.SysDept;
5
-import com.ruoyi.wisdomarbitrate.domain.CaseEvidenceDirectory;
6
-import org.apache.ibatis.annotations.Mapper;
7
-import org.apache.ibatis.annotations.Param;
8
-
9
-import java.util.List;
10
-
11
-@Mapper
12
-public interface CaseEvidenceDirectoryMapper {
13
-
14
-    int save(CaseEvidenceDirectory caseEvidenceDirectory);
15
-    /**
16
-     * 查询证据目录信息
17
-     *
18
-     * @param caseEvidenceDirectory 目录信息
19
-     * @return 目录信息集合
20
-     */
21
-    List<CaseEvidenceDirectory> selectList(CaseEvidenceDirectory caseEvidenceDirectory);
22
-
23
-    /**
24
-     * 根据证据名称查询证据目录树信息
25
-     * @param evidenceName 证据名称
26
-     * @param deptCheckStrictly 目录树选择项是否关联显示
27
-     */
28
-    List<Integer> selectDeptListByEvidenceName(@Param("evidenceName") String evidenceName, @Param("deptCheckStrictly") boolean deptCheckStrictly);
29
-}

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

@@ -1,16 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.mapper;
2
-
3
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
4
-import com.ruoyi.wisdomarbitrate.domain.vo.CaseEvidenceVO;
5
-import org.apache.ibatis.annotations.Mapper;
6
-import org.apache.ibatis.annotations.Param;
7
-
8
-import java.util.List;
9
-
10
-@Mapper
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
-    );
16
-}

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

@@ -1,14 +1,13 @@
1 1
 package com.ruoyi.wisdomarbitrate.mapper;
2 2
 
3
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
4 3
 import com.ruoyi.wisdomarbitrate.domain.CaseLogRecord;
5
-import org.apache.ibatis.annotations.Mapper;
4
+import com.ruoyi.wisdomarbitrate.domain.dto.MsCaseLogRecordDTO;
6 5
 import org.apache.ibatis.annotations.Param;
7
-import org.springframework.stereotype.Repository;
6
+import tk.mybatis.mapper.common.Mapper;
8 7
 
9 8
 import java.util.List;
10
-@Mapper
11
-public interface CaseLogRecordMapper {
9
+
10
+public interface CaseLogRecordMapper extends Mapper<MsCaseLogRecordDTO> {
12 11
 
13 12
 
14 13
     List<CaseLogRecord> selectCaseLogRecordList(CaseLogRecord caseLogRecord);

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

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

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

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

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

@@ -1,16 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.mapper;
2
-
3
-import com.ruoyi.wisdomarbitrate.domain.TemplateManual;
4
-import org.apache.ibatis.annotations.Mapper;
5
-
6
-import java.util.List;
7
-
8
-@Mapper
9
-public interface TemplateManualMapper {
10
-
11
-    int insertTemplateManual(TemplateManual templateManual);
12
-
13
-    int updateTemplateManual(TemplateManual templateManual);
14
-
15
-    List<TemplateManual> selectTemplateManual(TemplateManual templateManual);
16
-}

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

@@ -1,58 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.service;
2
-
3
-import com.ruoyi.common.core.domain.AjaxResult;
4
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
5
-import com.ruoyi.wisdomarbitrate.domain.vo.UpdateSubmitVO;
6
-
7
-/**
8
- * @author wangqiong
9
- * @description 案件日志
10
- * @date 2023-11-17 13:58
11
- */
12
-public interface CaseApplicationLogService {
13
-    /**
14
-     * 新增案件日志
15
-     * @param caseApplicationLog
16
-     * @return
17
-     */
18
-   int insert(CaseApplication caseApplicationLog);
19
-
20
-    /**
21
-     * 根据案件日志id删除案件日志
22
-     * @param id
23
-     * @return
24
-     */
25
-   int delete(Long id);
26
-
27
-    /**
28
-     * 根据案件id和版本号查询案件日志
29
-     * @param id
30
-     * @param version
31
-     * @return
32
-     */
33
-    CaseApplication selectByCaseIdAndVersion(Long id, int version);
34
-
35
-    /**
36
-     * 修改的案件提交到秘书
37
-     * @param vo
38
-     * @return
39
-     */
40
-    AjaxResult submit(UpdateSubmitVO vo);
41
-
42
-    /**
43
-     * 修改撤销申请
44
-     * @param vo
45
-     * @return
46
-     */
47
-    AjaxResult revoke(UpdateSubmitVO vo);
48
-
49
-    /**
50
-     * 秘书审核修改的案件
51
-     * @param vo
52
-     * @return
53
-     */
54
-    AjaxResult updateAudit(UpdateSubmitVO vo);
55
-
56
-
57
-    AjaxResult selectCompareCase(UpdateSubmitVO vo);
58
-}

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

@@ -1,60 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.service;
2
-
3
-import com.ruoyi.common.core.domain.AjaxResult;
4
-import com.ruoyi.wisdomarbitrate.StringIdsReq;
5
-import com.ruoyi.wisdomarbitrate.domain.BatchCaseApplication;
6
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
7
-import com.ruoyi.wisdomarbitrate.domain.SealSignRecord;
8
-import com.ruoyi.wisdomarbitrate.domain.vo.LogisticsInfoVO;
9
-
10
-import java.util.List;
11
-
12
-public interface IAdjudicationService {
13
-    AjaxResult createDocument(CaseApplication caseApplication);
14
-
15
-    AjaxResult sendDocumentByEmail(Long id,String appEmail,String resEmail ,String apptrackingNum,String restrackingNum);
16
-
17
-    List<LogisticsInfoVO> getLogisticsInfo(CaseApplication caseApplication);
18
-
19
-    AjaxResult signature(CaseApplication caseApplication);
20
-
21
-    AjaxResult caseFile( List<Long> ids);
22
-
23
-    AjaxResult service(Long id, String appEmail, String resEmail, String apptrackingNum, String restrackingNum);
24
-
25
-    AjaxResult stamp(CaseApplication caseApplication);
26
-
27
-    AjaxResult getArchivesDetail(Long id);
28
-
29
-    AjaxResult regenerationDocument(CaseApplication caseApplication);
30
-
31
-    /**
32
-     * 根据案件id查询邮箱
33
-     * @param id
34
-     * @return
35
-     */
36
-    AjaxResult emailByCaseId(Long id);
37
-
38
-    /**
39
-     * 批量生成裁决书
40
-     * @param ids
41
-     * @return
42
-     */
43
-    AjaxResult batchDocument(List<Long> ids);
44
-
45
-    /**
46
-     * 根据签署流程id查询批量签名链接
47
-     * @param idsReq
48
-     * @return
49
-     */
50
-    SealSignRecord selectBatchSignUrl( StringIdsReq idsReq);
51
-
52
-    /**
53
-     * 根据仲裁员手机号分页查询等待签署,签署中的裁决书
54
-     * @param personAccount
55
-     * @return
56
-     */
57
-    List<CaseApplication> selectSealSigning(String personAccount,Integer caseStatus);
58
-
59
-    SealSignRecord selectBatchSealUrl(StringIdsReq idsReq);
60
-}

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

@@ -1,12 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.service;
2
-
3
-import com.ruoyi.wisdomarbitrate.domain.Arbitrator;
4
-
5
-import java.util.List;
6
-
7
-public interface IArbitratorService {
8
-    List<Arbitrator> selectArbitratorList(Arbitrator arbitrator);
9
-
10
-
11
-
12
-}

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

@@ -1,154 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.service;
2
-
3
-import com.ruoyi.common.core.domain.AjaxResult;
4
-import com.ruoyi.common.exception.EsignDemoException;
5
-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;
10
-import org.springframework.web.bind.annotation.RequestParam;
11
-import org.springframework.web.multipart.MultipartFile;
12
-
13
-import javax.servlet.http.HttpServletRequest;
14
-import java.util.List;
15
-import java.util.Map;
16
-
17
-public interface ICaseApplicationService {
18
-    List<CaseApplication> selectCaseApplicationList(CaseApplication caseApplication);
19
-    List<CaseApplication> selectCaseApplicationListByRole(CaseApplication caseApplication);
20
-
21
-
22
-    int insertcaseApplication(CaseApplication caseApplication);
23
-
24
-    int selectCaseApplicationCount(CaseApplication caseApplication);
25
-
26
-    AjaxResult editCaseApplication(CaseApplication caseApplication);
27
-
28
-    int submitCaseApplication( List<Long> ids);
29
-
30
-    int deletecaseApplicationByIds(List<Long> ids);
31
-
32
-    CaseApplication selectCaseApplication(CaseApplication caseApplication);
33
-
34
-    String importCaseApplication(List<CaseApplication> caseApplicationList, String operName);
35
-
36
-    int pendTral(CaseApplication caseApplication);
37
-
38
-    int pendingAppointArbotrar(CaseApplication caseApplication);
39
-
40
-    int pendTralCheck(CaseApplication caseApplication);
41
-
42
-    int pendTralSure(CaseApplication caseApplication);
43
-
44
-    int verificationArbitrateRecord(CaseApplication caseApplication);
45
-
46
-    AjaxResult checkArbitrateRecord(CaseApplication caseApplication);
47
-
48
-    int submitCaseApplicationCheck(List<Long> ids, Integer agreeOrNotCheck,String caseCheckReject);
49
-
50
-    CaseApplication selectCaseApplicationConfirm(CaseApplication caseApplication);
51
-
52
-    String sendRoomNoMessage(SendRoomNoMessageVO messageVO);
53
-
54
-    SealSignRecord selectSignUrl(CaseApplication caseApplication) throws EsignDemoException;
55
-
56
-    SealSignRecord selectSealUrl(CaseApplication caseApplication) throws EsignDemoException;
57
-
58
-    AjaxResult creatTrialRecord(ArbitrateRecord arbitrateRecord);
59
-
60
-    CaseApplication selectSignSealUrl(CaseApplication caseApplication) throws EsignDemoException;
61
-
62
-    /**
63
-     * 查询待办数量
64
-     * @return
65
-     */
66
-    ToDoCount selectToDoCount();
67
-
68
-    AjaxResult selectCaseProgress(CaseApplication caseApplication);
69
-
70
-    int updateHeardate(CaseApplication caseApplication);
71
-
72
-    /**
73
-     * 修改案件锁定状态
74
-     * @param caseApplication
75
-     * @return
76
-     */
77
-    int updateCaseLockStatus(CaseApplication caseApplication);
78
-
79
-    AjaxResult uploadZipFile(MultipartFile file, Long id, String username, Long userId);
80
-    /**
81
-     * 查询短信发送记录
82
-     * @param smsSendRecord
83
-     * @return
84
-     */
85
-    List<SmsSendRecord> getSmsSendRecord(SmsSendRecord smsSendRecord);
86
-
87
-    /**
88
-     * 获取userSign
89
-     * @param userId
90
-     * @return
91
-     */
92
-    String generateUserSign(String userId);
93
-
94
-    /**
95
-     * 预约会议
96
-     * @param reservedConferenceVO
97
-     * @return
98
-     * @throws Exception
99
-     */
100
-     AjaxResult reservedConference(ReservedConferenceVO reservedConferenceVO) throws Exception;
101
-
102
-    /**
103
-     * 腾讯云销毁房间回调
104
-     * @return
105
-     */
106
-    long createRoomId(Long caseId);
107
-
108
-    /**
109
-     * 根据案件id查询已预约的会议
110
-     * @param caseId
111
-     * @return
112
-     */
113
-    List<ReservedConference> reserveConferenceList(Long caseId);
114
-
115
-    AjaxResult deleteRoom(  String roomId);
116
-
117
-    AjaxResult uploadCaseZipFile(MultipartFile file,Long templateId);
118
-
119
-    /**
120
-     * 根据附件id修改案件id
121
-     * @param caseAttach
122
-     * @return
123
-     */
124
-    AjaxResult updateCaseIdByAnnexId(CaseAttach caseAttach);
125
-
126
-    /**
127
-     * 仲裁员审核裁决书
128
-     * @param caseApplication
129
-     * @return
130
-     */
131
-    AjaxResult arbitratorCheckArbitrateRecord(CaseApplication caseApplication);
132
-
133
-    AjaxResult creatTrialRecordnew(ArbitrateRecord arbitrateRecord);
134
-
135
-    AjaxResult editCaseApplicationDefineval(CaseApplication caseApplication);
136
-
137
-    CaseAttach downloadCaseZipFile(CaseApplication caseApplication);
138
-
139
-    List<CaseApplication> selectCaseApplicationListBatchByRole(CaseApplication caseApplication);
140
-
141
-    int submitCaseApplicationBatch(String batchNumber);
142
-
143
-    int submitCaseApplicationCheckBatch(String batchNumber, Integer agreeOrNotCheck, String caseCheckReject);
144
-
145
-    int pendTralCheckBatch(CaseApplication caseApplication);
146
-
147
-    int pendTralSureBatch(CaseApplication caseApplication);
148
-
149
-    int verificationArbitrateRecordBatch(CaseApplication caseApplication);
150
-
151
-    AjaxResult arbitratorCheckArbitrateRecordBatch(CaseApplication caseApplication);
152
-
153
-    AjaxResult checkArbitrateRecordBatch(CaseApplication caseApplication);
154
-}

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

@@ -1,17 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.service;
2
-
3
-import com.ruoyi.common.core.domain.AjaxResult;
4
-import com.ruoyi.wisdomarbitrate.domain.ArbitrateRecord;
5
-import com.ruoyi.wisdomarbitrate.domain.BatchCaseApplication;
6
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
7
-import com.ruoyi.wisdomarbitrate.domain.CaseIds;
8
-
9
-import java.util.List;
10
-
11
-public interface ICaseArbitrateService {
12
-
13
-
14
-    AjaxResult  writtenHear(CaseIds caseIds);
15
-
16
-    AjaxResult examineArbitrateMethod(CaseApplication caseApplication, Integer opinion, Integer arbitratMethod);
17
-}

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

@@ -1,70 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.service;
2
-
3
-
4
-import com.ruoyi.common.core.domain.AjaxResult;
5
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
6
-import com.ruoyi.wisdomarbitrate.domain.CaseEvidenceDirectory;
7
-import com.ruoyi.wisdomarbitrate.domain.dto.CaseEvidenceDTO;
8
-import com.ruoyi.wisdomarbitrate.domain.vo.CaseEvidenceDirectoryVO;
9
-import com.ruoyi.wisdomarbitrate.domain.vo.CaseEvidenceVO;
10
-import org.springframework.web.multipart.MultipartFile;
11
-
12
-import java.util.List;
13
-
14
-public interface ICaseEvidenceService {
15
-
16
-    AjaxResult getCaseDetailsById(Long id,String userName);
17
-
18
-    AjaxResult uploadEvidence(MultipartFile file, Integer annexType, Long id,String userName,Long userId);
19
-
20
-    List<CaseEvidenceVO> getCaseListAll(Integer caseStatus);
21
-
22
-    AjaxResult evidenceConfirmation(CaseApplication caseApplication);
23
-
24
-    AjaxResult caseCrossexamination(CaseEvidenceDTO caseEvidenceDTO);
25
-
26
-    /**
27
-     * 批量上传文件
28
-     * @param file
29
-     * @param annexType
30
-     * @param id
31
-     * @param username
32
-     * @param userId
33
-     * @return
34
-     */
35
-    AjaxResult batchUpload(MultipartFile[] file, Integer annexType, Long id, String username, Long userId);
36
-
37
-    AjaxResult fileList(Long caseAppliId,  List<Integer> annexTypeList);
38
-
39
-    int deleteFile( List<Integer> fileIds);
40
-
41
-    List<CaseEvidenceDirectoryVO> selectEvidenceTreeList(CaseEvidenceDirectory caseEvidenceDirectory);
42
-
43
-
44
-    /**
45
-     * 查询证据目录数据
46
-     *
47
-     * @param caseEvidenceDirectory 证据目录信息
48
-     * @return 证据目录信息集合
49
-     */
50
-    List<CaseEvidenceDirectory> selectCaseEvidenceList(CaseEvidenceDirectory caseEvidenceDirectory);
51
-
52
-
53
-    /**
54
-     * 构建前端所需要树结构
55
-     *
56
-     * @param caseEvidenceDirectorys 证据列表
57
-     * @return 树结构列表
58
-     */
59
-    List<CaseEvidenceDirectory> buildCaseEvidenceTree(List<CaseEvidenceDirectory> caseEvidenceDirectorys);
60
-
61
-    /**
62
-     * 构建前端所需要下拉树结构
63
-     *
64
-     * @param caseEvidenceDirectorys 证据目录列表
65
-     * @return 下拉树结构列表
66
-     */
67
-    List<CaseEvidenceDirectoryVO> buildCaseEvidenceTreeSelect(List<CaseEvidenceDirectory> caseEvidenceDirectorys);
68
-
69
-    AjaxResult uploadRecord(MultipartFile file, Integer annexType, Long id, String username, Long userId);
70
-}

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

@@ -1,36 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.service;
2
-
3
-import com.ruoyi.common.core.domain.AjaxResult;
4
-import com.ruoyi.dto.PayRequest;
5
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
6
-import com.ruoyi.wisdomarbitrate.domain.dto.CaseConfirmPayDTO;
7
-import com.ruoyi.wisdomarbitrate.domain.dto.CasePayDTO;
8
-
9
-import java.util.List;
10
-
11
-public interface ICasePaymentService {
12
-    /**
13
-     * 案件缴费
14
-     */
15
-    AjaxResult casePay(CasePayDTO casePayDTO);
16
-
17
-    AjaxResult confirmPayment( List<Long> ids);
18
-
19
-    /**
20
-     * 确认缴费
21
-     * @param payDTO
22
-     * @return
23
-     */
24
-    AjaxResult confirmPay(CaseConfirmPayDTO payDTO);
25
-
26
-
27
-    AjaxResult casePayList(CasePayDTO casePayDTO);
28
-
29
-    AjaxResult confirmPayBatch(CasePayDTO payDTO);
30
-
31
-    AjaxResult casePayListBatch(CasePayDTO casePayDTO);
32
-
33
-    AjaxResult confirmPaymentBatch(String batchNumber);
34
-
35
-    AjaxResult casePayBatch(CasePayDTO casePayDTO);
36
-}

+ 0
- 1513
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/AdjudicationServiceImpl.java
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


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

@@ -1,28 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.service.impl;
2
-
3
-import com.ruoyi.wisdomarbitrate.domain.Arbitrator;
4
-import com.ruoyi.wisdomarbitrate.mapper.ArbitratorMapper;
5
-import com.ruoyi.wisdomarbitrate.service.IArbitratorService;
6
-import org.springframework.beans.factory.annotation.Autowired;
7
-import org.springframework.stereotype.Service;
8
-
9
-import java.util.List;
10
-
11
-@Service
12
-public class ArbitratorServiceImpl implements IArbitratorService {
13
-    @Autowired
14
-    private ArbitratorMapper arbitratorMapper;
15
-
16
-
17
-    @Override
18
-    public List<Arbitrator> selectArbitratorList(Arbitrator arbitrator) {
19
-        return arbitratorMapper.selectArbitratorList(arbitrator);
20
-
21
-    }
22
-
23
-
24
-
25
-
26
-
27
-
28
-}

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

@@ -11,12 +11,13 @@ import org.springframework.stereotype.Component;
11 11
 @Component
12 12
 @Slf4j
13 13
 public class CallBackHandleServiceImpl implements CallBackService {
14
-    @Autowired
15
-    private CasePaymentServiceImpl casePaymentService;
16
-    
14
+    // todo
15
+//    @Autowired
16
+//    private CasePaymentServiceImpl casePaymentService;
17
+
17 18
     @Override
18 19
     public void successPay(String orderSn) {
19
-        casePaymentService.callback(orderSn);
20
+    //    casePaymentService.callback(orderSn);
20 21
     }
21 22
 
22 23
     @Override

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

@@ -1,512 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.service.impl;
2
-
3
-import cn.hutool.core.collection.CollectionUtil;
4
-import cn.hutool.core.util.StrUtil;
5
-import com.ruoyi.common.core.domain.AjaxResult;
6
-import com.ruoyi.common.core.domain.entity.SysDept;
7
-import com.ruoyi.common.enums.UpdateSubmitStatus;
8
-import com.ruoyi.common.enums.YesOrNoEnum;
9
-import com.ruoyi.common.utils.ObjectFieldUtils;
10
-import com.ruoyi.common.utils.SmsUtils;
11
-import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
12
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
13
-import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
14
-import com.ruoyi.wisdomarbitrate.domain.SmsSendRecord;
15
-import com.ruoyi.wisdomarbitrate.domain.vo.ColumnValue;
16
-import com.ruoyi.wisdomarbitrate.domain.vo.CompareCaseVO;
17
-import com.ruoyi.wisdomarbitrate.domain.vo.UpdateSubmitVO;
18
-import com.ruoyi.wisdomarbitrate.mapper.*;
19
-import com.ruoyi.wisdomarbitrate.service.CaseApplicationLogService;
20
-import com.ruoyi.wisdomarbitrate.service.ICaseApplicationService;
21
-import org.springframework.beans.factory.annotation.Autowired;
22
-import org.springframework.stereotype.Service;
23
-import org.springframework.transaction.annotation.Transactional;
24
-
25
-import java.util.*;
26
-import java.util.function.Function;
27
-import java.util.stream.Collectors;
28
-
29
-import static com.ruoyi.common.utils.SecurityUtils.getUsername;
30
-
31
-/**
32
- * @author wangqiong
33
- * @description 案件日志
34
- * @date 2023-11-17 14:05
35
- */
36
-@Service
37
-public class CaseApplicationLogServiceImpl implements CaseApplicationLogService {
38
-    @Autowired
39
-    private CaseApplicationLogMapper caseApplicationLogMapper;
40
-    @Autowired
41
-    private CaseApplicationMapper caseApplicationMapper;
42
-    @Autowired
43
-    private CaseAffiliateLogMapper caseAffiliateLogMapper;
44
-    @Autowired
45
-    private CaseAffiliateMapper caseAffiliateMapper;
46
-    @Autowired
47
-    private CaseAttachMapper caseAttachMapper;
48
-    @Autowired
49
-    private CaseAttachLogMapper caseAttachLogMapper;
50
-    @Autowired
51
-    private SmsRecordMapper smsRecordMapper;
52
-    @Autowired
53
-    private ICaseApplicationService caseApplicationService;
54
-    @Autowired
55
-    private ColumnValueLogMapper columnValueLogMapper;
56
-    // 对比两个版本修改的字段,基本字段对比
57
-    private static final String[] columns = {"caseName","caseSubjectAmount","loanStartDate", "loanEndDate","contractNumber","claimInterestOwed","claimLiquidDamag",
58
-            "claimPrinciOwed","arbitratClaims","properPreser","requestRule","facts"};
59
-    // 人员字段对比
60
-    private static final String[] affiliateColumns = {"name", "identityNum","contactTelphone","contactAddress","workTelphone","workAddress","email",
61
-            "nameAgent", "identityNumAgent","contactTelphoneAgent","contactAddressAgent","residenAffili","compLegalPerson",
62
-            "compLegalperPost","responSex","responBirth"};
63
-    @Override
64
-    public int insert(CaseApplication caseApplicationLog) {
65
-        return caseApplicationLogMapper.insert(caseApplicationLog);
66
-    }
67
-
68
-    @Override
69
-    public int delete(Long id) {
70
-        return caseApplicationLogMapper.deleteById(id);
71
-    }
72
-
73
-
74
-
75
-    @Override
76
-    public CaseApplication selectByCaseIdAndVersion(Long id, int version) {
77
-        return caseApplicationLogMapper.selectByCaseIdAndVersion(id,version);
78
-    }
79
-    /**
80
-     * 修改的案件提交到秘书
81
-     * @param vo
82
-     * @return
83
-     */
84
-    @Override
85
-    public AjaxResult submit(UpdateSubmitVO vo) {
86
-        vo.setUpdateSubmitStatus(UpdateSubmitStatus.COMMITTED.getCode());
87
-        // 修改日志表提交状态
88
-        caseApplicationLogMapper.updateStatus(vo);
89
-        return AjaxResult.success();
90
-    }
91
-    @Transactional
92
-    @Override
93
-    public AjaxResult revoke(UpdateSubmitVO vo) {
94
-        // 根据案件id和版本号查询改案件
95
-        CaseApplication caseApplication = caseApplicationLogMapper.selectByCaseIdAndVersion(vo.getCaseId(), vo.getVersion());
96
-        if(caseApplication == null){
97
-            return AjaxResult.error("案件不存在");
98
-        }
99
-        // 如果秘书没有审核,将撤销状态改为同意撤销,否则改为撤销
100
-        if(caseApplication.getUpdateSubmitStatus()!=null && !caseApplication.getUpdateSubmitStatus().equals(UpdateSubmitStatus.AGREE.getCode())){
101
-            agreeRevoke(vo);
102
-
103
-        }else {
104
-            vo.setUpdateSubmitStatus(UpdateSubmitStatus.REVOKE.getCode());
105
-            // 修改日志表提交状态
106
-            caseApplicationLogMapper.updateStatus(vo);
107
-        }
108
-
109
-        return AjaxResult.success();
110
-    }
111
-
112
-    /**
113
-     * 秘书审核修改的案件
114
-     * @param vo
115
-     * @return
116
-     */
117
-    @Transactional
118
-    @Override
119
-    public AjaxResult updateAudit(UpdateSubmitVO vo) {
120
-        if (Objects.equals(vo.getUpdateSubmitStatus(), UpdateSubmitStatus.COMMITTED.getCode())) {
121
-            // 审核修改提交状态
122
-            if (Objects.equals(vo.getIsAgree(), YesOrNoEnum.YES.getCode())) {
123
-                // 如果版本号为1,则直接返回
124
-                if(vo.getVersion() <= 1){
125
-                    vo.setUpdateSubmitStatus(UpdateSubmitStatus.AGREE.getCode());
126
-                    caseApplicationLogMapper.updateStatus(vo);
127
-                    return AjaxResult.success();
128
-                }
129
-                // 同意,查询日志记录表本版本数据,将数据更新到主表,并将日志表改版本的状态改为同意
130
-                // 查询日志记录表本版本数据
131
-                CaseApplication caseApplicationLog = caseApplicationLogMapper.selectByCaseIdAndVersion(vo.getCaseId(), vo.getVersion());
132
-                if (caseApplicationLog == null) {
133
-                    return AjaxResult.error("未找到该案件");
134
-                }
135
-                // 将日志表改版本的状态改为同意
136
-                vo.setUpdateSubmitStatus(UpdateSubmitStatus.AGREE.getCode());
137
-                caseApplicationLogMapper.updateStatus(vo);
138
-                // 根据caseLogId查询相关人员表
139
-                List<CaseAffiliate> affiliateLogList = caseAffiliateLogMapper.selectCaseAffiliate(caseApplicationLog.getCaseLogId());
140
-                // 更新案件主表
141
-                caseApplicationMapper.updataCaseApplication(caseApplicationLog);
142
-
143
-                // 更新相关人员主表
144
-                if(CollectionUtil.isNotEmpty(affiliateLogList)){
145
-                    caseAffiliateMapper.deleteByCaseId(vo.getCaseId());
146
-                    for (CaseAffiliate caseAffiliate : affiliateLogList) {
147
-                        caseAffiliate.setCaseAppliId(vo.getCaseId());
148
-
149
-                    }
150
-                    caseAffiliateMapper.batchCaseAffiliate(affiliateLogList);
151
-                }
152
-                // // 根据caseLogId查询案件记录附件表
153
-                CaseApplication caseApplication = new CaseApplication();
154
-                caseApplication.setCaseLogId(caseApplicationLog.getCaseLogId());
155
-                caseApplication.setAnnexType(2);
156
-                List<CaseAttach> attachLogList = caseAttachLogMapper.queryCaseAttachList(caseApplication);
157
-                // 更新记录附件表
158
-                if(CollectionUtil.isNotEmpty(attachLogList)){
159
-                    for (CaseAttach caseAttach : attachLogList) {
160
-                        caseAttach.setCaseAppliId(vo.getCaseId());
161
-                        caseAttachMapper.updateCaseAttach(caseAttach);
162
-                    }
163
-                }
164
-                // 更新自定义字段表
165
-                // 根据caseLogId查询自定义字段表
166
-                List<ColumnValue> columnValueList = columnValueLogMapper.listBycaseAppliLogId(caseApplicationLog.getCaseLogId());
167
-                if(CollectionUtil.isNotEmpty(columnValueList)){
168
-                    for (ColumnValue columnValue : columnValueList) {
169
-                        columnValue.setCaseAppliLogId(vo.getCaseId());
170
-
171
-                    }
172
-                    columnValueLogMapper.batchUpdate(columnValueList);
173
-                }
174
-            } else {
175
-                // 拒绝,将日志表改版本的状态改为拒绝
176
-                vo.setUpdateSubmitStatus(UpdateSubmitStatus.REFUSE.getCode());
177
-                caseApplicationLogMapper.updateStatus(vo);
178
-               return sendAuditMessage(vo);
179
-            }
180
-            return AjaxResult.success();
181
-        } else if (Objects.equals(vo.getUpdateSubmitStatus(), UpdateSubmitStatus.REVOKE.getCode())) {
182
-            // 审核修改撤销状态
183
-            if (Objects.equals(vo.getIsAgree(), YesOrNoEnum.YES.getCode())) {
184
-                // 同意撤销
185
-                agreeRevoke(vo);
186
-            } else {
187
-                // 拒绝撤销,将日志表改版本的状态改为拒绝撤销
188
-                vo.setUpdateSubmitStatus(UpdateSubmitStatus.REFUSE_REVOKE.getCode());
189
-                caseApplicationLogMapper.updateStatus(vo);
190
-                return sendAuditMessage(vo);
191
-            }
192
-            return AjaxResult.success();
193
-        }
194
-       return AjaxResult.success();
195
-    }
196
-
197
-    /**
198
-     * 给申请人发送短信
199
-     * @param vo
200
-     * @return
201
-     */
202
-    private AjaxResult sendAuditMessage(UpdateSubmitVO vo) {
203
-        // 查询申请人
204
-        CaseApplication logCase = caseApplicationLogMapper.selectByCaseIdAndVersion(vo.getCaseId(), vo.getVersion());
205
-        if(logCase == null){
206
-            return AjaxResult.success();
207
-        }
208
-        CaseAffiliate caseAffiliate = caseAffiliateLogMapper.selectCaseAffiliateByIdentityType(logCase.getCaseLogId(), 1);
209
-        if(caseAffiliate == null){
210
-            return AjaxResult.success();
211
-        }
212
-
213
-        SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
214
-        request.setTemplateId("1996949");
215
-        request.setPhone(caseAffiliate.getContactTelphone());
216
-        request.setTemplateParamSet(new String[]{caseAffiliate.getName(), logCase.getCaseNum(),vo.getReason()});
217
-        Boolean aBoolean = SmsUtils.sendSms(request);
218
-        //保存短信发送记录
219
-        SmsSendRecord smsSendRecord = new SmsSendRecord();
220
-        smsSendRecord.setCaseId(caseAffiliate.getCaseAppliId());
221
-        CaseApplication caseApplication = new CaseApplication();
222
-        caseApplication.setId(caseAffiliate.getCaseAppliId());
223
-        caseApplication = caseApplicationMapper.selectCaseApplication(caseApplication);
224
-        smsSendRecord.setCaseNum(caseApplication.getCaseNum());
225
-        smsSendRecord.setPhone(request.getPhone());
226
-        smsSendRecord.setSendTime(new Date());
227
-        // 1996949 审核案件结果通知 尊敬的{1}用户,您的{2}仲裁案件,审核未通过,理由为{3},请知晓,如非本人操作,请忽略本短信
228
-        String content = "尊敬的" + caseAffiliate.getName() + ",您的"+logCase.getCaseNum()+"仲裁案件,审核未通过,理由为"+vo.getReason()+",请知晓,如非本人操作,请忽略本短信。";
229
-        smsSendRecord.setSendContent(content);
230
-        smsSendRecord.setCreateBy(getUsername());
231
-        if (aBoolean) {
232
-            smsSendRecord.setSendStatus(1);
233
-        } else {
234
-            smsSendRecord.setSendStatus(0);
235
-        }
236
-        smsRecordMapper.saveSmsSendRecord(smsSendRecord);
237
-        return AjaxResult.success();
238
-    }
239
-
240
-    @Override
241
-    public AjaxResult selectCompareCase(UpdateSubmitVO vo) {
242
-        // 查询当前版本号和主表的案件
243
-        CaseApplication afterCase = caseApplicationLogMapper.selectByCaseIdAndVersion(vo.getCaseId(), vo.getVersion());
244
-        CaseApplication caseApplication = new CaseApplication();
245
-        caseApplication.setCaseAppliId(vo.getCaseId());
246
-        caseApplication.setId(vo.getCaseId());
247
-        CaseApplication beforeCase = caseApplicationService.selectCaseApplication(caseApplication);
248
-
249
-        // 查询案件关联人员
250
-        afterCase.setCaseAffiliates(caseAffiliateLogMapper.selectCaseAffiliate(afterCase.getCaseLogId()));
251
-        // 查询自定义字段表
252
-        afterCase.setColumnValues(columnValueLogMapper.listBycaseAppliLogId(afterCase.getCaseLogId()));
253
-        // 查询附件
254
-        CaseAttach caseAttach = new CaseAttach();
255
-        caseAttach.setCaseAppliLogId(beforeCase.getCaseLogId());
256
-        caseAttach.setAnnexType(2);
257
-        caseAttachLogMapper.getCaseAttachByCaseIdAndType(caseAttach);
258
-        caseAttach.setCaseAppliLogId(afterCase.getCaseLogId());
259
-        List<CaseAttach> afterAttachList = caseAttachLogMapper.getCaseAttachByCaseIdAndType(caseAttach);
260
-        if (CollectionUtil.isNotEmpty(afterAttachList)) {
261
-            for (CaseAttach attach : afterAttachList) {
262
-                String annexName = attach.getAnnexName();
263
-                String prefix = "/profile";
264
-                int startIndex = annexName.indexOf(prefix);
265
-                startIndex += prefix.length();
266
-                String annexPath = "/uploadPath" + annexName.substring(startIndex);
267
-                attach.setAnnexPath(annexPath);
268
-                int startIndexnew = annexName.lastIndexOf("/");
269
-                if (startIndexnew != -1) {
270
-                    String annexNamenew = annexName.substring(startIndexnew + 1);
271
-                    attach.setAnnexName(annexNamenew);
272
-                }
273
-            }
274
-            afterCase.setCaseAttachList(afterAttachList);
275
-        }
276
-        afterCase.setCaseAttachList(afterAttachList);
277
-        CompareCaseVO compareCaseVO = new CompareCaseVO();
278
-        compareCaseVO.setBeforeCase(beforeCase);
279
-        compareCaseVO.setAfterCase(afterCase);
280
-
281
-        StringBuilder changeColumn = new StringBuilder();
282
-        // 对比基本字段
283
-        for (String column : columns) {
284
-            String beforeValue = ObjectFieldUtils.getValue(beforeCase, column);
285
-            String afterValue = ObjectFieldUtils.getValue(afterCase, column);
286
-            if (StrUtil.isEmpty(beforeValue) && StrUtil.isNotEmpty(afterValue)) {
287
-                changeColumn.append(column).append(",");
288
-                continue;
289
-            }
290
-            if (StrUtil.isNotEmpty(beforeValue) && StrUtil.isEmpty(afterValue)) {
291
-                changeColumn.append(column).append(",");
292
-                continue;
293
-            }
294
-            if (StrUtil.isNotEmpty(beforeValue) && StrUtil.isNotEmpty(afterValue) && !Objects.equals(beforeValue, afterValue)) {
295
-                changeColumn.append(column).append(",");
296
-                continue;
297
-
298
-            }
299
-
300
-        }
301
-        // 对比案件人员字段
302
-        compareAffilate(beforeCase, afterCase);
303
-        // 对比申请人证据资料
304
-        compareCaseVO.setChangeColumn(compareApplicantFile(beforeCase, afterCase, changeColumn).toString());
305
-        // 对比自定义字段
306
-        //
307
-        List<ColumnValue> beforeColumnValues = beforeCase.getColumnValues();
308
-        List<ColumnValue> afterColumnValues = afterCase.getColumnValues();
309
-        StringBuilder columnValueChange = new StringBuilder();
310
-
311
-        if (CollectionUtil.isNotEmpty(beforeColumnValues) && CollectionUtil.isNotEmpty(afterColumnValues)) {
312
-            Map<String, String> beforeColumnValueMap = beforeColumnValues.stream().collect(Collectors.toMap(ColumnValue::getColumn, ColumnValue::getValue, (n1, n2) -> n2));
313
-            for (ColumnValue afterColumnValue : afterColumnValues) {
314
-                // 改变前字段不包含改变后字段
315
-                if (!beforeColumnValueMap.containsKey(afterColumnValue.getColumn())) {
316
-                    columnValueChange.append(afterColumnValue.getColumn()).append(",");
317
-                } else {
318
-                    // 都有这个字段,比较内容是否相同
319
-                    // 修改后为空,修改前不为空
320
-                    if (StrUtil.isEmpty(afterColumnValue.getValue()) && StrUtil.isNotEmpty(beforeColumnValueMap.get(afterColumnValue.getColumn()))) {
321
-                        columnValueChange.append(afterColumnValue.getColumn()).append(",");
322
-                    } else if (StrUtil.isNotEmpty(afterColumnValue.getValue()) && StrUtil.isEmpty(beforeColumnValueMap.get(afterColumnValue.getColumn()))) {
323
-                        // 修改前为空,修改后不为空
324
-                        columnValueChange.append(afterColumnValue.getColumn()).append(",");
325
-                    } else if (StrUtil.isNotEmpty(afterColumnValue.getValue()) && StrUtil.isNotEmpty(beforeColumnValueMap.get(afterColumnValue.getColumn()))
326
-                            && !afterColumnValue.getValue().equals(beforeColumnValueMap.get(afterColumnValue.getColumn()))) {
327
-                        // 修改前不为空,修改后不为空,内容不同
328
-                        columnValueChange.append(afterColumnValue.getColumn()).append(",");
329
-                    }
330
-                }
331
-            }
332
-
333
-        } else if (CollectionUtil.isEmpty(beforeColumnValues) && CollectionUtil.isNotEmpty(afterColumnValues)) {
334
-            for (ColumnValue afterColumnValue : afterColumnValues) {
335
-                columnValueChange.append(afterColumnValue.getColumn()).append(",");
336
-            }
337
-
338
-        } else if (CollectionUtil.isNotEmpty(beforeColumnValues) && CollectionUtil.isEmpty(afterColumnValues)) {
339
-            for (ColumnValue beforeColumn : beforeColumnValues) {
340
-                columnValueChange.append(beforeColumn.getColumn()).append(",");
341
-            }
342
-
343
-        }
344
-        compareCaseVO.setColumnValueChangeColumn(columnValueChange.toString());
345
-
346
-        return AjaxResult.success(compareCaseVO);
347
-    }
348
-
349
-    /**
350
-     * 对比申请人证据资料
351
-     * @param beforeCase
352
-     * @param afterCase
353
-     * @param changeColumn
354
-     * @return
355
-     */
356
-    private StringBuilder compareApplicantFile(CaseApplication beforeCase, CaseApplication afterCase, StringBuilder changeColumn) {
357
-        List<CaseAttach> beforeAttachFilter =new ArrayList<>();
358
-        List<CaseAttach> afterAttachFilter =new ArrayList<>();
359
-        if(CollectionUtil.isNotEmpty(beforeCase.getCaseAttachList())){
360
-            beforeAttachFilter = beforeCase.getCaseAttachList().stream().filter(n -> n.getAnnexType() == 2).collect(Collectors.toList());
361
-        }
362
-        if(CollectionUtil.isNotEmpty(afterCase.getCaseAttachList())){
363
-            afterAttachFilter = afterCase.getCaseAttachList().stream().filter(n -> n.getAnnexType() == 2).collect(Collectors.toList());
364
-        }
365
-        if(CollectionUtil.isNotEmpty(beforeAttachFilter)&& CollectionUtil.isNotEmpty(afterAttachFilter)){
366
-            if(beforeAttachFilter.size()!=afterAttachFilter.size()){
367
-                changeColumn.append("fileColumn");
368
-            }else {
369
-                Map<String, CaseAttach> afterAttachMap = afterAttachFilter.stream().collect(Collectors.toMap(CaseAttach::getAnnexPath, Function.identity(), (n1, n2) -> n2));
370
-                for (CaseAttach beforeCaseAttach : beforeAttachFilter) {
371
-                    if(!afterAttachMap.containsKey(beforeCaseAttach.getAnnexPath())) {
372
-                        changeColumn.append("fileColumn");
373
-                        break;
374
-                    }
375
-                }
376
-            }
377
-        }
378
-
379
-
380
-      return changeColumn;
381
-    }
382
-
383
-    /**
384
-     * 对比案件人员字段
385
-     * @param beforeCase
386
-     * @param afterCase
387
-     */
388
-    private void compareAffilate(CaseApplication beforeCase, CaseApplication afterCase) {
389
-        // 对比人员字段
390
-        List<CaseAffiliate> beforeCaseCaseAffiliates = beforeCase.getCaseAffiliates();
391
-        List<CaseAffiliate> afterCaseCaseAffiliates = afterCase.getCaseAffiliates();
392
-        Map<Integer, CaseAffiliate> beforeCaseCaseAffiliateMap = null;
393
-        if (CollectionUtil.isNotEmpty(beforeCaseCaseAffiliates)) {
394
-            // 转为map
395
-            beforeCaseCaseAffiliateMap = beforeCaseCaseAffiliates.stream().collect(Collectors.toMap(CaseAffiliate::getIdentityType, v -> v, (n1, n2) -> n2));
396
-        }
397
-        StringBuilder affiliateChangeColumn;
398
-        // 如果上一个版本和现版本有一个为空,那么所有字段都修改
399
-        if (beforeCaseCaseAffiliates != null && afterCaseCaseAffiliates == null) {
400
-            affiliateChangeColumn = new StringBuilder();
401
-            for (String column : affiliateColumns) {
402
-
403
-                affiliateChangeColumn.append(column).append(",");
404
-            }
405
-
406
-        } else if (beforeCaseCaseAffiliates == null && afterCaseCaseAffiliates != null) {
407
-            affiliateChangeColumn = new StringBuilder();
408
-            for (String column : affiliateColumns) {
409
-
410
-                affiliateChangeColumn.append(column).append(",");
411
-            }
412
-        } else if (beforeCaseCaseAffiliates != null && afterCaseCaseAffiliates != null) {
413
-            for (CaseAffiliate afterCaseCaseAffiliate : afterCaseCaseAffiliates) {
414
-                // 找到相同身份类型的数据,进行对比
415
-                affiliateChangeColumn = new StringBuilder();
416
-                int identityType = afterCaseCaseAffiliate.getIdentityType();
417
-                if (beforeCaseCaseAffiliateMap != null && beforeCaseCaseAffiliateMap.containsKey(identityType)) {
418
-                    CaseAffiliate beforeCaseCaseAffiliate = beforeCaseCaseAffiliateMap.get(identityType);
419
-                    for (String column : affiliateColumns) {
420
-                        String beforeValue = ObjectFieldUtils.getValue(beforeCaseCaseAffiliate, column);
421
-                        String afterValue = ObjectFieldUtils.getValue(afterCaseCaseAffiliate, column);
422
-                        if (StrUtil.isEmpty(beforeValue) && StrUtil.isNotEmpty(afterValue)) {
423
-                            affiliateChangeColumn.append(column).append(",");
424
-                            continue;
425
-                        }
426
-                        if (StrUtil.isNotEmpty(beforeValue) && StrUtil.isEmpty(afterValue)) {
427
-                            affiliateChangeColumn.append(column).append(",");
428
-                            continue;
429
-                        }
430
-                        if (StrUtil.isNotEmpty(beforeValue) && StrUtil.isNotEmpty(afterValue) && !Objects.equals(beforeValue, afterValue)) {
431
-                            affiliateChangeColumn.append(column).append(",");
432
-                            continue;
433
-
434
-                        }
435
-
436
-                    }
437
-
438
-
439
-                } else {
440
-                    for (String column : affiliateColumns) {
441
-
442
-                        affiliateChangeColumn.append(column).append(",");
443
-                    }
444
-                }
445
-                afterCaseCaseAffiliate.setChangeColumn(affiliateChangeColumn.toString());
446
-
447
-            }
448
-
449
-
450
-        }
451
-    }
452
-
453
-    /**
454
-     * 同意撤销
455
-     * @param vo
456
-     */
457
-    private void agreeRevoke(UpdateSubmitVO vo) {
458
-        CaseApplication caseApplicationLog;
459
-        // 查询日志记录表上个版本未被拒绝数据
460
-        if(vo.getVersion()<=1){
461
-            caseApplicationLog = caseApplicationLogMapper.selectByCaseIdAndVersion(vo.getCaseId(), vo.getVersion() );
462
-
463
-        }else {
464
-            caseApplicationLog = caseApplicationLogMapper.selectBeforeCase(vo.getCaseId(), vo.getVersion() );
465
-        }
466
-         if (caseApplicationLog == null) {
467
-            return;
468
-        }
469
-        // 将日志表改版本的状态改为拒绝
470
-        vo.setUpdateSubmitStatus(UpdateSubmitStatus.AGREE_REVOKE.getCode());
471
-        caseApplicationLogMapper.updateStatus(vo);
472
-        // 根据caseLogId查询相关人员表
473
-        List<CaseAffiliate> affiliateLogList = caseAffiliateLogMapper.selectCaseAffiliate(caseApplicationLog.getCaseLogId());
474
-
475
-
476
-        // 更新案件主表
477
-        caseApplicationMapper.updataCaseApplication(caseApplicationLog);
478
-
479
-        // 更新相关人员主表
480
-        if(CollectionUtil.isNotEmpty(affiliateLogList)){
481
-            caseAffiliateMapper.deleteByCaseId(vo.getCaseId());
482
-            for (CaseAffiliate caseAffiliate : affiliateLogList) {
483
-                caseAffiliate.setCaseAppliId(vo.getCaseId());
484
-
485
-            }
486
-            caseAffiliateMapper.batchCaseAffiliate(affiliateLogList);
487
-        }
488
-        // // 根据caseLogId查询案件记录附件表
489
-        CaseApplication caseApplication = new CaseApplication();
490
-        caseApplication.setCaseLogId(caseApplicationLog.getCaseLogId());
491
-        caseApplication.setAnnexType(2);
492
-        List<CaseAttach> attachLogList = caseAttachLogMapper.queryCaseAttachList(caseApplication);
493
-        // 更新记录附件表
494
-        if(CollectionUtil.isNotEmpty(attachLogList)){
495
-            for (CaseAttach caseAttach : attachLogList) {
496
-                caseAttach.setCaseAppliId(vo.getCaseId());
497
-                caseAttachMapper.updateCaseAttach(caseAttach);
498
-            }
499
-        }
500
-        // 根据caseLogId查询自定义字段表
501
-        List<ColumnValue> columnValueList = columnValueLogMapper.listBycaseAppliLogId(caseApplicationLog.getCaseLogId());
502
-
503
-        // 更新相关人员主表
504
-        if(CollectionUtil.isNotEmpty(columnValueList)){
505
-            for (ColumnValue columnValue : columnValueList) {
506
-                columnValue.setCaseAppliLogId(vo.getCaseId());
507
-
508
-            }
509
-            columnValueLogMapper.batchUpdate(columnValueList);
510
-        }
511
-    }
512
-}

+ 0
- 3703
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


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

@@ -1,533 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.service.impl;
2
-
3
-import cn.hutool.core.collection.CollectionUtil;
4
-import com.deepoove.poi.data.PictureRenderData;
5
-import com.ruoyi.common.constant.CaseApplicationConstants;
6
-import com.ruoyi.common.core.domain.AjaxResult;
7
-import com.ruoyi.common.core.redis.RedisCache;
8
-import com.ruoyi.common.utils.WordUtil;
9
-import com.ruoyi.wisdomarbitrate.domain.*;
10
-import com.ruoyi.wisdomarbitrate.mapper.*;
11
-import com.ruoyi.wisdomarbitrate.service.IAdjudicationService;
12
-import com.ruoyi.wisdomarbitrate.service.ICaseApplicationService;
13
-import com.ruoyi.wisdomarbitrate.utils.CaseLogUtils;
14
-import com.ruoyi.common.utils.SmsUtils;
15
-import com.ruoyi.wisdomarbitrate.service.ICaseArbitrateService;
16
-import org.apache.poi.xwpf.usermodel.XWPFDocument;
17
-import org.springframework.beans.factory.annotation.Autowired;
18
-import org.springframework.stereotype.Service;
19
-import org.springframework.transaction.annotation.Transactional;
20
-
21
-import java.io.File;
22
-import java.io.FileInputStream;
23
-import java.io.IOException;
24
-import java.io.InputStream;
25
-import java.nio.file.Files;
26
-import java.nio.file.Path;
27
-import java.nio.file.StandardCopyOption;
28
-import java.text.SimpleDateFormat;
29
-import java.time.LocalDate;
30
-import java.time.ZoneId;
31
-import java.util.*;
32
-import java.util.function.Function;
33
-import java.util.regex.Pattern;
34
-import java.util.stream.Collectors;
35
-
36
-import static com.ruoyi.common.utils.SecurityUtils.getUsername;
37
-
38
-@Service
39
-public class CaseArbitrateServiceImpl implements ICaseArbitrateService {
40
-    @Autowired
41
-    private CaseApplicationMapper caseApplicationMapper;
42
-    @Autowired
43
-    private CaseAffiliateMapper caseAffiliateMapper;
44
-    @Autowired
45
-    private CaseLogRecordMapper caseLogRecordMapper;
46
-    @Autowired
47
-    private ArbitrateRecordMapper arbitrateRecordMapper;
48
-    @Autowired
49
-    private CaseAttachMapper caseAttachMapper;
50
-    @Autowired
51
-    private SmsRecordMapper smsRecordMapper;
52
-    @Autowired
53
-    private IAdjudicationService adjudicationService;
54
-    @Autowired
55
-    private RedisCache redisCache;
56
-    @Autowired
57
-    private ICaseApplicationService caseApplicationService;
58
-
59
-    @Override
60
-    @Transactional
61
-    public AjaxResult examineArbitrateMethod(CaseApplication caseApplication, Integer opinion, Integer arbitratMethodNow) {
62
-        //查询案件详细信息
63
-        CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
64
-        if (caseApplication1 == null) {
65
-            return AjaxResult.success();
66
-        }
67
-        Integer arbitratMethodOriral = caseApplication.getArbitratMethod();
68
-
69
-        String caseNum = caseApplication1.getCaseNum();
70
-        if (opinion == 0) {   //拒绝
71
-            if (arbitratMethodOriral == 2) {
72
-                caseApplication1.setArbitratMethod(1);  // 更改仲裁方式
73
-                //修改案件状态修改开庭时间
74
-                caseApplication1.setCaseStatus(CaseApplicationConstants.MODIFY_HEARDATE);
75
-                //修改案件状态为待修改开庭时间
76
-//                caseApplication1.setCaseStatus(CaseApplicationConstants.MODIFY_HEARDATE);
77
-                // 新增日志
78
-                CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.MODIFY_HEARDATE, "");
79
-
80
-            } else {
81
-                caseApplication1.setArbitratMethod(2);
82
-                //修改案件状态为待书面审理
83
-                caseApplication1.setCaseStatus(CaseApplicationConstants.PENDING_WRIITEN_HEAR);
84
-                // 新增日志
85
-                CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.PENDING_WRIITEN_HEAR, "");
86
-
87
-            }
88
-        } else if (opinion == 1 ) {
89
-            if (arbitratMethodOriral == 2) {
90
-                //修改案件状态为待书面审理
91
-                caseApplication1.setArbitratMethod(2);
92
-                caseApplication1.setCaseStatus(CaseApplicationConstants.PENDING_WRIITEN_HEAR);
93
-                // 新增日志
94
-                CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.PENDING_WRIITEN_HEAR, "");
95
-
96
-            } else {
97
-                //修改案件状态为待修改开庭时间
98
-                caseApplication1.setArbitratMethod(1);
99
-                caseApplication1.setCaseStatus(CaseApplicationConstants.MODIFY_HEARDATE);
100
-                //修改案件状态为待修改开庭时间
101
-//                caseApplication1.setCaseStatus(CaseApplicationConstants.MODIFY_HEARDATE);
102
-                // 新增日志
103
-                CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.MODIFY_HEARDATE, "");
104
-
105
-            }
106
-        }else if (opinion == 2) {
107
-            if (arbitratMethodNow == 2) {
108
-                //修改案件状态为待书面审理
109
-                caseApplication1.setArbitratMethod(2);
110
-                caseApplication1.setCaseStatus(CaseApplicationConstants.PENDING_WRIITEN_HEAR);
111
-                // 新增日志
112
-                CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.PENDING_WRIITEN_HEAR, "");
113
-
114
-            } else {
115
-                //修改案件状态为待修改开庭时间
116
-                caseApplication1.setArbitratMethod(1);
117
-                caseApplication1.setCaseStatus(CaseApplicationConstants.MODIFY_HEARDATE);
118
-                //修改案件状态为待修改开庭时间
119
-//                caseApplication1.setCaseStatus(CaseApplicationConstants.MODIFY_HEARDATE);
120
-                // 新增日志
121
-                CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.MODIFY_HEARDATE, "");
122
-
123
-            }
124
-        }
125
-        int i = caseApplicationMapper.submitCaseApplication(caseApplication1);
126
-        if (i > 0) {
127
-            String arbitratMethodStr = caseApplication1.getArbitratMethod() == 1 ? "开庭审理" : "书面审理";
128
-            //发送短信通知
129
-            SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
130
-
131
-            CaseAffiliate caseAffiliate = new CaseAffiliate();
132
-            caseAffiliate.setCaseAppliId(caseApplication1.getId());
133
-            List<CaseAffiliate> caseAffiliates = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);            //获取案件关联人信息
134
-            if (caseAffiliates != null && caseAffiliates.size() > 0) {
135
-                for (CaseAffiliate affiliate : caseAffiliates) {
136
-                    request.setTemplateId("1931000");
137
-                    request.setPhone(affiliate.getContactTelphone());
138
-                    // 这个值,要看你的模板中是否预留了占位符,如果没有则不需要设置
139
-                    // 1931000 尊敬的{1}用户,您的{2}仲裁案件,仲裁方式已确定为{3},请知晓,如非本人操作,请忽略本短信。
140
-                    String name = affiliate.getName();
141
-                    request.setTemplateParamSet(new String[]{name, caseNum, arbitratMethodStr});
142
-                    Boolean aBoolean = SmsUtils.sendSms(request);
143
-                    //保存短信发送记录
144
-                    SmsSendRecord smsSendRecord = new SmsSendRecord();
145
-                    smsSendRecord.setCaseId(caseApplication.getId());
146
-                    smsSendRecord.setCaseNum(caseApplication1.getCaseNum());
147
-                    smsSendRecord.setPhone(request.getPhone());
148
-                    smsSendRecord.setSendTime(new Date());
149
-                    String content = "尊敬的" + name + "用户,您的" + caseNum + "仲裁案件,仲裁方式已确定为" + arbitratMethodStr + ",请知晓,如非本人操作,请忽略本短信。";
150
-                    smsSendRecord.setSendContent(content);
151
-                    smsSendRecord.setCreateBy(getUsername());
152
-                    if (aBoolean){
153
-                        smsSendRecord.setSendStatus(1);
154
-                    }else {
155
-                        smsSendRecord.setSendStatus(0);
156
-                    }
157
-                    smsRecordMapper.saveSmsSendRecord(smsSendRecord);
158
-                }
159
-            }
160
-
161
-            return AjaxResult.success("审核成功");
162
-        }
163
-        return AjaxResult.success();
164
-    }
165
-
166
-    @Override
167
-    @Transactional
168
-    public AjaxResult writtenHear(CaseIds caseIds) {
169
-        if (caseIds!=null){
170
-            List<Long> ids = caseIds.getIds();
171
-            for (Long caseId : ids) {
172
-                //查询案件详情
173
-                CaseApplication caseApplication = new CaseApplication();
174
-                caseApplication.setId(caseId);
175
-                CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
176
-                //先判断案件是否已经提交过仲裁结果
177
-                ArbitrateRecord arbitrateRecord = new ArbitrateRecord();
178
-                arbitrateRecord.setCaseAppliId(caseId);
179
-                ArbitrateRecord arbitrateRecord1 = arbitrateRecordMapper.selectArbitrateRecord(arbitrateRecord);
180
-                if (arbitrateRecord1 != null) {
181
-                    int i = arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord);
182
-                    if (i > 0) {
183
-                        //案件日志表里添加数据
184
-                        CaseLogRecord caseLogRecord = new CaseLogRecord();
185
-                        caseLogRecord.setCaseAppliId(caseApplication1.getId());
186
-                        caseLogRecord.setCaseNode(caseApplication1.getCaseStatus());
187
-                        caseLogRecord.setCreateBy(getUsername());
188
-                        caseLogRecordMapper.insertCaseLogRecord(caseLogRecord);
189
-                        // 新增日志
190
-                        CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.GENERATED_ARBITRATION, "");
191
-
192
-                    }
193
-                } else {
194
-                    //提交仲裁结果
195
-                    int i = arbitrateRecordMapper.insertArbitrateRecord(arbitrateRecord);
196
-                    if (i > 0) {
197
-                        //案件日志表里添加数据
198
-                        CaseLogRecord caseLogRecord = new CaseLogRecord();
199
-                        caseLogRecord.setCaseAppliId(caseApplication1.getId());
200
-                        caseLogRecord.setCaseNode(caseApplication1.getCaseStatus());
201
-                        caseLogRecord.setCreateBy(getUsername());
202
-                        caseLogRecordMapper.insertCaseLogRecord(caseLogRecord);
203
-                        // 新增日志
204
-                        CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.GENERATED_ARBITRATION, "");
205
-                    }
206
-                }
207
-                // 生成裁决书
208
-                CaseApplication application = new CaseApplication();
209
-                application.setId(caseId);
210
-                adjudicationService.createDocument(application);
211
-                    //修改案件状态
212
-                    caseApplication1.setCaseStatus(CaseApplicationConstants.VERPRIF_ARBITRATION);
213
-                    int i = caseApplicationMapper.submitCaseApplication(caseApplication1);
214
-
215
-            }
216
-            return AjaxResult.success("审理成功");
217
-        }
218
-        return AjaxResult.error("请检查参数");
219
-    }
220
-
221
-    //生成仲裁文书
222
-    private Boolean generateAward(Long id) {
223
-        try {
224
-            Map<String, Object> datas = new HashMap<>();
225
-            if (id == null) {
226
-                return null;
227
-            }
228
-            //获取案件详细信息
229
-            CaseApplication caseApplication = new CaseApplication();
230
-            caseApplication.setId(id);
231
-            CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
232
-            //生成编码
233
-            String equipmentNo = getNewEquipmentNo();
234
-            datas.put("num", equipmentNo);
235
-            //获取仲裁记录表里的相关信息
236
-            ArbitrateRecord arbitrateRecord = new ArbitrateRecord();
237
-            arbitrateRecord.setCaseAppliId(id);
238
-            ArbitrateRecord arbitrateRecord1 = arbitrateRecordMapper.selectArbitrateRecord(arbitrateRecord);
239
-            //获取案件关联人信息
240
-            CaseAffiliate caseAffiliate = new CaseAffiliate();
241
-            caseAffiliate.setCaseAppliId(id);
242
-            List<CaseAffiliate> caseAffiliates = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
243
-            List<String> nameAgentList = new ArrayList<>();
244
-            if (caseAffiliates != null && caseAffiliates.size() > 0) {
245
-                for (CaseAffiliate affiliate : caseAffiliates) {
246
-                    //获取身份类型
247
-                    int identityType = affiliate.getIdentityType();
248
-                    if (identityType == 1) {    //申请人
249
-                        datas.put("appName", affiliate.getName());
250
-                        datas.put("appAddress", affiliate.getResidenAffili());
251
-                        datas.put("appContactAddress", affiliate.getContactAddress());
252
-                        datas.put("appLegalPerson", affiliate.getCompLegalPerson());
253
-                        datas.put("appLegalPersonTitle", affiliate.getCompLegalperPost());
254
-                        datas.put("appAgentName", affiliate.getNameAgent());
255
-                        datas.put("appAgentTitle", affiliate.getAppliAgentTitle());
256
-                        nameAgentList.add(affiliate.getNameAgent());
257
-                    } else if (identityType == 2) {  //被申请人
258
-                        datas.put("resName", affiliate.getName());
259
-                        datas.put("resAddress", affiliate.getResidenAffili());
260
-                        String responSex = affiliate.getResponSex();
261
-                        if (responSex.equals("0")) {
262
-                            datas.put("resSex", "男");
263
-                        } else if (responSex.equals("1")){
264
-                            datas.put("resSex", "女");
265
-                        }else {
266
-                            datas.put("resSex", "未知");
267
-                        }
268
-                        Date responBirth = affiliate.getResponBirth();
269
-                        if (responBirth != null) {
270
-                            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
271
-                            String responBirthStr = sdf.format(responBirth);
272
-                            datas.put("resDateOfBirth", responBirthStr);
273
-
274
-                        }
275
-
276
-                        datas.put("resContactAddress", affiliate.getContactAddress());
277
-                        nameAgentList.add(affiliate.getNameAgent());
278
-                    }
279
-                }
280
-            }
281
-            Date createTime = caseApplication1.getCreateTime();
282
-            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
283
-            // 将日期格式化为字符串
284
-            String createTimeStr = sdf.format(createTime);
285
-            datas.put("submissionDate", createTimeStr);
286
-            Date registerDate = caseApplication1.getRegisterDate();
287
-            String registerDateStr = sdf.format(registerDate);
288
-            datas.put("acceptDate", registerDateStr);
289
-            //反请求
290
-            Integer adjudicaCounter = caseApplication1.getAdjudicaCounter();
291
-            String counterclaim = "在《2022年版仲裁规则》第十八条第(一)项规定的期限内,被申请人向秘书处提交了" +
292
-                    "《仲裁反请求申请书》及证据材料。仲裁委依据《2022年版仲裁规则》第十八条的规定受理了该仲裁反请求案申请。" +
293
-                    "仲裁反请求案件受理后,秘书处向被申请人发送了仲裁反请求通知书及附件,向申请人发送了仲裁反请求通知书及附件、仲裁反请求申请书及附件。";
294
-            if (adjudicaCounter == null) {
295
-                datas.put("counterclaim", null);
296
-            } else if (adjudicaCounter == 1) {
297
-                datas.put("counterclaim", counterclaim);
298
-            } else {
299
-                datas.put("counterclaim", null);
300
-            }
301
-            //财产保全
302
-            Integer properPreser = caseApplication1.getProperPreser();
303
-            String preservation = "本案受理后,申请人向仲裁委提交了财产保全申请,仲裁委根据《中华人民共和国仲裁法》" +
304
-                    "第二十八条之规定,将该申请提交至法院。";
305
-            if (properPreser == null) {
306
-                datas.put("preservation", null);
307
-            } else if (properPreser == 1) {
308
-                datas.put("preservation", preservation);
309
-            } else {
310
-                datas.put("preservation", null);
311
-            }
312
-            //管辖权异议
313
-            Integer objectiJuris = caseApplication1.getObjectiJuris();
314
-            String jurisdictionalObjection = "本案受理后,被申请人向仲裁委提交了《XX管辖异议申请书》,认为XXXXXX" +
315
-                    ",仲裁委经审理,当庭驳回了被申请人的管辖异议申请,并告知被申请人具体的事实和理由将在裁决书中一并列明。";
316
-            if (objectiJuris == null) {
317
-                datas.put("jurisdictionalObjection", null);
318
-            } else if (objectiJuris == 1) {
319
-                datas.put("jurisdictionalObjection", jurisdictionalObjection);
320
-            } else {
321
-                datas.put("jurisdictionalObjection", null);
322
-            }
323
-            String arbitratorName = caseApplication1.getArbitratorName();
324
-            datas.put("arbitratorName", arbitratorName);
325
-            Integer arbitratMethod = caseApplication1.getArbitratMethod();
326
-            Date hearDate = caseApplication1.getHearDate();
327
-            if (hearDate != null) {
328
-                String hearDateStr = sdf.format(hearDate);
329
-                //线上开庭时
330
-                if (arbitratMethod == 1) {
331
-                    String onLine1 = "仲裁庭审阅了申请人提交的仲裁申请书、证据材料后,于";
332
-                    String onLine2 = "通过仲裁委智慧仲裁平台开庭审理了本案。";
333
-                    datas.put("onLine1", onLine1);
334
-                    datas.put("hearDate", hearDateStr);
335
-                    datas.put("onLine2", onLine2);
336
-                } else {
337
-                    //书面仲裁时
338
-                    String written1 = "仲裁庭审阅了申请人提交的仲裁申请书、证据材料后,于";
339
-                    String written2 = "在仲裁委所在地开庭审理了本案。";
340
-                    datas.put("written1", written1);
341
-                    datas.put("hearDate1", hearDateStr);
342
-                    datas.put("written2", written2);
343
-                }
344
-            }
345
-            Integer isAbsence = caseApplication1.getIsAbsence();
346
-            if (isAbsence == null) {
347
-                datas.put("absent1", null);
348
-                datas.put("absent2", null);
349
-                datas.put("absent3", null);
350
-                datas.put("absent4", null);
351
-                datas.put("absent5", null);
352
-                datas.put("attend1", null);
353
-                datas.put("attend2", null);
354
-                datas.put("attend3", null);
355
-                datas.put("attend4", null);
356
-                datas.put("attend5", null);
357
-                datas.put("attend6", null);
358
-                datas.put("attend7", null);
359
-                datas.put("appAgentName1", null);
360
-                datas.put("appAgentName2", null);
361
-                datas.put("resAgentName", null);
362
-            } else if (isAbsence == 1) {
363
-                //缺席审理
364
-                String absent1 = "申请人的特别授权委托代理人";
365
-                String absent2 = "出席了庭审。被申请人经依法送达开庭通知,无正当理由未出席庭审,故仲裁庭依据" +
366
-                        "《2022年版仲裁规则》第四十条第(二)项的规定,对本案进行了缺席审理。";
367
-                String absent3 = "庭审中,申请人陈述了仲裁请求事项及事实与理由,出示了证据材料并进行了说明," +
368
-                        "发表了意见,回答了仲裁庭的提问,并作了最后陈述。因被申请人缺席庭审,故仲裁庭无法组织调解。";
369
-                String absent4 = "(二/三)当事人提供的证据材料\n" +
370
-                        "申请人为证明其主张的事实和理由,向仲裁庭提交了如下证据材料:";
371
-                String absent5 = "综上,仲裁庭依据《上海仲裁委员会仲裁规则》(2022年7月1日起施行的版本)" +
372
-                        "第四十条第(二)项、第五十一条的规定,缺席裁决如下:";
373
-                datas.put("absent1", absent1);
374
-                datas.put("absent2", absent2);
375
-                datas.put("absent3", absent3);
376
-                datas.put("absent4", absent4);
377
-                datas.put("absent5", absent5);
378
-                datas.put("appAgentName1", nameAgentList.get(0));
379
-            } else {
380
-                //出席审理
381
-                String attend1 = "申请人的特别授权委托代理人";
382
-                String attend2 = "和被申请人本人/的特别授权委托代理人";
383
-                String attend3 = "出席了庭审。";
384
-                String attend4 = "庭审中,申请人陈述了仲裁请求事项及所依据的事实与理由,被申请人进行了答辩;" +
385
-                        "双方当事人均出示了证据材料并对对方的证据材料进行了质证;申请人出示了证据材料," +
386
-                        "被申请人对对方的证据材料进行了质证;双方当事人均回答了仲裁庭的提问,进行了辩论," +
387
-                        "并分别作了最后陈述。双方当事人在仲裁庭的主持下进行了调解,但未能达成调解协议。";
388
-                String attend5 = "(二)被申请人的答辩意见";
389
-                String attend6 = "(二/三)当事人提供的证据材料及对方的质证意见\n" +
390
-                        "申请人为证明其主张的事实和理由,向仲裁庭提交了如下证据材料:";
391
-                String attend7 = "被申请人对上述材料的质证意见为:";
392
-                datas.put("attend1", attend1);
393
-                datas.put("attend2", attend2);
394
-                datas.put("attend3", attend3);
395
-                datas.put("attend4", attend4);
396
-                datas.put("attend5", attend5);
397
-                datas.put("attend6", attend6);
398
-                datas.put("attend7", attend7);
399
-                datas.put("responCrossOpin", caseApplication1.getResponCrossOpin());
400
-                datas.put("appAgentName2", nameAgentList.get(0));
401
-                datas.put("resAgentName", nameAgentList.get(1));
402
-                if (arbitratMethod == 1) {
403
-                    //被申出席+开庭
404
-                    String attend8 = "综上,仲裁庭依据《上海仲裁委员会仲裁规则》(2022年7月1日起施行的版本)" +
405
-                            "第五十一条的规定,裁决如下:";
406
-                    datas.put("attend8", attend8);
407
-                } else {
408
-                    //被申出席+书面
409
-                    String attend9 = "综上,仲裁庭依据《上海仲裁委员会仲裁规则》(2022年7月1日起施行的版本)" +
410
-                            "第五十一条、第五十八条的规定,裁决如下:";
411
-                    datas.put("attend9", attend9);
412
-                }
413
-            }
414
-            datas.put("claims", caseApplication1.getArbitratClaims());
415
-            datas.put("request", caseApplication1.getRequestRule());
416
-            CaseApplication caseApplication2 = caseApplicationService.selectCaseApplication(caseApplication);
417
-            List<CaseAttach> caseAttachList1 = caseApplication2.getCaseAttachList();
418
-            if (caseAttachList1 != null && caseAttachList1.size() > 0) {
419
-                for (CaseAttach caseAttach : caseAttachList1) {
420
-                    if (caseAttach.getAnnexType() == 6) {   //被申请人证据材料
421
-                        String annexName = caseAttach.getAnnexName();
422
-                        boolean isImageFile = Pattern.matches(".*\\.(jpg|png|gif|bmp)$", annexName);
423
-                        if (isImageFile) {
424
-                            String annexPath = "/home/ruoyi" + caseAttach.getAnnexPath();
425
-                            System.out.println("路径是===========" + annexPath);
426
-                            PictureRenderData pictureRenderData = WordUtil
427
-                                    .rebuildImageContent(100, 100, null, annexPath);
428
-                            datas.put("resEvidenceMaterial", pictureRenderData);
429
-                        }
430
-                    } else if (caseAttach.getAnnexType() == 2) {   //申请人证据材料
431
-                        String annexName = caseAttach.getAnnexName();
432
-                        boolean isImageFile = Pattern.matches(".*\\.(jpg|png|gif|bmp)$", annexName);
433
-                        if (isImageFile) {
434
-                            String annexPath = "/home/ruoyi" + caseAttach.getAnnexPath();
435
-                            System.out.println("路径是===========" + annexPath);
436
-                            PictureRenderData pictureRenderData = WordUtil
437
-                                    .rebuildImageContent(100, 100, null, annexPath);
438
-                            //申请人证据材料
439
-                            datas.put("appEvidenceMaterial", pictureRenderData);
440
-                        }
441
-                    }
442
-                }
443
-            }
444
-            datas.put("applicaCrossOpin", "被申请人证据不足,无法说明事实");
445
-            datas.put("factDetermi", "被申请人欠款属实");
446
-            datas.put("arbitrateThink", " 被申请人应按约定还款");
447
-            datas.put("rulingFollows", "被申请人依法偿还申请人欠款");
448
-            LocalDate now = LocalDate.now();
449
-            String year = Integer.toString(now.getYear());
450
-            datas.put("year", year);
451
-            String month = String.format("%02d", now.getMonthValue());
452
-            String day = String.format("%02d", now.getDayOfMonth());
453
-            String modalFilePath = "/data/arbitrate-document/template/新裁决书模板.docx";
454
-            //String modalFilePath = "D:/develop/新裁决书模板.docx";
455
-            String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
456
-            //String saveFolderPath = "D:/data/" + year + "/" + month + "/" + day;
457
-            String fileName = UUID.randomUUID().toString().replace("-", "") + ".docx";
458
-            String saveName = "/profile/upload/" + year + "/" + month + "/" + day + "/" + fileName;
459
-            String resultFilePath = saveFolderPath + "/" + fileName;
460
-            // 创建日期目录
461
-            File saveFolder = new File(saveFolderPath);
462
-            if (!saveFolder.exists()) {
463
-                saveFolder.mkdirs();
464
-            }
465
-            Path sourcePath = new File(modalFilePath).toPath();
466
-            Path destinationPath = new File(resultFilePath).toPath();
467
-            Files.copy(sourcePath, destinationPath, StandardCopyOption.REPLACE_EXISTING);
468
-            String docFilePath = WordUtil.getDocFilePath(datas, modalFilePath, resultFilePath);
469
-            File file = new File(docFilePath);
470
-            if (file.exists()) {
471
-                InputStream in = new FileInputStream(file);
472
-                XWPFDocument xwpfDocument = new XWPFDocument(in);
473
-                WordUtil.changeText(xwpfDocument);
474
-            }
475
-            String savePath = docFilePath.substring(0, docFilePath.indexOf("/upload/") + 8);
476
-            CaseAttach caseAttach = CaseAttach.builder()
477
-                    .caseAppliId(id)
478
-                    .annexName(saveName)
479
-                    .annexPath(savePath)
480
-                    .annexType(3)
481
-                    .build();
482
-            //保存到附件表里,先判断之前有没有,有的话更新,没有的话新增
483
-            CaseAttach caseAttach1 = new CaseAttach();
484
-            caseAttach1.setAnnexType(3);
485
-            caseAttach1.setCaseAppliId(id);
486
-            List<CaseAttach> caseAttachList = caseAttachMapper.getCaseAttachByCaseIdAndType(caseAttach1);
487
-            if (caseAttachList != null && caseAttachList.size() > 0) {
488
-                //之前已经生成过了,更新
489
-                caseAttachMapper.updateCaseAttachBycaseid(caseAttach);
490
-            } else {
491
-                //之前没生成过,新增
492
-                int i = caseAttachMapper.save(caseAttach);
493
-                if (i > 0) {
494
-                    if (arbitrateRecord1 != null) {
495
-                        Integer annexId = caseAttach.getAnnexId();
496
-                        //将附件id保存到仲裁记录表里面
497
-                        arbitrateRecord1.setAnnexId(annexId);
498
-                        arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord1);
499
-                    }
500
-                }
501
-            }
502
-            return Boolean.TRUE;
503
-        } catch (IOException e) {
504
-            return Boolean.FALSE;
505
-        }
506
-    }
507
-
508
-    public String getNewEquipmentNo() {
509
-        Object awardNum = redisCache.getCacheObject("awardNum");
510
-        if (awardNum == null) {
511
-            redisCache.setCacheObject("awardNum", "00001");
512
-            String s = redisCache.getCacheObject("awardNum").toString();
513
-            // 字符串数字解析为整数
514
-            int no = Integer.parseInt(s);
515
-            // 最新设备编号自增1
516
-            int newEquipment = ++no;
517
-            // 将整数格式化为5位数字
518
-            s = String.format("%05d", newEquipment);
519
-            redisCache.setCacheObject("awardNum", s);
520
-            return s;
521
-        } else {
522
-            String s = awardNum.toString();
523
-            // 字符串数字解析为整数
524
-            int no = Integer.parseInt(s);
525
-            // 最新设备编号自增1
526
-            int newEquipment = ++no;
527
-            // 将整数格式化为5位数字
528
-            s = String.format("%05d", newEquipment);
529
-            redisCache.setCacheObject("awardNum", s);
530
-            return s;
531
-        }
532
-    }
533
-}

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

@@ -1,511 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.service.impl;
2
-
3
-import cn.hutool.core.collection.CollectionUtil;
4
-import cn.hutool.core.util.StrUtil;
5
-import com.ruoyi.common.config.RuoYiConfig;
6
-import com.ruoyi.common.constant.CaseApplicationConstants;
7
-import com.ruoyi.common.core.domain.AjaxResult;
8
-import com.ruoyi.common.core.domain.entity.SysRole;
9
-import com.ruoyi.common.core.domain.entity.SysUser;
10
-import com.ruoyi.common.core.domain.model.LoginUser;
11
-import com.ruoyi.common.utils.SecurityUtils;
12
-import com.ruoyi.common.utils.SmsUtils;
13
-import com.ruoyi.common.utils.StringUtils;
14
-import com.ruoyi.common.utils.spring.SpringUtils;
15
-import com.ruoyi.system.mapper.SysUserMapper;
16
-import com.ruoyi.wisdomarbitrate.domain.vo.CaseEvidenceDirectoryVO;
17
-import com.ruoyi.wisdomarbitrate.utils.CaseLogUtils;
18
-import com.ruoyi.common.utils.file.FileUploadUtils;
19
-import com.ruoyi.wisdomarbitrate.domain.*;
20
-import com.ruoyi.wisdomarbitrate.domain.dto.CaseEvidenceDTO;
21
-import com.ruoyi.wisdomarbitrate.domain.vo.CaseDetailVO;
22
-import com.ruoyi.wisdomarbitrate.domain.vo.CaseEvidenceVO;
23
-import com.ruoyi.wisdomarbitrate.mapper.*;
24
-import com.ruoyi.wisdomarbitrate.service.ICaseEvidenceService;
25
-import org.springframework.beans.BeanUtils;
26
-import org.springframework.beans.factory.annotation.Autowired;
27
-import org.springframework.stereotype.Service;
28
-import org.springframework.transaction.annotation.Transactional;
29
-import org.springframework.web.multipart.MultipartFile;
30
-
31
-import java.io.IOException;
32
-import java.util.*;
33
-import java.util.stream.Collectors;
34
-
35
-import static com.ruoyi.common.utils.SecurityUtils.getUsername;
36
-
37
-@Service
38
-public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
39
-    @Autowired
40
-    private CaseEvidenceMapper caseEvidenceMapper;
41
-    @Autowired
42
-    private CaseAffiliateMapper caseAffiliateMapper;
43
-    @Autowired
44
-    private CaseApplicationMapper caseApplicationMapper;
45
-    @Autowired
46
-    private CaseAttachMapper caseAttachMapper;
47
-    @Autowired
48
-    private CaseEvidenceDirectoryMapper caseEvidenceDirectoryMapper;
49
-    @Autowired
50
-    private SysUserMapper sysUserMapper;
51
-    @Autowired
52
-    private SmsRecordMapper smsRecordMapper;
53
-
54
-    @Override
55
-    @Transactional
56
-    public AjaxResult getCaseDetailsById(Long id, String userName) {
57
-        CaseApplication caseApplication = new CaseApplication();
58
-        caseApplication.setId(id);
59
-        CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
60
-        if (caseApplication1 != null) {
61
-            CaseDetailVO caseDetailVO = new CaseDetailVO();
62
-            BeanUtils.copyProperties(caseApplication1, caseDetailVO);
63
-            CaseAffiliate caseAffiliate = new CaseAffiliate();
64
-            caseAffiliate.setCaseAppliId(id);
65
-            List<CaseAffiliate> caseAffiliates = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
66
-            for (CaseAffiliate affiliate : caseAffiliates) {
67
-                if (affiliate.getName() != null) {
68
-                    String name = affiliate.getName();
69
-                    //判断当前登录人和案件关联人姓名是否一致
70
-                    if (name.equals(userName)) {  //一致,将案件关联人的身份类型赋给当前登录人
71
-                        caseDetailVO.setIdentityType(affiliate.getIdentityType());
72
-                    }
73
-                }
74
-                if (affiliate.getIdentityType() == 1) {  //申请人
75
-                    caseDetailVO.setApplicantName(affiliate.getName());
76
-                } else {
77
-                    caseDetailVO.setRespondentName(affiliate.getName());
78
-                }
79
-                //根据案件id查询案件证据材料
80
-                List<CaseAttach> evidenceMaterialList = caseAttachMapper.queryAnnexPathByCaseId(id);
81
-                if (evidenceMaterialList != null && evidenceMaterialList.size() > 0) {
82
-//                    for (CaseAttach caseAttach : evidenceMaterialList) {
83
-//                        //根据附件类型决定返回的路径
84
-//                        Integer annexType = caseAttach.getAnnexType();
85
-//                        if (annexType != 1){
86
-//                            String path = caseAttach.getAnnexName();
87
-//                            String prefix = "/profile";
88
-//                            int startIndex = path.indexOf(prefix);
89
-//                            startIndex += prefix.length();
90
-//                            String extractedPath = "/uploadPath" + path.substring(startIndex);
91
-//                            caseAttach.setAnnexPath(extractedPath);
92
-//                        }else {
93
-//                            String annexPath = caseAttach.getAnnexPath();
94
-//                            String result = annexPath.replace("/home/ruoyi", "");
95
-//                            caseAttach.setAnnexPath(result);
96
-//                        }
97
-//                    }
98
-
99
-                        for (CaseAttach caseAttach : evidenceMaterialList) {
100
-                            String annexName = caseAttach.getAnnexName();
101
-                            String prefix = "/profile";
102
-                            int startIndex = annexName.indexOf(prefix);
103
-                            if(startIndex!=-1) {
104
-                                startIndex += prefix.length();
105
-
106
-                                String annexPath = "/uploadPath" + annexName.substring(startIndex);
107
-                                caseAttach.setAnnexPath(annexPath);
108
-                            }
109
-                            int startIndexnew = annexName.lastIndexOf("/");
110
-                            if (startIndexnew != -1) {
111
-                                String annexNamenew = annexName.substring(startIndexnew + 1);
112
-                                caseAttach.setAnnexName(annexNamenew);
113
-                            }
114
-
115
-
116
-                        }
117
-
118
-                }
119
-                caseDetailVO.setEvidenceMaterialList(evidenceMaterialList);
120
-            }
121
-            return AjaxResult.success(caseDetailVO);
122
-        }
123
-        return null;
124
-    }
125
-
126
-    @Override
127
-    @Transactional
128
-    public AjaxResult uploadEvidence(MultipartFile file, Integer annexType, Long id, String userName, Long userId) {
129
-
130
-        if (file.isEmpty()) {
131
-            return AjaxResult.error("请选择要上传的文件");
132
-        }
133
-        try {
134
-            String filePath = RuoYiConfig.getUploadPath();
135
-            // 上传
136
-            String fileName = FileUploadUtils.upload(filePath, file);
137
-            CaseAttach caseAttach = CaseAttach.builder().caseAppliId(id)
138
-                    .annexName(fileName)
139
-                    .annexPath(filePath)
140
-                    .annexType(annexType)
141
-                    .userId(userId)
142
-                    .userName(userName)
143
-                    .build();
144
-            int count = caseAttachMapper.save(caseAttach);
145
-            if (count > 0 && annexType != null && annexType != 8) {
146
-                if (id != null) {
147
-                    //修改案件状态
148
-                    CaseApplication caseApplication = new CaseApplication();
149
-                    caseApplication.setId(id);
150
-                    caseApplication.setCaseStatus(4);
151
-                    caseApplicationMapper.submitCaseApplication(caseApplication);
152
-                }
153
-            }
154
-                CaseAttach caseAttachselect = new CaseAttach();
155
-                caseAttachselect.setAnnexId(caseAttach.getAnnexId());
156
-            String annexName = caseAttach.getAnnexName();
157
-            if(StrUtil.isNotEmpty(annexName)) {
158
-                int startIndexnew = annexName.lastIndexOf("/");
159
-                if (startIndexnew != -1) {
160
-                    String annexNamenew = annexName.substring(startIndexnew + 1);
161
-                    caseAttach.setAnnexName(annexNamenew);
162
-                }
163
-            }
164
-                caseAttachselect.setAnnexType(caseAttach.getAnnexType());
165
-                return AjaxResult.success("上传成功", caseAttachselect);
166
-        } catch (IOException e) {
167
-            e.printStackTrace();
168
-        }
169
-
170
-        return AjaxResult.error("上传失败");
171
-    }
172
-
173
-
174
-    @Autowired
175
-    IdentityAuthenticationMapper identityAuthenticationMapper;
176
-
177
-    @Override
178
-    public List<CaseEvidenceVO> getCaseListAll(Integer caseStatus) {
179
-        // 是否为超级管理员
180
-        int adMinFlag=0;
181
-        String identityNum = "";
182
-            IdentityAuthentication authentication = new IdentityAuthentication();
183
-            LoginUser loginUser = SecurityUtils.getLoginUser();
184
-            // 查询该用户的角色
185
-            // 查询登录人身份证号
186
-            SysUser sysUser = sysUserMapper.selectUserById(loginUser.getUserId());
187
-            String username = sysUser.getUserName();
188
-            List<SysRole> roles = sysUser.getRoles();
189
-            if(CollectionUtil.isNotEmpty(roles)){
190
-                for (SysRole role : roles) {
191
-                    if(role.getRoleName().equals("超级管理员")
192
-                    ){
193
-                        // 超级管理员可查看所有待案件质证的案件
194
-                        adMinFlag=1;
195
-                        break;
196
-                    }
197
-                }
198
-            }
199
-          if(adMinFlag!=1) {
200
-              authentication.setUserName(username);
201
-              IdentityAuthentication authentication1 = identityAuthenticationMapper.selectIdentityAuthentication(authentication);
202
-              if (authentication1 != null) {
203
-                  identityNum = authentication1.getIdentityNo();
204
-              }
205
-          }
206
-
207
-        List<Integer> caseStatusList = Arrays.asList(caseStatus);
208
-        return getCaseEvidenceVOList(identityNum, caseStatusList, 2);
209
-    }
210
-
211
-    @Override
212
-    public AjaxResult evidenceConfirmation(CaseApplication caseApplication) {
213
-        caseApplication.setCaseStatus(CaseApplicationConstants.PENDING_TRIAL);
214
-        int i = caseApplicationMapper.submitCaseApplication(caseApplication);
215
-        if (i > 0) {
216
-            // 新增日志
217
-            CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.PENDING_TRIAL, "");
218
-
219
-            return AjaxResult.success("证据确认成功");
220
-        }
221
-        return AjaxResult.error("暂无需要确认的证据");
222
-    }
223
-
224
-    @Override
225
-    @Transactional
226
-    public AjaxResult caseCrossexamination(CaseEvidenceDTO caseEvidenceDTO) {
227
-        //查询案件详细信息
228
-        CaseApplication caseApplication = new CaseApplication();
229
-        caseApplication.setId(caseEvidenceDTO.getCaseId());
230
-        CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
231
-        if (caseApplication1 != null) {
232
-            caseApplication1.setAdjudicaCounterReason(caseEvidenceDTO.getAdjudicaCounterReason());
233
-            int caseStatus = caseApplication1.getCaseStatus();
234
-            caseApplication1.setObjectionAddEviden(caseEvidenceDTO.getObjectionAddEviden());
235
-            caseApplication1.setPendingAppointArbotrar(caseEvidenceDTO.getPendingAppointArbotrar());
236
-            caseApplication1.setAdjudicaCounter(caseEvidenceDTO.getAdjudicaCounter());
237
-            caseApplication1.setObjectiJuris(caseEvidenceDTO.getObjectiJuris());
238
-            caseApplication1.setRespondentIsWrittenHear(caseEvidenceDTO.getRespondentIsWrittenHear());
239
-            List<Arbitrator> arbitrators = caseEvidenceDTO.getArbitrators();
240
-            if (arbitrators != null && arbitrators.size() > 0) {
241
-                List<Long> ids = arbitrators.stream().map(Arbitrator::getId).collect(Collectors.toList());
242
-                List<String> arbitratorNames = arbitrators.stream().map(Arbitrator::getArbitratorName).collect(Collectors.toList());
243
-                String idstr = ids.stream().map(Object::toString).collect(Collectors.joining(","));
244
-                String arbitratorNamestr = arbitratorNames.stream().map(Object::toString).collect(Collectors.joining(","));
245
-                caseApplication1.setArbitratorId(idstr);
246
-                caseApplication1.setArbitratorName(arbitratorNamestr);
247
-            }
248
-            //修改案件状态
249
-            caseApplication1.setCaseStatus(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL_SUBMMIT);
250
-
251
-
252
-            int i = caseApplicationMapper.submitCaseApplication(caseApplication1);
253
-            if (i > 0) {
254
-                // 新增日志
255
-                CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL_SUBMMIT, "");
256
-
257
-                return AjaxResult.success("提交成功");
258
-            }
259
-        }
260
-        return null;
261
-    }
262
-
263
-    @Transactional
264
-    @Override
265
-    public AjaxResult batchUpload(MultipartFile[] files, Integer annexType, Long id, String userName, Long userId) {
266
-        List<CaseAttach> successList = new ArrayList<>();
267
-        try {
268
-            String filePath = RuoYiConfig.getUploadPath();
269
-            for (MultipartFile file : files) {
270
-                // 上传
271
-                String fileName = FileUploadUtils.upload(filePath, file);
272
-                CaseAttach caseAttach = CaseAttach.builder().caseAppliId(id)
273
-                        .annexName(fileName)
274
-                        .annexPath(filePath)
275
-                        .annexType(annexType)
276
-                        .userId(userId)
277
-                        .userName(userName)
278
-                        .isBatchUpload(1)
279
-                        .build();
280
-                int count = caseAttachMapper.save(caseAttach);
281
-                if (count > 0 && annexType != null && annexType != 8) {
282
-                    CaseAttach caseAttachselect = new CaseAttach();
283
-                    caseAttachselect.setAnnexId(caseAttach.getAnnexId());
284
-                    caseAttachselect.setAnnexName(caseAttach.getAnnexName());
285
-                    caseAttachselect.setAnnexType(caseAttach.getAnnexType());
286
-                    successList.add(caseAttachselect);
287
-                }
288
-            }
289
-
290
-
291
-        } catch (IOException e) {
292
-            e.printStackTrace();
293
-            return AjaxResult.error("上传失败");
294
-        }
295
-        // 给秘书发送短信
296
-        // 根据caseid查询该案件的法律顾问,根据案件id查申请表,查到申请机构id,然后拿申请机构id查询在哪个人下并且角色要是法律顾问
297
-        CaseAffiliate caseAffiliate = caseAffiliateMapper.selectCaseAffiliateByIdentityType(id, 1);
298
-        if(caseAffiliate!= null && StrUtil.isNotEmpty(caseAffiliate.getApplicationOrganId())){
299
-           List<SysUser> userList= sysUserMapper.selectByDeptIdAndRole(caseAffiliate.getApplicationOrganId(),"法律顾问");
300
-        if(CollectionUtil.isNotEmpty(userList)){
301
-            // 新增短信记录
302
-            SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
303
-            //  1992106	普通短信	修改证据资料通知	尊敬的{1}用户,您的{2}仲裁案件,有新的证据上传,请知晓,如非本人操作,请忽略本短信。
304
-            request.setTemplateId("1992106");
305
-            CaseApplication caseApplication = new CaseApplication();
306
-            caseApplication.setId(id);
307
-            caseApplication = caseApplicationMapper.selectCaseApplication(caseApplication);
308
-            for (SysUser user : userList) {
309
-                request.setPhone(user.getPhonenumber());
310
-                request.setTemplateParamSet(new String[]{user.getNickName(),caseApplication.getCaseNum()});
311
-                Boolean aBoolean = SmsUtils.sendSms(request);
312
-                //保存短信发送记录
313
-                SmsSendRecord smsSendRecord = new SmsSendRecord();
314
-                smsSendRecord.setCaseId(caseAffiliate.getCaseAppliId());
315
-
316
-                smsSendRecord.setCaseNum(caseApplication.getCaseNum());
317
-                smsSendRecord.setPhone(request.getPhone());
318
-                smsSendRecord.setSendTime(new Date());
319
-                String content = "尊敬的" + user.getNickName() + ",您的"+caseApplication.getCaseNum()+"仲裁案件,有新的证据上传,请知晓,如非本人操作,请忽略本短信。";
320
-                smsSendRecord.setSendContent(content);
321
-                smsSendRecord.setCreateBy(getUsername());
322
-                if (aBoolean) {
323
-                    smsSendRecord.setSendStatus(1);
324
-                } else {
325
-                    smsSendRecord.setSendStatus(0);
326
-                }
327
-                smsRecordMapper.saveSmsSendRecord(smsSendRecord);
328
-            }
329
-
330
-        }
331
-        }
332
-
333
-
334
-        return AjaxResult.success("上传成功", successList);
335
-
336
-    }
337
-
338
-    @Override
339
-    public AjaxResult fileList(Long caseAppliId, List<Integer> annexTypeList) {
340
-        CaseApplication caseApplication = new CaseApplication();
341
-        caseApplication.setId(caseAppliId);
342
-        caseApplication.setAnnexTypeList(annexTypeList);
343
-        List<CaseAttach> caseAttachList = caseAttachMapper.queryCaseAttachList(caseApplication);
344
-        if (CollectionUtil.isNotEmpty(caseAttachList)) {
345
-            for (CaseAttach caseAttach : caseAttachList) {
346
-                String annexName = caseAttach.getAnnexName();
347
-                String prefix = "/profile";
348
-                int startIndex = annexName.indexOf(prefix);
349
-                startIndex += prefix.length();
350
-                String annexPath = "/uploadPath" + annexName.substring(startIndex);
351
-                caseAttach.setAnnexPath(annexPath);
352
-                int startIndexnew = annexName.lastIndexOf("/");
353
-                if (startIndexnew != -1) {
354
-                    String annexNamenew = annexName.substring(startIndexnew + 1);
355
-                    caseAttach.setAnnexName(annexNamenew);
356
-                }
357
-            }
358
-            return AjaxResult.success(caseAttachList);
359
-        }
360
-        return null;
361
-    }
362
-
363
-    @Override
364
-    public int deleteFile(List<Integer> fileIds) {
365
-        return caseAttachMapper.deleteByFileIds(fileIds);
366
-    }
367
-
368
-    @Override
369
-    public List<CaseEvidenceDirectoryVO> selectEvidenceTreeList(CaseEvidenceDirectory caseEvidenceDirectory) {
370
-        List<CaseEvidenceDirectory> caseEvidenceDirectorys = SpringUtils.getAopProxy(this).selectCaseEvidenceList(caseEvidenceDirectory);
371
-        return buildCaseEvidenceTreeSelect(caseEvidenceDirectorys);
372
-    }
373
-
374
-    @Override
375
-    public List<CaseEvidenceDirectory> selectCaseEvidenceList(CaseEvidenceDirectory caseEvidenceDirectory) {
376
-        return caseEvidenceDirectoryMapper.selectList(caseEvidenceDirectory);
377
-    }
378
-
379
-    @Override
380
-    public List<CaseEvidenceDirectory> buildCaseEvidenceTree(List<CaseEvidenceDirectory> caseEvidenceDirectorys) {
381
-        List<CaseEvidenceDirectory> returnList = new ArrayList<>();
382
-        List<Long> tempList = caseEvidenceDirectorys.stream().map(CaseEvidenceDirectory::getId).collect(Collectors.toList());
383
-        for (CaseEvidenceDirectory caseEvidenceDirectory : caseEvidenceDirectorys) {
384
-            String annexName = caseEvidenceDirectory.getAnnexName();
385
-            if (annexName!=null){
386
-                String prefix = "/profile";
387
-                int startIndex = annexName.indexOf(prefix);
388
-                startIndex += prefix.length();
389
-                String annexPath = "/uploadPath" + annexName.substring(startIndex);
390
-                caseEvidenceDirectory.setAnnexPath(annexPath);
391
-                int startIndexnew = annexName.lastIndexOf("/");
392
-                if(startIndexnew!=-1){
393
-                    String annexNamenew  = annexName.substring(startIndexnew+1);
394
-                    caseEvidenceDirectory.setAnnexName(annexNamenew);
395
-                }
396
-            }
397
-            // 如果是顶级节点, 遍历该父节点的所有子节点
398
-            if (!tempList.contains(caseEvidenceDirectory.getParentId())) {
399
-                recursionFn(caseEvidenceDirectorys, caseEvidenceDirectory);
400
-                returnList.add(caseEvidenceDirectory);
401
-            }
402
-        }
403
-        if (returnList.isEmpty())
404
-        {
405
-            returnList = caseEvidenceDirectorys;
406
-        }
407
-        return returnList;
408
-    }
409
-
410
-    @Override
411
-    public List<CaseEvidenceDirectoryVO> buildCaseEvidenceTreeSelect(List<CaseEvidenceDirectory> caseEvidenceDirectorys) {
412
-        List<CaseEvidenceDirectory> caseEvidenceDirectories = buildCaseEvidenceTree(caseEvidenceDirectorys);
413
-        return caseEvidenceDirectories.stream().map(CaseEvidenceDirectoryVO::new).collect(Collectors.toList());
414
-    }
415
-
416
-    @Override
417
-    @Transactional
418
-    public AjaxResult uploadRecord(MultipartFile file, Integer annexType, Long id, String username, Long userId) {
419
-        if (file.isEmpty()) {
420
-            return AjaxResult.error("请选择要上传的文件");
421
-        }
422
-        try {
423
-            String filePath = RuoYiConfig.getUploadPath();
424
-            // 上传
425
-            String fileName = FileUploadUtils.upload(filePath, file);
426
-            CaseAttach caseAttach = CaseAttach.builder().caseAppliId(id)
427
-                    .annexName(fileName)
428
-                    .annexPath(filePath)
429
-                    .annexType(annexType)
430
-                    .userId(userId)
431
-                    .userName(username)
432
-                    .build();
433
-
434
-            CaseApplication caseApplicationsel = new CaseApplication();
435
-            caseApplicationsel.setId(id);
436
-            caseApplicationsel.setAnnexType(7);
437
-            List<CaseAttach> caseAttachs = caseAttachMapper.queryCaseAttachList(caseApplicationsel);
438
-            if(caseAttachs!=null&&caseAttachs.size()>0){
439
-                caseAttachMapper.deleteCaseAttachByCasedIdAndType(id,7);
440
-                int count = caseAttachMapper.save(caseAttach);
441
-            }else {
442
-                int count = caseAttachMapper.save(caseAttach);
443
-            }
444
-
445
-            return AjaxResult.success("上传成功");
446
-        } catch (IOException e) {
447
-            e.printStackTrace();
448
-        }
449
-
450
-        return AjaxResult.error("上传失败");
451
-
452
-    }
453
-
454
-    /**
455
-     * 递归列表
456
-     */
457
-    private void recursionFn(List<CaseEvidenceDirectory> list, CaseEvidenceDirectory t) {
458
-        // 得到子节点列表
459
-        List<CaseEvidenceDirectory> childList = getChildList(list, t);
460
-        t.setChildren(childList);
461
-        for (CaseEvidenceDirectory tChild : childList) {
462
-            if (hasChild(list, tChild)) {
463
-                recursionFn(list, tChild);
464
-            }
465
-        }
466
-    }
467
-
468
-    /**
469
-     * 得到子节点列表
470
-     */
471
-    private List<CaseEvidenceDirectory> getChildList(List<CaseEvidenceDirectory> list, CaseEvidenceDirectory t) {
472
-        List<CaseEvidenceDirectory> tlist = new ArrayList<>();
473
-        Iterator<CaseEvidenceDirectory> it = list.iterator();
474
-        while (it.hasNext()) {
475
-            CaseEvidenceDirectory n = it.next();
476
-            if (StringUtils.isNotNull(n.getParentId()) && n.getParentId().longValue() == t.getId().longValue()) {
477
-                tlist.add(n);
478
-            }
479
-        }
480
-        return tlist;
481
-    }
482
-
483
-    /**
484
-     * 判断是否有子节点
485
-     */
486
-    private boolean hasChild(List<CaseEvidenceDirectory> list, CaseEvidenceDirectory t) {
487
-        return getChildList(list, t).size() > 0;
488
-    }
489
-
490
-    private List<CaseEvidenceVO> getCaseEvidenceVOList(String identityNum, List<Integer> caseStatusList, Integer identityType) {
491
-        List<CaseEvidenceVO> caseListByRespondent = caseEvidenceMapper.getCaseListByRespondent(identityNum, caseStatusList, identityType);
492
-       // todo 返回房间号和开庭时间
493
-        if (caseListByRespondent != null && caseListByRespondent.size() > 0) {
494
-            for (CaseEvidenceVO caseEvidenceVO : caseListByRespondent) {
495
-                //根据案件id查询姓名
496
-                CaseAffiliate caseAffiliate = new CaseAffiliate();
497
-                caseAffiliate.setCaseAppliId(caseEvidenceVO.getId());
498
-                List<CaseAffiliate> caseAffiliates = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
499
-                for (CaseAffiliate affiliate : caseAffiliates) {
500
-                    if (affiliate.getIdentityType() == 1) {  //申请人
501
-                        caseEvidenceVO.setApplicantName(affiliate.getName());
502
-                    } else {
503
-                        caseEvidenceVO.setRespondentName(affiliate.getName());
504
-                    }
505
-                }
506
-            }
507
-            return caseListByRespondent;
508
-        }
509
-        return null;
510
-    }
511
-}

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

@@ -1,328 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.service.impl;
2
-
3
-import cn.hutool.core.util.IdcardUtil;
4
-import cn.hutool.core.util.StrUtil;
5
-import com.ruoyi.common.core.domain.entity.SysUser;
6
-import com.ruoyi.common.utils.SpringUtil;
7
-import com.ruoyi.system.mapper.SysUserMapper;
8
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
9
-import lombok.AllArgsConstructor;
10
-import lombok.Data;
11
-import lombok.NoArgsConstructor;
12
-
13
-import java.math.BigDecimal;
14
-import java.util.Date;
15
-import java.util.Map;
16
-import java.util.regex.Pattern;
17
-
18
-/**
19
- * @author wangqiong
20
- * @description excel导入校验
21
- * @date 2023-12-11 11:45
22
- */
23
-@Data
24
-@NoArgsConstructor
25
-@AllArgsConstructor
26
-public class CaseImportValid {
27
-    private CaseApplication caseApplication;
28
-    private Map<String, Long> deptMap;
29
-    // 手机号正则
30
-    private static final Pattern TELEPHONE_REGX = Pattern.compile("^1(3\\d|4[5-9]|5[0-35-9]|6[2567]|7[0-8]|8\\d|9[0-35-9])\\d{8}$");
31
-    // 邮箱正则
32
-    private static final Pattern EMAIL_PATTERN = Pattern.compile("^[a-zA-Z0-9_+&*-]+(?:\\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,7}$");
33
-    private static SysUserMapper sysUserMapper= SpringUtil.getBean(SysUserMapper.class);
34
-
35
-    /**
36
-     * 导入校验
37
-     *
38
-     * @param caseApplication
39
-     * @param
40
-     */
41
-    public void importValid(CaseApplication caseApplication, Map<String, Long> deptMap) {
42
-        StringBuilder failureMsg = new StringBuilder();
43
-        caseApplication.setErrorMsg(failureMsg);
44
-        // 校验基本字段
45
-        validBaseColumn(caseApplication, failureMsg);
46
-        // 校验申请人信息
47
-        validApplicationColumn(caseApplication, failureMsg);
48
-        // 校验申请人代理信息
49
-        validApplicationAgentColumn(caseApplication, failureMsg, deptMap);
50
-        // 校验被申请人信息
51
-        validDebtorApplicationColumn(caseApplication, failureMsg);
52
-        // 校验被申请人代理信息
53
-        validDebtorApplicationAgentColumn(caseApplication, failureMsg);
54
-    }
55
-
56
-    /**
57
-     * 校验被申请人代理信息
58
-     *
59
-     * @param caseApplication
60
-     * @param failureMsg
61
-     */
62
-    private void validDebtorApplicationAgentColumn(CaseApplication caseApplication, StringBuilder failureMsg) {
63
-        if (StrUtil.isEmpty(caseApplication.getDebtorNameAgent())) {
64
-            failureMsg.append("【被申请人主体信息-代理人姓名】字段不能为空;");
65
-        } else if (caseApplication.getDebtorNameAgent().length() > 50) {
66
-            failureMsg.append("【被申请人主体信息-代理人姓名】字段超出指定长度,最大长度为50;");
67
-        }
68
-        if (StrUtil.isEmpty(caseApplication.getDebtorIdentityNumAgent())) {
69
-            failureMsg.append("【被申请人主体信息-代理人身份证号】字段不能为空;");
70
-        } else if (!IdcardUtil.isValidCard((caseApplication.getDebtorIdentityNumAgent()))) {
71
-            failureMsg.append("【被申请人主体信息-代理人身份证号】不合法;");
72
-        }
73
-        String debtorContactTelphoneAgent = caseApplication.getDebtorContactTelphoneAgent();
74
-        if (StrUtil.isEmpty(debtorContactTelphoneAgent)) {
75
-            failureMsg.append("【被申请人主体信息-代理人联系电话】字段不能为空;");
76
-        } else if (!TELEPHONE_REGX.matcher(debtorContactTelphoneAgent).matches()) {
77
-            failureMsg.append("【被申请人主体信息-代理人联系电话】字段不合法;");
78
-        }
79
-        if (StrUtil.isEmpty(caseApplication.getDebtorContactAddressAgent())) {
80
-            failureMsg.append("【被申请人主体信息-代理人联系地址】字段不能为空;");
81
-        } else if (caseApplication.getDebtorContactAddressAgent().length() > 50) {
82
-            failureMsg.append("【被申请人主体信息-代理人联系地址】字段超出指定长度,最大长度为50;");
83
-        }
84
-    }
85
-
86
-    /**
87
-     * 校验被申请人信息
88
-     *
89
-     * @param caseApplication
90
-     * @param failureMsg
91
-     */
92
-    private void validDebtorApplicationColumn(CaseApplication caseApplication, StringBuilder failureMsg) {
93
-        if (StrUtil.isEmpty(caseApplication.getDebtorName())) {
94
-            failureMsg.append("【被申请人主体信息-申请人姓名】字段不能为空;");
95
-        } else if (caseApplication.getDebtorName().length() > 50) {
96
-            failureMsg.append("【被申请人主体信息-申请人姓名】字段超出指定长度,最大长度为50;");
97
-        }
98
-        if (StrUtil.isEmpty(caseApplication.getDebtorIdentityNum())) {
99
-            failureMsg.append("【被申请人主体信息-身份证号】字段不能为空;");
100
-        } else if (!IdcardUtil.isValidCard(caseApplication.getDebtorIdentityNum())) {
101
-            failureMsg.append("【被申请人主体信息-身份证号】不合法;");
102
-        }
103
-        String debtorContactTelphone = caseApplication.getDebtorContactTelphone();
104
-        if (StrUtil.isEmpty(debtorContactTelphone)) {
105
-            failureMsg.append("【被申请人主体信息-联系电话】字段不能为空;");
106
-        } else if (!TELEPHONE_REGX.matcher(debtorContactTelphone).matches()) {
107
-            failureMsg.append("【被申请人主体信息-联系电话】字段不合法;");
108
-        }
109
-        if (StrUtil.isEmpty(caseApplication.getDebtorContactAddress())) {
110
-            failureMsg.append("【被申请人主体信息-联系地址】字段不能为空;");
111
-        } else if (caseApplication.getDebtorContactAddress().length() > 50) {
112
-            failureMsg.append("【被申请人主体信息-联系地址】字段超出指定长度,最大长度为50;");
113
-        }
114
-        String debtorWorkTelphone = caseApplication.getDebtorWorkTelphone();
115
-        if (StrUtil.isEmpty(debtorWorkTelphone)) {
116
-            failureMsg.append("【被申请人主体信息-单位电话】字段不能为空;");
117
-        } else if (!TELEPHONE_REGX.matcher(debtorWorkTelphone).matches()) {
118
-            failureMsg.append("【被申请人主体信息-单位电话】字段不合法;");
119
-        }
120
-        if (StrUtil.isEmpty(caseApplication.getDebtorWorkAddress())) {
121
-            failureMsg.append("【被申请人主体信息-单位地址】字段不能为空;");
122
-        } else if (caseApplication.getDebtorWorkAddress().length() > 50) {
123
-            failureMsg.append("【被申请人主体信息-单位地址】字段超出指定长度,最大长度为50;");
124
-        }
125
-        if (StrUtil.isEmpty(caseApplication.getResponSex())) {
126
-            failureMsg.append("【被申请人主体信息-性别】字段不能为空;");
127
-        } else if (caseApplication.getResponSex().length() > 1) {
128
-            failureMsg.append("【被申请人主体信息-性别】字段超出指定长度,最大长度为1;");
129
-        }
130
-        if (caseApplication.getResponBirth() == null) {
131
-            failureMsg.append("【被申请人主体信息-出生年月日】字段不合法;");
132
-        } else if (caseApplication.getResponBirth().after(new Date())) {
133
-            failureMsg.append("【被申请人主体信息-出生年月日】字段不合法,不能超过当前日期;");
134
-        }
135
-        if (StrUtil.isEmpty(caseApplication.getDebtorEmail())) {
136
-            failureMsg.append("【被申请人主体信息-邮箱】字段不能为空;");
137
-        } else if (!EMAIL_PATTERN.matcher(caseApplication.getDebtorEmail()).matches()) {
138
-
139
-            failureMsg.append("【被申请人主体信息-邮箱】字段不合法;");
140
-        }
141
-    }
142
-
143
-    /**
144
-     * 校验申请人代理信息
145
-     *
146
-     * @param caseApplication
147
-     * @param failureMsg
148
-     */
149
-    private void validApplicationAgentColumn(CaseApplication caseApplication, StringBuilder failureMsg, Map<String, Long> deptMap) {
150
-        if (StrUtil.isEmpty(caseApplication.getNameAgent())) {
151
-            failureMsg.append("【申请人主体信息-代理人姓名】字段不能为空;");
152
-        } else if (caseApplication.getNameAgent().length() > 50) {
153
-            failureMsg.append("【申请人主体信息-代理人姓名】字段超出指定长度,最大长度为50;");
154
-        }
155
-        if (StrUtil.isEmpty(caseApplication.getIdentityNumAgent())) {
156
-            failureMsg.append("【申请人主体信息-代理人身份证号】字段不能为空;");
157
-        } else if (!IdcardUtil.isValidCard(caseApplication.getIdentityNumAgent())) {
158
-            failureMsg.append("【申请人主体信息-代理人身份证号】不合法;");
159
-        }
160
-        validAgentInfo(caseApplication, failureMsg, deptMap);
161
-        String contactTelphoneAgent = caseApplication.getContactTelphoneAgent();
162
-        if (StrUtil.isEmpty(contactTelphoneAgent)) {
163
-            failureMsg.append("【申请人主体信息-代理人联系电话】字段不能为空;");
164
-        } else if (!TELEPHONE_REGX.matcher(contactTelphoneAgent).matches()) {
165
-            failureMsg.append("【申请人主体信息-代理人联系电话】字段不合法;");
166
-        }
167
-        if (StrUtil.isEmpty(caseApplication.getContactAddressAgent())) {
168
-            failureMsg.append("【申请人主体信息-代理人联系地址】字段不能为空;");
169
-        } else if (caseApplication.getContactAddressAgent().length() > 50) {
170
-            failureMsg.append("【申请人主体信息-代理人联系地址】字段超出指定长度,最大长度为50;");
171
-        }
172
-    }
173
-
174
-    /**
175
-     * 校验代理人与组织机构关系
176
-     *
177
-     * @param caseApplication
178
-     * @param failureMsg
179
-     * @return
180
-     */
181
-    private void validAgentInfo(CaseApplication caseApplication, StringBuilder failureMsg, Map<String, Long> deptMap) {
182
-        // 申请机构与代理人都不为空,校验代理人与组织机构关系(代理人必须在该部门下)
183
-        if (StrUtil.isNotEmpty(caseApplication.getName()) && StrUtil.isNotEmpty(caseApplication.getNameAgent())) {
184
-            String applicationOrganId = "";
185
-            // 申请机构已经存在
186
-            if (deptMap.containsKey(caseApplication.getName())) {
187
-                applicationOrganId = String.valueOf(deptMap.get(caseApplication.getName()));
188
-            }
189
-            // 根据代理人身份证去用户表查询
190
-            SysUser agentUser = sysUserMapper.selectUserByIdCard(caseApplication.getIdentityNumAgent());
191
-            // 代理人的部门和申请机构不匹配
192
-            if (null != agentUser && null != agentUser.getDeptId() && !String.valueOf(agentUser.getDeptId()).equals(applicationOrganId)) {
193
-//                return "该申请代理人已在"+agentUser.getDeptName()+"申请机构下存在,请检查填写信息是否正确";
194
-                if (null != agentUser.getDept() && StrUtil.isNotEmpty(agentUser.getDept().getDeptName())) {
195
-                    failureMsg.append("该申请代理人已在【").append(agentUser.getDept().getDeptName()).append("】申请机构下存在,请检查填写信息是否正确");
196
-                } else {
197
-                    failureMsg.append("该申请代理人已存在,与申请机构不匹配,请检查填写信息是否正确");
198
-                }
199
-            }
200
-
201
-        }
202
-    }
203
-
204
-    /**
205
-     * 校验申请人主题信息
206
-     *
207
-     * @param caseApplication
208
-     * @param failureMsg
209
-     */
210
-    private void validApplicationColumn(CaseApplication caseApplication, StringBuilder failureMsg) {
211
-        if (StrUtil.isEmpty(caseApplication.getName())) {
212
-            failureMsg.append("【申请人主体信息-申请人(机构)】字段不能为空;");
213
-        } else if (caseApplication.getName().length() > 20) {
214
-            failureMsg.append("【申请人主体信息-申请人(机构)】字段超出指定长度,最大长度为20;");
215
-        }
216
-        if (StrUtil.isNotEmpty(caseApplication.getIdentityNum()) && caseApplication.getIdentityNum().length() > 50) {
217
-            failureMsg.append("【申请人主体信息-代码】字段超出指定长度,最大长度为50;");
218
-        }
219
-        String contactTelphone = caseApplication.getContactTelphone();
220
-        if (StrUtil.isEmpty(contactTelphone)) {
221
-            failureMsg.append("【申请人主体信息-联系电话】字段不能为空;");
222
-        } else if (!TELEPHONE_REGX.matcher(contactTelphone).matches()) {
223
-            failureMsg.append("【申请人主体信息-联系电话】字段不合法;");
224
-        }
225
-        if (StrUtil.isEmpty(caseApplication.getContactAddress())) {
226
-            failureMsg.append("【申请人主体信息-联系地址】字段不能为空;");
227
-        } else if (caseApplication.getName().length() > 50) {
228
-            failureMsg.append("【申请人主体信息-联系地址】字段超出指定长度,最大长度为50;");
229
-        }
230
-        String workTelphone = caseApplication.getWorkTelphone();
231
-        if (StrUtil.isEmpty(workTelphone)) {
232
-            failureMsg.append("【申请人主体信息-单位电话】字段不能为空;");
233
-        } else if (!TELEPHONE_REGX.matcher(workTelphone).matches()) {
234
-            failureMsg.append("【申请人主体信息-单位电话】字段不合法;");
235
-        }
236
-        if (StrUtil.isEmpty(caseApplication.getWorkAddress())) {
237
-            failureMsg.append("【申请人主体信息-单位地址】字段不能为空;");
238
-        } else if (caseApplication.getWorkAddress().length() > 50) {
239
-            failureMsg.append("【申请人主体信息-单位地址】字段超出指定长度,最大长度为50;");
240
-        }
241
-        if (StrUtil.isEmpty(caseApplication.getEmail())) {
242
-            failureMsg.append("【申请人主体信息-邮箱】字段不能为空;");
243
-        } else if (!EMAIL_PATTERN.matcher(caseApplication.getEmail()).matches()) {
244
-
245
-            failureMsg.append("【申请人主体信息-邮箱】字段不合法;");
246
-        }
247
-    }
248
-
249
-    /**
250
-     * 校验基本字段
251
-     *
252
-     * @param caseApplication
253
-     * @param failureMsg
254
-     */
255
-    private void validBaseColumn(CaseApplication caseApplication, StringBuilder failureMsg) {
256
-        if (StrUtil.isEmpty(caseApplication.getCaseName())) {
257
-            failureMsg.append("【案件名称】字段不能为空;");
258
-        } else if (caseApplication.getCaseName().length() > 50) {
259
-            failureMsg.append("【案件名称】字段超出指定长度,最大长度为50;");
260
-        }
261
-        BigDecimal caseSubjectAmount = caseApplication.getCaseSubjectAmount();
262
-        if (null == caseSubjectAmount) {
263
-            failureMsg.append("【案件标的】字段不合法;");
264
-        } else {
265
-            if (caseSubjectAmount.compareTo(new BigDecimal("0")) < 0 || caseSubjectAmount.compareTo(new BigDecimal("99999999.99")) > 0) {
266
-                failureMsg.append("【案件标的】字段超出范围,范围为[0,100000000);");
267
-            }
268
-            if (caseSubjectAmount.scale() > 2) {
269
-                failureMsg.append("【案件标的】字段超出指定精度(10^-2);");
270
-            }
271
-        }
272
-        if (caseApplication.getLoanStartDate() == null) {
273
-            failureMsg.append("【借款开始日期】字段不合法;");
274
-        }
275
-        if (caseApplication.getLoanEndDate() == null) {
276
-            failureMsg.append("【借款结束日期】字段不合法;");
277
-        }
278
-        if (caseApplication.getLoanStartDate() != null && caseApplication.getLoanEndDate() != null && caseApplication.getLoanStartDate().after(caseApplication.getLoanEndDate())) {
279
-            failureMsg.append("【借款结束日期】不能早于【借款开始日期】;");
280
-        }
281
-        if (StrUtil.isEmpty(caseApplication.getContractNumber())) {
282
-            failureMsg.append("【合同编号】字段不能为空;");
283
-        } else if (caseApplication.getContractNumber().length() > 50) {
284
-            failureMsg.append("【合同编号】字段超出指定长度,最大长度为50;");
285
-        }
286
-        BigDecimal claimPrinciOwed = caseApplication.getClaimPrinciOwed();
287
-        if (null == claimPrinciOwed) {
288
-            failureMsg.append("【申请人主张欠本金】字段不合法;");
289
-        } else {
290
-            if (claimPrinciOwed.compareTo(new BigDecimal("0")) < 0 || claimPrinciOwed.compareTo(new BigDecimal("99999999.99")) > 0) {
291
-                failureMsg.append("【申请人主张欠本金】字段超出范围,范围为[0,100000000);");
292
-            }
293
-            if (claimPrinciOwed.scale() > 2) {
294
-                failureMsg.append("【申请人主张欠本金】字段超出指定精度(10^-2);");
295
-            }
296
-        }
297
-        BigDecimal claimInterestOwed = caseApplication.getClaimInterestOwed();
298
-        if (null == claimInterestOwed) {
299
-            failureMsg.append("【申请人主张欠利息】字段不合法;");
300
-        } else {
301
-            if (claimInterestOwed.compareTo(new BigDecimal("0")) < 0 || claimInterestOwed.compareTo(new BigDecimal("99999999.99")) > 0) {
302
-                failureMsg.append("【申请人主张欠利息】字段超出范围,范围为[0,100000000);");
303
-            }
304
-            if (claimInterestOwed.scale() > 2) {
305
-                failureMsg.append("【申请人主张欠利息】字段超出指定精度(10^-2);");
306
-            }
307
-        }
308
-        BigDecimal claimLiquidDamag = caseApplication.getClaimLiquidDamag();
309
-        if (null == claimLiquidDamag) {
310
-            failureMsg.append("【申请人主张违约金】字段不合法;");
311
-        } else {
312
-            if (claimLiquidDamag.compareTo(new BigDecimal("0")) < 0 || claimLiquidDamag.compareTo(new BigDecimal("99999999.99")) > 0) {
313
-                failureMsg.append("【申请人主张违约金】字段超出范围,范围为[0,100000000);");
314
-            }
315
-            if (claimLiquidDamag.scale() > 2) {
316
-                failureMsg.append("【申请人主张违约金】字段超出指定精度(10^-2);");
317
-            }
318
-        }
319
-        if (StrUtil.isEmpty(caseApplication.getArbitratClaims())) {
320
-            failureMsg.append("【申请人仲裁请求及事实和理由】字段不能为空;");
321
-        } else if (caseApplication.getArbitratClaims().length() > 10000) {
322
-            failureMsg.append("【申请人仲裁请求及事实和理由】字段超出指定长度,最大长度为10000;");
323
-        }
324
-        if (StrUtil.isNotEmpty(caseApplication.getArbitratClaims()) && caseApplication.getArbitratClaims().length() > 10000) {
325
-            failureMsg.append("【申请人请求仲裁庭裁决】字段超出指定长度,最大长度为10000;");
326
-        }
327
-    }
328
-}

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

@@ -1,491 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.service.impl;
2
-
3
-
4
-import cn.hutool.core.collection.CollectionUtil;
5
-import com.ruoyi.ElegentPay;
6
-import com.ruoyi.common.constant.CaseApplicationConstants;
7
-import com.ruoyi.common.constant.HttpStatus;
8
-import com.ruoyi.common.core.domain.AjaxResult;
9
-import com.ruoyi.common.core.domain.model.LoginUser;
10
-import com.ruoyi.common.exception.ServiceException;
11
-import com.ruoyi.common.utils.SecurityUtils;
12
-import com.ruoyi.common.utils.StringUtils;
13
-import com.ruoyi.wisdomarbitrate.domain.*;
14
-import com.ruoyi.wisdomarbitrate.domain.dto.CaseConfirmPayDTO;
15
-import com.ruoyi.wisdomarbitrate.domain.vo.CasePayListVO;
16
-import com.ruoyi.wisdomarbitrate.mapper.*;
17
-import com.ruoyi.wisdomarbitrate.service.ICaseApplicationService;
18
-import com.ruoyi.wisdomarbitrate.utils.CaseLogUtils;
19
-import com.ruoyi.common.utils.SmsUtils;
20
-import com.ruoyi.dto.PayRequest;
21
-import com.ruoyi.dto.PayResponse;
22
-import com.ruoyi.wisdomarbitrate.domain.dto.CasePayDTO;
23
-import com.ruoyi.wisdomarbitrate.service.ICasePaymentService;
24
-import org.springframework.beans.BeanUtils;
25
-import org.springframework.beans.factory.annotation.Autowired;
26
-import org.springframework.stereotype.Service;
27
-import org.springframework.transaction.annotation.Transactional;
28
-
29
-import java.math.BigDecimal;
30
-import java.util.ArrayList;
31
-import java.util.Date;
32
-import java.util.List;
33
-import java.util.stream.Collectors;
34
-
35
-import static com.ruoyi.common.utils.SecurityUtils.getUsername;
36
-
37
-@Service
38
-public class CasePaymentServiceImpl implements ICasePaymentService {
39
-    private final ElegentPay elegentPay;
40
-    private final CaseApplicationMapper caseApplicationMapper;
41
-    private final CasePaymentRecordMapper casePaymentRecordMapper;
42
-    private final CaseAffiliateMapper caseAffiliateMapper;
43
-    @Autowired
44
-    private CaseAttachMapper caseAttachMapper;
45
-    @Autowired
46
-    private SmsRecordMapper smsRecordMapper;
47
-
48
-    @Autowired
49
-    public CasePaymentServiceImpl(ElegentPay elegentPay
50
-            , CaseApplicationMapper caseApplicationMapper
51
-            , CasePaymentRecordMapper casePaymentRecordMapper
52
-            , CaseAffiliateMapper caseAffiliateMapper
53
-    ) {
54
-        this.elegentPay = elegentPay;
55
-        this.caseApplicationMapper = caseApplicationMapper;
56
-        this.casePaymentRecordMapper = casePaymentRecordMapper;
57
-        this.caseAffiliateMapper = caseAffiliateMapper;
58
-    }
59
-
60
-    @Autowired
61
-    private ICaseApplicationService caseApplicationService;
62
-
63
-    @Override
64
-    @Transactional
65
-    public AjaxResult casePay(CasePayDTO casePayDTO) {
66
-        PayRequest payRequest = new PayRequest();
67
-        payRequest.setBody("案件缴费");
68
-        payRequest.setOrderSn(System.currentTimeMillis() + "");
69
-        payRequest.setTotalFee(casePayDTO.getTotalFee());
70
-        PayResponse response = elegentPay.requestPay(payRequest, casePayDTO.getTradeType(), casePayDTO.getPlatform());
71
-        if (response.getCode_url() == null) {
72
-            return AjaxResult.error();
73
-        }
74
-        List<Long> caseIds = casePayDTO.getCaseIds();
75
-        if (CollectionUtil.isEmpty(caseIds)) {
76
-            return AjaxResult.error("请检查参数是否有误");
77
-        }
78
-        for (Long caseId : caseIds) {
79
-            //缴费记录表里新增数据
80
-            CasePaymentRecord casePaymentRecord = new CasePaymentRecord();
81
-            casePaymentRecord.setCaseId(caseId);
82
-            casePaymentRecord.setOrderNumber(payRequest.getOrderSn());
83
-            casePaymentRecord.setPaymentStatus(0);
84
-            casePaymentRecord.setCreateTime(new Date());
85
-            int count = casePaymentRecordMapper.saveRecord(casePaymentRecord);
86
-            if (count < 1) {
87
-                return AjaxResult.error("请检查参数是否有误");
88
-            }
89
-        }
90
-        return AjaxResult.success(response);
91
-    }
92
-
93
-    @Transactional
94
-    public AjaxResult callback(String orderNumber) {
95
-        //查询记录
96
-        List<CasePaymentRecord> casePaymentRecords = casePaymentRecordMapper.queryRecord(orderNumber);
97
-        if(casePaymentRecords!=null&&casePaymentRecords.size()>0){
98
-            for (CasePaymentRecord casePaymentRecord:casePaymentRecords){
99
-                Long caseId = casePaymentRecord.getCaseId();
100
-                //更改记录表里的支付状态和支付时间
101
-                casePaymentRecord.setPaymentStatus(1);
102
-                casePaymentRecord.setPaymentTime(new Date());
103
-                casePaymentRecord.setUpdateTime(new Date());
104
-                casePaymentRecordMapper.update(casePaymentRecord);
105
-            }
106
-        }else {
107
-            return AjaxResult.error("未查询到相关记录");
108
-        }
109
-        return AjaxResult.success("支付成功");
110
-    }
111
-
112
-    @Override
113
-    @Transactional
114
-    public AjaxResult confirmPayment( List<Long> ids) {
115
-        for (Long id : ids) {
116
-            CaseApplication caseApplication = new CaseApplication();
117
-            caseApplication.setId(id);
118
-            caseApplication.setCaseStatus(CaseApplicationConstants.CASE_CROSSEXAMI);
119
-            caseApplicationMapper.submitCaseApplication(caseApplication);
120
-            //发送短信通知
121
-            SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
122
-            CaseAffiliate caseAffiliate = new CaseAffiliate();
123
-            caseAffiliate.setCaseAppliId(caseApplication.getId());
124
-            List<CaseAffiliate> caseAffiliates = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);            //获取案件关联人信息
125
-            if (caseAffiliates != null && caseAffiliates.size() > 0) {
126
-                for (CaseAffiliate affiliate : caseAffiliates) {
127
-                    //获取身份类型
128
-                    int identityType = affiliate.getIdentityType();
129
-                    //查询案件详细信息
130
-                    CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
131
-                    if (caseApplication1 == null) {
132
-                       continue;
133
-                    }
134
-                    String caseName = "仲裁"; //这里案件名称表里未定义,暂时写死
135
-                    String caseNum = caseApplication1.getCaseNum();
136
-                    if (identityType == 1) {    //申请人
137
-                        request.setPhone(affiliate.getContactTelphone());
138
-                        request.setTemplateId("1928003"); //传入申请人模板id
139
-                        // 这个值,要看你的模板中是否预留了占位符,如果没有则不需要设置
140
-                        // 模板id:1928003 普通短信 案件受理通知
141
-                        String name = affiliate.getName();
142
-                        request.setTemplateParamSet(new String[]{name, caseName, caseNum});
143
-                        Boolean aBoolean = SmsUtils.sendSms(request);
144
-                        //保存短信发送记录
145
-                        SmsSendRecord smsSendRecord = new SmsSendRecord();
146
-                        smsSendRecord.setCaseId(caseApplication.getId());
147
-                        smsSendRecord.setCaseNum(caseNum);
148
-                        smsSendRecord.setPhone(request.getPhone());
149
-                        smsSendRecord.setSendTime(new Date());
150
-                        String content = "尊敬的" + name + "用户,您的" + caseName + "案件" + caseNum + "已成功受理。";
151
-                        smsSendRecord.setSendContent(content);
152
-                        smsSendRecord.setCreateBy(getUsername());
153
-                        if (aBoolean) {
154
-                            smsSendRecord.setSendStatus(1);
155
-                        } else {
156
-                            smsSendRecord.setSendStatus(0);
157
-                        }
158
-                        smsRecordMapper.saveSmsSendRecord(smsSendRecord);
159
-                    } else {       //被申请人
160
-
161
-                        request.setPhone(affiliate.getContactTelphone());
162
-                        request.setTemplateId("1952840");
163
-                        // 1952840 尊敬的{1}用户,您的{2}案件{3}已成功受理,请点击链接:https://miniapp-3gpama6l759911ef-1321289474.tcloudbaseapp.com/jump-mp.html 选择是否应诉。如非本人操作,请忽略本短信
164
-                        String name = affiliate.getName();
165
-                        request.setTemplateParamSet(new String[]{name, caseName, caseNum});
166
-                        Boolean aBoolean = SmsUtils.sendSms(request);
167
-                        //保存短信发送记录
168
-                        SmsSendRecord smsSendRecord = new SmsSendRecord();
169
-                        smsSendRecord.setCaseId(caseApplication.getId());
170
-                        smsSendRecord.setCaseNum(caseNum);
171
-                        smsSendRecord.setPhone(request.getPhone());
172
-                        smsSendRecord.setSendTime(new Date());
173
-                        String content = "尊敬的" + name + "用户,您的" + caseName + "案件" + caseNum + "已成功受理,请点击链接:https://miniapp-3gpama6l759911ef-1321289474.tcloudbaseapp.com/jump-mp.html 选择是否应诉。如非本人操作,请忽略本短信";
174
-                        smsSendRecord.setSendContent(content);
175
-                        smsSendRecord.setCreateBy(getUsername());
176
-                        if (aBoolean) {
177
-                            smsSendRecord.setSendStatus(1);
178
-                        } else {
179
-                            smsSendRecord.setSendStatus(0);
180
-                        }
181
-                        smsRecordMapper.saveSmsSendRecord(smsSendRecord);
182
-                    }
183
-                }
184
-                //更改记录表里的支付状态和支付时间
185
-                CasePaymentRecord casePaymentRecord = new CasePaymentRecord();
186
-                casePaymentRecord.setPaymentStatus(1);
187
-                casePaymentRecord.setPaymentTime(new Date());
188
-                casePaymentRecord.setUpdateTime(new Date());
189
-                casePaymentRecordMapper.update(casePaymentRecord);
190
-                // 新增日志
191
-                CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CASE_CROSSEXAMI, "");
192
-            }
193
-        }
194
-
195
-        return AjaxResult.success();
196
-    }
197
-
198
-    @Transactional
199
-    @Override
200
-    public AjaxResult confirmPay(CaseConfirmPayDTO payDTO) {
201
-        List<Long> caseIds = payDTO.getCaseIds();
202
-        if (caseIds == null || caseIds.size() == 0) {
203
-            return AjaxResult.error("案件id参数有误");
204
-        }
205
-        if (payDTO.getPayType() != null) {
206
-            // 修改支付方式
207
-            caseApplicationMapper.updatePayType(payDTO);
208
-        }
209
-        for (Long caseId : caseIds) {
210
-            if (CollectionUtil.isNotEmpty(payDTO.getPayOrderList())) {
211
-                for (CaseAttach caseAttach : payDTO.getPayOrderList()) {
212
-                    caseAttach.setCaseAppliId(caseId);
213
-                    caseAttachMapper.updateCaseAttach(caseAttach);
214
-                }
215
-            }
216
-            // 修改节点状态
217
-            //根据案件id查询案件信息
218
-            CaseApplication caseApplication = new CaseApplication();
219
-            caseApplication.setId(caseId);
220
-            CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
221
-            caseApplication1.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT_CONFIRM);
222
-            //修改案件状态
223
-            int i = caseApplicationMapper.submitCaseApplication(caseApplication1);
224
-            if (i > 0) {
225
-                // 修改支付状态
226
-                CasePaymentRecord paymentRecord = new CasePaymentRecord();
227
-                paymentRecord.setPayType(payDTO.getPayType());
228
-                paymentRecord.setCaseId(caseId);
229
-                paymentRecord.setPaymentStatus(1);
230
-                casePaymentRecordMapper.saveRecord(paymentRecord);
231
-                // 新增日志
232
-                CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.PENDING_PAYMENT_CONFIRM, "");
233
-            }
234
-        }
235
-
236
-        return AjaxResult.success("确认缴费成功");
237
-
238
-    }
239
-
240
-    @Override
241
-    public AjaxResult casePayList(CasePayDTO casePayDTO) {
242
-        //参数校验
243
-        List<Long> caseIds = casePayDTO.getCaseIds();
244
-        if (caseIds == null || caseIds.size() == 0) {
245
-            return null;
246
-        }
247
-        BigDecimal totalCost = new BigDecimal(0);
248
-        BigDecimal sum = totalCost;
249
-        CasePayListVO listVO = new CasePayListVO();
250
-        listVO.setCaseTotal(caseIds.size());
251
-        List<CaseApplicationPay> caseApplicationList = new ArrayList<>();
252
-        for (Long caseId : caseIds) {
253
-            CaseApplication caseApplication = new CaseApplication();
254
-            CaseApplicationPay caseApplicationPay = new CaseApplicationPay();
255
-            caseApplication.setId(caseId);
256
-            CaseApplication caseApplication1 = caseApplicationService.selectCaseApplication(caseApplication);
257
-            BigDecimal feePayable = caseApplication1.getFeePayable();
258
-            sum = sum.add(feePayable);
259
-            listVO.setTotalFee(sum);
260
-            caseApplicationPay.setCaseAppName(caseApplication1.getApplicantName());
261
-            caseApplicationPay.setCaseResName(caseApplication1.getRespondentName());
262
-            caseApplicationPay.setCaseNum(caseApplication1.getCaseNum());
263
-            caseApplicationPay.setCaseStatus(caseApplication1.getCaseStatus());
264
-            caseApplicationPay.setCaseSubjectAmount(caseApplication1.getCaseSubjectAmount());
265
-            caseApplicationPay.setFeePayable(caseApplication1.getFeePayable());
266
-            caseApplicationList.add(caseApplicationPay);
267
-            listVO.setCaseApplicationList(caseApplicationList);
268
-        }
269
-
270
-        if (sum.compareTo(BigDecimal.ZERO) == 0) {
271
-            return AjaxResult.error("没有可支付的费用");
272
-        }
273
-        return AjaxResult.success(listVO);
274
-    }
275
-
276
-    @Override
277
-    @Transactional
278
-    public AjaxResult confirmPayBatch(CasePayDTO payDTO) {
279
-
280
-        String batchNumber = payDTO.getBatchNumber();
281
-        CaseApplication caseApplicationsel = new CaseApplication();
282
-        caseApplicationsel.setBatchNumber(Integer.parseInt(batchNumber));
283
-        caseApplicationsel.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT);
284
-        List<CaseApplication> caseApplications = caseApplicationMapper.listCaseApplicationByBatchNumber(caseApplicationsel);
285
-        List<Long> caseIds = caseApplications.stream().map(CaseApplication::getId).collect(Collectors.toList());
286
-        if(caseApplications!=null&&caseApplications.size()>0){
287
-            if (payDTO.getPayType() != null) {
288
-                payDTO.setCaseIds(caseIds);
289
-                // 修改支付方式
290
-                CaseConfirmPayDTO caseConfirmPayDTO = new CaseConfirmPayDTO();
291
-                BeanUtils.copyProperties(payDTO, caseConfirmPayDTO);
292
-                caseApplicationMapper.updatePayType(caseConfirmPayDTO);
293
-            }
294
-            for (Long caseId : caseIds) {
295
-                if (CollectionUtil.isNotEmpty(payDTO.getPayOrderList())) {
296
-                    for (CaseAttach caseAttach : payDTO.getPayOrderList()) {
297
-                        caseAttach.setCaseAppliId(caseId);
298
-                        caseAttachMapper.updateCaseAttach(caseAttach);
299
-                    }
300
-                }
301
-
302
-                // 修改节点状态
303
-                //根据案件id查询案件信息
304
-                CaseApplication caseApplication = new CaseApplication();
305
-                caseApplication.setId(caseId);
306
-                CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
307
-                caseApplication1.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT_CONFIRM);
308
-                //修改案件状态
309
-                int i = caseApplicationMapper.submitCaseApplication(caseApplication1);
310
-                if (i > 0) {
311
-                    // 修改支付状态
312
-                    CasePaymentRecord paymentRecord = new CasePaymentRecord();
313
-                    paymentRecord.setPayType(payDTO.getPayType());
314
-                    paymentRecord.setCaseId(caseId);
315
-                    paymentRecord.setPaymentStatus(1);
316
-                    casePaymentRecordMapper.saveRecord(paymentRecord);
317
-                    // 新增日志
318
-                    CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.PENDING_PAYMENT_CONFIRM, "");
319
-                }
320
-
321
-            }
322
-
323
-        }else{
324
-            throw new ServiceException("这个批号没有批量缴费的案件");
325
-        }
326
-
327
-        return AjaxResult.success("确认缴费成功");
328
-    }
329
-
330
-    @Override
331
-    public AjaxResult casePayListBatch(CasePayDTO casePayDTO) {
332
-        String batchNumber = casePayDTO.getBatchNumber();
333
-        CaseApplication caseApplicationsel = new CaseApplication();
334
-        caseApplicationsel.setBatchNumber(Integer.parseInt(batchNumber));
335
-//        caseApplicationsel.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT);
336
-        List<CaseApplication> caseApplications = caseApplicationMapper.listCaseApplicationByBatchNumber(caseApplicationsel);
337
-        CasePayListVO listVO = new CasePayListVO();
338
-        BigDecimal sum = new BigDecimal(0);
339
-        if(caseApplications!=null&&caseApplications.size()>0){
340
-            for(CaseApplication caseApplication:caseApplications){
341
-                BigDecimal feePayable = caseApplication.getFeePayable();
342
-                sum = sum.add(feePayable);
343
-            }
344
-            listVO.setTotalFee(sum);
345
-        }
346
-        if (sum.compareTo(BigDecimal.ZERO) == 0) {
347
-            return AjaxResult.error("没有可支付的费用");
348
-        }
349
-        return AjaxResult.success(listVO);
350
-    }
351
-
352
-    @Override
353
-    @Transactional
354
-    public AjaxResult confirmPaymentBatch(String batchNumber) {
355
-        CaseApplication caseApplicationsel = new CaseApplication();
356
-        caseApplicationsel.setBatchNumber(Integer.parseInt(batchNumber));
357
-        caseApplicationsel.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT_CONFIRM);
358
-        List<CaseApplication> caseApplications = caseApplicationMapper.listCaseApplicationByBatchNumber(caseApplicationsel);
359
-
360
-        if (caseApplications != null && caseApplications.size() > 0) {
361
-            List<Long> caseIds = caseApplications.stream().map(CaseApplication::getId).collect(Collectors.toList());
362
-            for (Long caseId : caseIds) {
363
-                CaseApplication caseApplication = new CaseApplication();
364
-                caseApplication.setId(caseId);
365
-                caseApplication.setCaseStatus(CaseApplicationConstants.CASE_CROSSEXAMI);
366
-                caseApplicationMapper.submitCaseApplication(caseApplication);
367
-                //发送短信通知
368
-                SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
369
-                CaseAffiliate caseAffiliate = new CaseAffiliate();
370
-                caseAffiliate.setCaseAppliId(caseApplication.getId());
371
-                List<CaseAffiliate> caseAffiliates = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);            //获取案件关联人信息
372
-                if (caseAffiliates != null && caseAffiliates.size() > 0) {
373
-                    for (CaseAffiliate affiliate : caseAffiliates) {
374
-                        //获取身份类型
375
-                        int identityType = affiliate.getIdentityType();
376
-                        //查询案件详细信息
377
-                        CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
378
-                        if (caseApplication1 == null) {
379
-                            continue;
380
-                        }
381
-                        String caseName = "仲裁"; //这里案件名称表里未定义,暂时写死
382
-                        String caseNum = caseApplication1.getCaseNum();
383
-                        if (identityType == 1) {    //申请人
384
-                            request.setPhone(affiliate.getContactTelphone());
385
-                            request.setTemplateId("1928003"); //传入申请人模板id
386
-                            // 这个值,要看你的模板中是否预留了占位符,如果没有则不需要设置
387
-                            // 模板id:1928003 普通短信 案件受理通知
388
-                            String name = affiliate.getName();
389
-                            request.setTemplateParamSet(new String[]{name, caseName, caseNum});
390
-                            Boolean aBoolean = SmsUtils.sendSms(request);
391
-                            //保存短信发送记录
392
-                            SmsSendRecord smsSendRecord = new SmsSendRecord();
393
-                            smsSendRecord.setCaseId(caseApplication.getId());
394
-                            smsSendRecord.setCaseNum(caseNum);
395
-                            smsSendRecord.setPhone(request.getPhone());
396
-                            smsSendRecord.setSendTime(new Date());
397
-                            String content = "尊敬的" + name + "用户,您的" + caseName + "案件" + caseNum + "已成功受理。";
398
-                            smsSendRecord.setSendContent(content);
399
-                            smsSendRecord.setCreateBy(getUsername());
400
-                            if (aBoolean) {
401
-                                smsSendRecord.setSendStatus(1);
402
-                            } else {
403
-                                smsSendRecord.setSendStatus(0);
404
-                            }
405
-                            smsRecordMapper.saveSmsSendRecord(smsSendRecord);
406
-                        } else {       //被申请人
407
-
408
-                            request.setPhone(affiliate.getContactTelphone());
409
-                            request.setTemplateId("1952840");
410
-                            // 1952840 尊敬的{1}用户,您的{2}案件{3}已成功受理,请点击链接:https://miniapp-3gpama6l759911ef-1321289474.tcloudbaseapp.com/jump-mp.html 选择是否应诉。如非本人操作,请忽略本短信
411
-                            String name = affiliate.getName();
412
-                            request.setTemplateParamSet(new String[]{name, caseName, caseNum});
413
-                            Boolean aBoolean = SmsUtils.sendSms(request);
414
-                            //保存短信发送记录
415
-                            SmsSendRecord smsSendRecord = new SmsSendRecord();
416
-                            smsSendRecord.setCaseId(caseApplication.getId());
417
-                            smsSendRecord.setCaseNum(caseNum);
418
-                            smsSendRecord.setPhone(request.getPhone());
419
-                            smsSendRecord.setSendTime(new Date());
420
-                            String content = "尊敬的" + name + "用户,您的" + caseName + "案件" + caseNum + "已成功受理,请点击链接:https://miniapp-3gpama6l759911ef-1321289474.tcloudbaseapp.com/jump-mp.html 选择是否应诉。如非本人操作,请忽略本短信";
421
-                            smsSendRecord.setSendContent(content);
422
-                            smsSendRecord.setCreateBy(getUsername());
423
-                            if (aBoolean) {
424
-                                smsSendRecord.setSendStatus(1);
425
-                            } else {
426
-                                smsSendRecord.setSendStatus(0);
427
-                            }
428
-                            smsRecordMapper.saveSmsSendRecord(smsSendRecord);
429
-                        }
430
-                    }
431
-                    //更改记录表里的支付状态和支付时间
432
-                    CasePaymentRecord casePaymentRecord = new CasePaymentRecord();
433
-                    casePaymentRecord.setPaymentStatus(1);
434
-                    casePaymentRecord.setCaseId(caseId);
435
-                    casePaymentRecord.setPaymentTime(new Date());
436
-                    casePaymentRecord.setUpdateTime(new Date());
437
-                    casePaymentRecordMapper.update(casePaymentRecord);
438
-                    // 新增日志
439
-                    CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CASE_CROSSEXAMI, "");
440
-
441
-
442
-                }
443
-
444
-            }
445
-        }else{
446
-            throw new ServiceException("这个批号没有批量缴费确认的案件");
447
-        }
448
-        return AjaxResult.success();
449
-    }
450
-
451
-    @Override
452
-    @Transactional
453
-    public AjaxResult casePayBatch(CasePayDTO casePayDTO) {
454
-        PayRequest payRequest = new PayRequest();
455
-        payRequest.setBody("案件缴费");
456
-        payRequest.setOrderSn(System.currentTimeMillis() + "");
457
-        payRequest.setTotalFee(casePayDTO.getTotalFee());
458
-        PayResponse response = elegentPay.requestPay(payRequest, casePayDTO.getTradeType(), casePayDTO.getPlatform());
459
-        if (response.getCode_url() == null) {
460
-            return AjaxResult.error();
461
-        }
462
-        String batchNumber = casePayDTO.getBatchNumber();
463
-        if(StringUtils.isEmpty(batchNumber) ){
464
-            return AjaxResult.error("请检查参数是否有误");
465
-        }
466
-        CaseApplication caseApplicationsel = new CaseApplication();
467
-        caseApplicationsel.setBatchNumber(Integer.parseInt(batchNumber));
468
-        caseApplicationsel.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT);
469
-        List<CaseApplication> caseApplications = caseApplicationMapper.listCaseApplicationByBatchNumber(caseApplicationsel);
470
-        if(caseApplications!=null&&caseApplications.size()>0){
471
-            List<Long> caseIds = caseApplications.stream().map(CaseApplication::getId).collect(Collectors.toList());
472
-            for (Long caseId : caseIds) {
473
-                //缴费记录表里新增数据
474
-                CasePaymentRecord casePaymentRecord = new CasePaymentRecord();
475
-                casePaymentRecord.setCaseId(caseId);
476
-                casePaymentRecord.setOrderNumber(payRequest.getOrderSn());
477
-                casePaymentRecord.setPaymentStatus(0);
478
-                casePaymentRecord.setCreateTime(new Date());
479
-                int count = casePaymentRecordMapper.saveRecord(casePaymentRecord);
480
-                if (count < 1) {
481
-                    return AjaxResult.error();
482
-                }
483
-            }
484
-
485
-        }
486
-
487
-        return AjaxResult.success(response);
488
-    }
489
-
490
-
491
-}

+ 0
- 1035
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseZipImportImpl.java
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


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

@@ -1,485 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.service.impl;
2
-
3
-import cn.hutool.core.collection.CollectionUtil;
4
-import cn.hutool.core.util.StrUtil;
5
-import cn.hutool.http.HttpUtil;
6
-import com.alibaba.fastjson.JSON;
7
-import com.alibaba.fastjson.JSONArray;
8
-import com.alibaba.fastjson.JSONObject;
9
-import com.ruoyi.common.config.RuoYiConfig;
10
-import com.ruoyi.common.constant.CacheConstants;
11
-import com.ruoyi.common.core.domain.AjaxResult;
12
-import com.ruoyi.common.core.domain.entity.SysRole;
13
-import com.ruoyi.common.core.domain.entity.SysUser;
14
-import com.ruoyi.common.core.domain.model.LoginUser;
15
-import com.ruoyi.common.core.redis.RedisCache;
16
-import com.ruoyi.common.utils.PdfUtils;
17
-import com.ruoyi.common.utils.SecurityUtils;
18
-import com.ruoyi.common.utils.SmsUtils;
19
-import com.ruoyi.common.utils.StringUtils;
20
-import com.ruoyi.common.utils.file.FileUploadUtils;
21
-import com.ruoyi.common.utils.spring.SpringUtils;
22
-import com.ruoyi.system.mapper.SysRoleMapper;
23
-import com.ruoyi.system.mapper.SysUserMapper;
24
-import com.ruoyi.system.mapper.SysUserRoleMapper;
25
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
26
-import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
27
-import com.ruoyi.wisdomarbitrate.domain.IdentityAuthentication;
28
-import com.ruoyi.wisdomarbitrate.domain.vo.ReservedConferenceVO;
29
-import com.ruoyi.wisdomarbitrate.domain.vo.WeChatUserVO;
30
-import com.ruoyi.wisdomarbitrate.mapper.CaseApplicationMapper;
31
-import com.ruoyi.wisdomarbitrate.mapper.CaseAttachMapper;
32
-import com.ruoyi.wisdomarbitrate.mapper.IdentityAuthenticationMapper;
33
-import com.ruoyi.wisdomarbitrate.mapper.WeChatUserMapper;
34
-import com.ruoyi.wisdomarbitrate.service.VideoService;
35
-import com.ruoyi.wisdomarbitrate.service.WeChatUserService;
36
-import com.tencentcloudapi.common.Credential;
37
-import com.tencentcloudapi.common.exception.TencentCloudSDKException;
38
-import com.tencentcloudapi.common.profile.ClientProfile;
39
-import com.tencentcloudapi.common.profile.HttpProfile;
40
-import com.tencentcloudapi.trtc.v20190722.TrtcClient;
41
-import com.tencentcloudapi.trtc.v20190722.models.*;
42
-import com.tencentcloudapi.vod.v20180717.VodClient;
43
-import com.tencentcloudapi.vod.v20180717.models.DescribeMediaInfosRequest;
44
-import com.tencentcloudapi.vod.v20180717.models.DescribeMediaInfosResponse;
45
-import com.tencentyun.TLSSigAPIv2;
46
-import lombok.extern.slf4j.Slf4j;
47
-import org.springframework.beans.factory.annotation.Autowired;
48
-import org.springframework.beans.factory.annotation.Value;
49
-import org.springframework.stereotype.Service;
50
-import org.springframework.transaction.annotation.Transactional;
51
-import org.springframework.util.ResourceUtils;
52
-
53
-import javax.crypto.Mac;
54
-import javax.crypto.spec.SecretKeySpec;
55
-import javax.servlet.http.HttpServletRequest;
56
-import java.io.File;
57
-import java.io.IOException;
58
-import java.nio.file.Paths;
59
-import java.text.SimpleDateFormat;
60
-import java.util.*;
61
-import java.util.concurrent.ExecutorService;
62
-import java.util.concurrent.Executors;
63
-import java.util.concurrent.TimeUnit;
64
-
65
-import static com.ruoyi.common.core.domain.AjaxResult.success;
66
-import static com.ruoyi.common.utils.file.FileUploadUtils.getAbsoluteFile;
67
-import static com.ruoyi.common.utils.file.FileUploadUtils.getPathFileName;
68
-
69
-/**
70
- * @author wangqiong
71
- * @description 视频录制
72
- * @date 2023-10-26 11:45
73
- */
74
-@Service
75
-@Slf4j
76
-public class VideoServiceImpl implements VideoService {
77
-    // 腾讯云即时通信sdkAppId
78
-    @Value("${imConfig.sdkAppId}")
79
-    private long sdkAppId;
80
-    // 腾讯云即时通信密钥
81
-    @Value("${imConfig.sdkSecretKey}")
82
-    private String sdkSecretKey;
83
-    // 腾讯云个人账户secretId
84
-    @Value("${imConfig.secretId}")
85
-    private String secretId;
86
-    // 腾讯云个人账户密钥
87
-    @Value("${imConfig.secretKey}")
88
-    private String secretKey;
89
-    @Autowired
90
-    private CaseApplicationMapper caseApplicationMapper;
91
-    @Autowired
92
-    private CaseAttachMapper caseAttachMapper;
93
-    @Autowired
94
-    private SysRoleMapper roleMapper;
95
-
96
-    /**
97
-     *  功能:第三方回调sign校验
98
-     *     参数:
99
-     *     key:控制台配置的密钥key
100
-     *     body:腾讯云回调返回的body体
101
-     *      sign:腾讯云回调返回的签名值sign
102
-     *     返回值:
103
-     *      Status:OK 表示校验通过,FAIL 表示校验失败,具体原因参考Info
104
-     *      Info:成功/失败信息
105
-     * @param body
106
-     * @param request
107
-     * @throws Exception
108
-     */
109
-    @Override
110
-    public void videoRollBack(String body, HttpServletRequest request)  {
111
-        String key = "key";
112
-        String sdkAppId = request.getHeader("SdkAppId");
113
-        String sign = request.getHeader("Sign");
114
-     //   String resultSign = getResultSign(key,body);
115
-    //    log.info("resultSign:"+resultSign);
116
-    //    if (resultSign.equals(sign)) {
117
-            JSONObject jsonObject = (JSONObject) JSON.parse(body);
118
-            Integer eventType = jsonObject.getInteger("EventType"); // 事件类型
119
-            String eventInfo = jsonObject.getString("EventInfo"); // 事件信息
120
-            JSONObject jsonObject1 = (JSONObject) JSON.parse(eventInfo);
121
-        String roomId = jsonObject1.getString("RoomId");
122
-        String taskId = jsonObject1.getString("TaskId"); // 任务ID
123
-            String payload = jsonObject1.getString("Payload"); // 根据不同事件类型定义不同
124
-            JSONObject jsonObject2 = (JSONObject) JSON.parse(payload);
125
-            String tencentVod = jsonObject2.getString("TencentVod"); // 点播平台信息
126
-            JSONObject jsonObject3 = (JSONObject) JSON.parse(tencentVod);
127
-        // 录制视频上传成功
128
-            if (eventType == 311) {
129
-                // 点播平台的唯一 ID
130
-                String fileId = jsonObject3.getString("FileId");
131
-                // 点播平台的播放地址
132
-                String videoUrl = jsonObject3.getString("VideoUrl");
133
-                // 主辅流标识,main 代表主流(摄像头),aux 代表辅流(屏幕分享),mix 代表混流录制
134
-                String mediaId = jsonObject3.getString("MediaId");
135
-                // 建立相关的数据库用来存储音视频录制地址并和相关的业务ID绑定,用于后续下载
136
-                try {
137
-                    downloadImage(fileId,videoUrl,roomId);
138
-
139
-                } catch (IOException e) {
140
-                    throw new RuntimeException(e);
141
-                }
142
-            }
143
-
144
-    }
145
-
146
-    @Override
147
-    public AjaxResult bindCaseId(Long caseId, String roomId) {
148
-        caseApplicationMapper .bindCaseId(caseId,roomId);
149
-        return success();
150
-    }
151
-
152
-    @Override
153
-    public AjaxResult videoList(Long caseId) {
154
-        CaseApplication caseApplication = new CaseApplication();
155
-        caseApplication.setId(caseId);
156
-        caseApplication.setAnnexType(9);
157
-        List<CaseAttach> caseAttachList = caseAttachMapper.queryCaseAttachList(caseApplication);
158
-        if(CollectionUtil.isEmpty(caseAttachList)){
159
-            return success();
160
-        }
161
-        for (CaseAttach caseAttach : caseAttachList) {
162
-            String annexName = caseAttach.getAnnexName();
163
-            String prefix = "/profile";
164
-            int startIndex = annexName.indexOf(prefix);
165
-            startIndex += prefix.length();
166
-            String annexPath = "/uploadPath" + annexName.substring(startIndex);
167
-            caseAttach.setAnnexPath(annexPath);
168
-            int startIndexnew = annexName.lastIndexOf("/");
169
-            if (startIndexnew != -1) {
170
-                String annexNamenew = annexName.substring(startIndexnew + 1);
171
-                caseAttach.setAnnexName(annexNamenew);
172
-            }
173
-        }
174
-        return  success(caseAttachList);
175
-    }
176
-
177
-    /**
178
-     * 开启腾讯云录制
179
-     * @param roomId
180
-     * @return
181
-     */
182
-    @Override
183
-    public AjaxResult openCloudRecording(long caseId,long roomId) {
184
-        try {
185
-            String userId="recorder_"+roomId;
186
-
187
-            Credential cred = new Credential(secretId, secretKey);
188
-
189
-            // 实例化一个http选项,可选的,没有特殊需求可以跳过
190
-            HttpProfile httpProfile = new HttpProfile();
191
-            httpProfile.setEndpoint("trtc.tencentcloudapi.com");
192
-            // 实例化一个client选项,可选的,没有特殊需求可以跳过
193
-            ClientProfile clientProfile = new ClientProfile();
194
-            clientProfile.setHttpProfile(httpProfile);
195
-            // 实例化要请求产品的client对象,clientProfile是可选的
196
-            TrtcClient client = new TrtcClient(cred, "ap-beijing", clientProfile);
197
-
198
-            // 实例化一个请求对象,每个接口都会对应一个request对象
199
-            CreateCloudRecordingRequest req = new CreateCloudRecordingRequest();
200
-            req.setSdkAppId(sdkAppId); // SdkAppId – TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和录制的房间所对应的SdkAppId相同
201
-            req.setRoomId(String.valueOf(roomId)); // RoomId – TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),录制的TRTC房间所对应的RoomId
202
-            req.setRoomIdType(1L);
203
-            /**
204
-             *  录制机器人用于进入TRTC房间拉流的[UserId](https://cloud.tencent.com/document/product/647/46351#userid),
205
-             *  注意这个UserId不能与其他TRTC房间内的主播或者其他录制任务等已经使用的UserId重复,建议可以把房间ID作为userId的标识的一部分,
206
-             *  即录制机器人进入房间的userid应保证独立且唯一
207
-             */
208
-            req.setUserId(userId);
209
-
210
-            TLSSigAPIv2 api = new TLSSigAPIv2(sdkAppId, sdkSecretKey);
211
-            String userSign = api.genUserSig(userId, 60 * 60 * 10);
212
-            req.setUserSig(userSign); // 录制机器人用于进入TRTC房间拉流的用户签名,当前 UserId 对应的验证签名,相当于登录密码
213
-            RecordParams recordParams = new RecordParams();
214
-            // 混流录制
215
-            recordParams.setMaxIdleTime(60L*5); // 5分钟内房间里面没有主播,自动停止录制
216
-            recordParams.setStreamType(0L); // 0:录制音频+视频流(默认); 1:仅录制音频流; 2:仅录制视频流
217
-            recordParams.setRecordMode(2L); // 1:单流录制,分别录制房间的订阅UserId的音频和视频,将录制文件上传至云存储; 2:混流录制,将房间内订阅UserId的音视频混录成一个音视频文件,将录制文件上传至云存储;
218
-            recordParams.setOutputFormat(0L); // 0:(默认)输出文件为hls格式。1:输出文件格式为hls+mp4。2:输出文件格式为hls+aac
219
-            MixLayoutParams mixLayoutParams = new MixLayoutParams();
220
-            // 	布局模式: 1:悬浮布局;2:屏幕分享布局;3:九宫格布局(默认);4:自定义布局;
221
-            mixLayoutParams.setMixLayoutMode(3L);
222
-            req.setMixLayoutParams(mixLayoutParams);
223
-
224
-            StorageParams storageParams1 = new StorageParams();
225
-            CloudVod cloudVod = new CloudVod();
226
-            TencentVod tencentVod = new TencentVod();
227
-            tencentVod.setSubAppId(1304001529L);
228
-            // 录制的文件永久保存
229
-            tencentVod.setExpireTime(0L);
230
-            // 录制文件名拼接前缀
231
-            tencentVod.setUserDefineRecordId(caseId+"");
232
-            cloudVod.setTencentVod(tencentVod); // 腾讯云点播相关参数。
233
-            storageParams1.setCloudVod(cloudVod); // 必填】腾讯云云点播的账号信息,目前仅支持存储至腾讯云点播VOD。
234
-            req.setRecordParams(recordParams); // 云端录制控制参数
235
-            req.setStorageParams(storageParams1); // 云端录制文件上传到云存储的参数(目前只支持使用腾讯云点播作为存储)
236
-            // 返回的resp是一个CreateCloudRecordingResponse的实例,与请求对象对应
237
-            CreateCloudRecordingResponse resp = client.CreateCloudRecording(req);
238
-
239
-            return success((JSONObject) JSON.toJSON(resp));
240
-        } catch (TencentCloudSDKException e) {
241
-            return AjaxResult.error(e.toString());
242
-        }
243
-    }
244
-
245
-    @Override
246
-    public AjaxResult closeDeleteCloudRecording(String taskId) {
247
-
248
-        try {
249
-            if (taskId != null) {
250
-                taskId = taskId.replaceAll(" ", "+");
251
-            }
252
-            // 实例化一个认证对象,入参需要传入腾讯云账户 SecretId 和 SecretKey,此处还需注意密钥对的保密
253
-            // 代码泄露可能会导致 SecretId 和 SecretKey 泄露,并威胁账号下所有资源的安全性。以下代码示例仅供参考,建议采用更安全的方式来使用密钥,请参见:https://cloud.tencent.com/document/product/1278/85305
254
-            // 密钥可前往官网控制台 https://console.cloud.tencent.com/cam/capi 进行获取
255
-            Credential cred = new Credential(secretId, secretKey);
256
-            // 实例化一个http选项,可选的,没有特殊需求可以跳过
257
-            HttpProfile httpProfile = new HttpProfile();
258
-            httpProfile.setEndpoint("trtc.tencentcloudapi.com");
259
-            // 实例化一个client选项,可选的,没有特殊需求可以跳过
260
-            ClientProfile clientProfile = new ClientProfile();
261
-            clientProfile.setHttpProfile(httpProfile);
262
-            // 实例化要请求产品的client对象,clientProfile是可选的
263
-            TrtcClient client = new TrtcClient(cred, "ap-beijing", clientProfile);
264
-            // 实例化一个请求对象,每个接口都会对应一个request对象
265
-            DeleteCloudRecordingRequest req = new DeleteCloudRecordingRequest();
266
-            req.setSdkAppId(sdkAppId); // SdkAppId – TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同
267
-            req.setTaskId(taskId); // TaskId – 录制任务的唯一Id,在启动录制成功后会返回
268
-            // 返回的resp是一个DeleteCloudRecordingResponse的实例,与请求对象对应
269
-            DeleteCloudRecordingResponse resp = client.DeleteCloudRecording(req);
270
-            // 输出json格式的字符串回包
271
-            return success((JSONObject) JSON.toJSON(resp));
272
-        } catch (TencentCloudSDKException e) {
273
-            return AjaxResult.error(e.toString());
274
-        }
275
-
276
-    }
277
-
278
-    @Override
279
-    public AjaxResult dissolveRoom( Long roomId) {
280
-        Credential cred = new Credential(secretId, secretKey);
281
-        // 实例化一个http选项,可选的,没有特殊需求可以跳过
282
-        HttpProfile httpProfile = new HttpProfile();
283
-        httpProfile.setEndpoint("trtc.tencentcloudapi.com");
284
-        // 实例化一个client选项,可选的,没有特殊需求可以跳过
285
-        ClientProfile clientProfile = new ClientProfile();
286
-        clientProfile.setHttpProfile(httpProfile);
287
-        // 实例化要请求产品的client对象,clientProfile是可选的
288
-        TrtcClient client = new TrtcClient(cred, "ap-beijing", clientProfile);
289
-        DismissRoomRequest req = new DismissRoomRequest();
290
-        req.setSdkAppId(sdkAppId);
291
-        req.setRoomId(roomId);
292
-        try {
293
-            DismissRoomResponse resp = client.DismissRoom(req);
294
-            return success((JSONObject) JSON.toJSON(resp));
295
-        } catch (TencentCloudSDKException e) {
296
-            return AjaxResult.error("解散房间失败");
297
-        }
298
-
299
-    }
300
-
301
-    @Override
302
-    public AjaxResult secretaryRoleByUserId(Long userId) {
303
-        List<SysRole> roles = roleMapper.selectRolePermissionByUserId(userId);
304
-        JSONObject jsonObject = new JSONObject();
305
-        boolean isSecretaryRole=false;
306
-        if(CollectionUtil.isNotEmpty(roles)){
307
-            for (SysRole role : roles) {
308
-                if("法律顾问".equals(role.getRoleName()) || "秘书".equals(role.getRoleName())){
309
-                    isSecretaryRole=true;
310
-                    break;
311
-                }
312
-            }
313
-        }
314
-        jsonObject.put("isSecretaryRole",isSecretaryRole);
315
-        return success(jsonObject);
316
-    }
317
-
318
-    /**
319
-     * 根据html字符串转pdf并和案件关联
320
-     * @param reservedConferenceVO
321
-     * @return
322
-     */
323
-    @Override
324
-    public AjaxResult htmlToPDF(ReservedConferenceVO reservedConferenceVO) {
325
-        String currentFileName = System.currentTimeMillis() + ".pdf";
326
-        String fileName = null;
327
-        try {
328
-            fileName = getPathFileName(RuoYiConfig.getHtml2PDFPath(), currentFileName);
329
-        } catch (IOException e) {
330
-            throw new RuntimeException(e);
331
-        }
332
-        String htmlContent = "<html><head> <title>庭审笔录</title></head><body style=\"font-size:12.0pt; font-family:SimSun;\"><h1 align=\"center\">庭审笔录</h1>" +reservedConferenceVO.getHtmlContent()+"</body></html>";
333
-        // html转pdf并上传到服务器
334
-        boolean convertFlag = PdfUtils.htmlStringConvertToPDF(RuoYiConfig.getHtml2PDFPath() +"/"+ currentFileName, htmlContent);
335
-
336
-        // 绑定案件
337
-        if(convertFlag){
338
-            CaseAttach caseAttach = CaseAttach.builder().caseAppliId(reservedConferenceVO.getCaseId())
339
-                    .annexName(fileName)
340
-                    .annexPath(RuoYiConfig.getHtml2PDFPath())
341
-                    .annexType(7)
342
-                    .build();
343
-            caseAttachMapper.save(caseAttach);
344
-            return AjaxResult.success();
345
-        }else {
346
-            return AjaxResult.error("pdf转换失败");
347
-        }
348
-    }
349
-
350
-    @Override
351
-    public AjaxResult attachListByCaseId(Long caseAppliId, Integer annexType) {
352
-        CaseApplication caseApplication = new CaseApplication();
353
-        caseApplication.setId(caseAppliId);
354
-        caseApplication.setAnnexType(annexType);
355
-        List<CaseAttach> caseAttachList = caseAttachMapper.queryCaseAttachList(caseApplication);
356
-        if(CollectionUtil.isEmpty(caseAttachList)){
357
-            return success(caseAttachList);
358
-        }
359
-
360
-        // 附件转换
361
-        if (caseAttachList != null && caseAttachList.size() > 0) {
362
-            for (CaseAttach caseAttach : caseAttachList) {
363
-                String annexName = caseAttach.getAnnexName();
364
-                String prefix = "/profile";
365
-                int startIndex = annexName.indexOf(prefix);
366
-                startIndex += prefix.length();
367
-                String annexPath = "/uploadPath" + annexName.substring(startIndex);
368
-                caseAttach.setAnnexPath(annexPath);
369
-                int startIndexnew = annexName.lastIndexOf("/");
370
-                if (startIndexnew != -1) {
371
-                    String annexNamenew = annexName.substring(startIndexnew + 1);
372
-                    caseAttach.setAnnexName(annexNamenew);
373
-                }
374
-
375
-
376
-            }
377
-        }
378
-        return success(caseAttachList);
379
-    }
380
-
381
-
382
-    /**
383
-     *  查询出音视频集合,并下载,在将云点播上面的音视频删除
384
-     * @param fileIds 点播平台唯一ID集合
385
-     * @throws Exception
386
-     */
387
-    private void downloadVideo(String [] fileIds) throws Exception {
388
-        try{
389
-            //创建文件对象
390
-            Properties properties = new Properties();
391
-            //加载文件获取数据 文件带后缀
392
-            properties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream
393
-                    ("application.properties"));
394
-            //根据key来获取value
395
-            String secretId = properties.getProperty("secretid");
396
-            String secretKey = properties.getProperty("secretkey");
397
-            // 实例化一个认证对象,入参需要传入腾讯云账户 SecretId 和 SecretKey,此处还需注意密钥对的保密
398
-            // 代码泄露可能会导致 SecretId 和 SecretKey 泄露,并威胁账号下所有资源的安全性。以下代码示例仅供参考,建议采用更安全的方式来使用密钥,请参见:https://cloud.tencent.com/document/product/1278/85305
399
-            // 密钥可前往官网控制台 https://console.cloud.tencent.com/cam/capi 进行获取
400
-            Credential cred = new Credential(secretId, secretKey);
401
-            // 实例化一个http选项,可选的,没有特殊需求可以跳过
402
-            HttpProfile httpProfile = new HttpProfile();
403
-            httpProfile.setEndpoint("vod.tencentcloudapi.com");
404
-            // 实例化一个client选项,可选的,没有特殊需求可以跳过
405
-            ClientProfile clientProfile = new ClientProfile();
406
-            clientProfile.setHttpProfile(httpProfile);
407
-            // 实例化要请求产品的client对象,clientProfile是可选的
408
-            VodClient client = new VodClient(cred, "ap-beijing", clientProfile);
409
-            // 实例化一个请求对象,每个接口都会对应一个request对象
410
-            DescribeMediaInfosRequest req = new DescribeMediaInfosRequest();
411
-            req.setFileIds(fileIds);
412
-            String[] basicInfos = {"basicInfo"};
413
-            req.setFilters(basicInfos);
414
-            // 返回的resp是一个DescribeMediaInfosResponse的实例,与请求对象对应
415
-            DescribeMediaInfosResponse resp = client.DescribeMediaInfos(req);
416
-            // 输出json格式的字符串回包
417
-            log.info(DescribeMediaInfosResponse.toJsonString(resp));
418
-            String json = DescribeMediaInfosResponse.toJsonString(resp);
419
-            JSONObject jsonObject = (JSONObject) JSON.parse(json);
420
-            JSONArray jsonArray = jsonObject.getJSONArray("MediaInfoSet"); // 媒体文件信息列表。
421
-            for (int i = 0; i < jsonArray.size(); i++) {
422
-                JSONObject jsonObject1 = jsonArray.getJSONObject(i);
423
-                String fileId = jsonObject1.getString("FileId"); // 点播平台的唯一 ID
424
-                String basicInfo = jsonObject1.getString("BasicInfo"); // 基础信息
425
-                JSONObject jsonObject2 = (JSONObject) JSON.parse(basicInfo);
426
-                String mediaUrl = jsonObject2.getString("MediaUrl"); // 文件地址
427
-                String downPath = downloadImage(null,null,mediaUrl); // 下载音视频(返回本地下载地址)
428
-                // 将未下载的音视频列表查询出来,进行下载到服务器上面,并更新数据库数据
429
-                log.info(downPath); // 本地地址
430
-            }
431
-            log.info("下载音视频成功");
432
-        } catch (TencentCloudSDKException e) {
433
-            log.info(e.toString());
434
-        } catch (IOException e) {
435
-            e.printStackTrace();
436
-        }
437
-        log.info("腾讯云测试成功");
438
-    }
439
-
440
-    /**
441
-     * 将视频下载到本地
442
-     * @param fileUrl 视频路径
443
-     * @return
444
-     */
445
-    @Transactional
446
-    public  String downloadImage(String fileId,String fileUrl,String roomId) throws IOException {
447
-        String staticAndMksDir = null;
448
-        if (fileUrl != null) {
449
-            //下载时文件名称
450
-            String fileName = fileUrl.substring(fileUrl.lastIndexOf("/"));
451
-            fileName = fileName.replace("/", "");
452
-            fileName=fileId+fileName;
453
-                String absPath = getAbsoluteFile(RuoYiConfig.getVideoUploadPath(), fileName).getAbsolutePath();
454
-                staticAndMksDir = Paths.get(absPath).toFile().toString();
455
-            long downloadFile = HttpUtil.downloadFile(fileUrl, staticAndMksDir);
456
-            if(downloadFile>0) {
457
-                Long caseId = caseApplicationMapper.selectCaseIdByRoomId(roomId);
458
-                String annexName = getPathFileName(RuoYiConfig.getVideoUploadPath(), fileName);
459
-                // 存入数据库
460
-                CaseAttach caseAttach = CaseAttach.builder().caseAppliId(caseId)
461
-                        .annexName(annexName)
462
-                        .annexPath(RuoYiConfig.getVideoUploadPath())
463
-                        .annexType(9)
464
-                        .build();
465
-                caseAttachMapper.save(caseAttach);
466
-                return annexName;
467
-            }
468
-        }
469
-        return "";
470
-
471
-    }
472
-    /**
473
-     * @param key 回调秘钥
474
-     * @param body 入参
475
-     * @return 签名 Sign 计算公式中 key 为计算签名 Sign 用的加密密钥。
476
-     * @throws Exception
477
-     */
478
-    private static String getResultSign(String key, String body) throws Exception {
479
-        Mac hmacSha256 = Mac.getInstance("HmacSHA256");
480
-        SecretKeySpec secret_key = new SecretKeySpec(key.getBytes(), "HmacSHA256");
481
-        hmacSha256.init(secret_key);
482
-        return Base64.getEncoder().encodeToString(hmacSha256.doFinal(body.getBytes()));
483
-    }
484
-
485
-}

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

@@ -1,72 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.task;
2
-
3
-
4
-import com.ruoyi.common.core.domain.entity.SysDictData;
5
-import com.ruoyi.common.core.domain.entity.SysUser;
6
-import com.ruoyi.common.core.domain.model.LoginUser;
7
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
8
-import com.ruoyi.wisdomarbitrate.domain.FatchRule;
9
-import com.ruoyi.wisdomarbitrate.service.impl.CaseZipImportImpl;
10
-
11
-import java.io.File;
12
-import java.util.ArrayList;
13
-import java.util.List;
14
-import java.util.Map;
15
-import java.util.concurrent.Callable;
16
-
17
-/**
18
- * @description rbd调用xfta计算任务类
19
- * @Author mingYang
20
- * @Date 2021/11/12 15:35
21
- * @Version V1.0
22
- **/
23
-
24
-public class CaseZipImportTask implements Callable<List<CaseApplication>> {
25
-    private CaseZipImportImpl caseZipImportImpl;
26
-    private Long templateId;
27
-    private List<FatchRule> fatchRuleList;
28
-    private Map<String, String> fatchMap;
29
-    private Map<String, List<FatchRule>> fatchRuleMap;
30
-    private Map<String, SysUser> userMap;
31
-    private List<SysDictData> dictDataList;
32
-    private File[] files;
33
-    private Map<String, Long> deptMap;
34
-    private LoginUser loginUser;
35
-    private Integer maxBatchNumber;
36
-
37
-    public CaseZipImportTask(CaseZipImportImpl caseZipImportImpl, Long templateId, List<FatchRule> fatchRuleList, Map<String, String> fatchMap, Map<String, List<FatchRule>> fatchRuleMap, Map<String, SysUser> userMap, List<SysDictData> dictDataList, File[] files, Map<String, Long> deptMap, LoginUser loginUser,Integer maxBatchNumber) {
38
-        this.caseZipImportImpl = caseZipImportImpl;
39
-        this.templateId = templateId;
40
-        this.fatchRuleList = fatchRuleList;
41
-        this.fatchMap = fatchMap;
42
-        this.fatchRuleMap = fatchRuleMap;
43
-        this.userMap = userMap;
44
-        this.dictDataList = dictDataList;
45
-        this.files = files;
46
-        this.deptMap = deptMap;
47
-        this.loginUser = loginUser;
48
-        this.maxBatchNumber = maxBatchNumber;
49
-    }
50
-
51
-    @Override
52
-    public List<CaseApplication> call() {
53
-        List<CaseApplication> caseApplications = new ArrayList<>();
54
-        try {
55
-            for (File file1 : files) {
56
-                if (file1.isDirectory() && file1.listFiles() != null) {
57
-
58
-                    for (File file2 : file1.listFiles()) {
59
-                        CaseApplication caseApplication = caseZipImportImpl.buildCaseInfo(file2, templateId, fatchRuleList, fatchRuleMap, fatchMap, userMap, dictDataList, deptMap, loginUser,maxBatchNumber);
60
-                        if (caseApplication != null) {
61
-                            caseApplications.add(caseApplication);
62
-                        }
63
-                    }
64
-                }
65
-            }
66
-        } catch (Exception e) {
67
-            throw new RuntimeException("导入失败");
68
-        }
69
-
70
-        return caseApplications;
71
-    }
72
-}

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

@@ -1,362 +0,0 @@
1
-package com.ruoyi.wisdomarbitrate.utils;
2
-
3
-import com.alibaba.fastjson.JSONArray;
4
-import com.alibaba.fastjson.JSONObject;
5
-import com.google.gson.Gson;
6
-import com.google.gson.JsonArray;
7
-import com.google.gson.JsonElement;
8
-import com.google.gson.JsonObject;
9
-import com.ruoyi.common.constant.CaseApplicationConstants;
10
-import com.ruoyi.common.constant.FileTransformation;
11
-import com.ruoyi.common.core.domain.entity.EsignHttpResponse;
12
-import com.ruoyi.common.exception.EsignDemoException;
13
-import com.ruoyi.common.utils.SealUtil;
14
-import com.ruoyi.common.utils.file.SaaSAPIFileUtils;
15
-import com.ruoyi.wisdomarbitrate.domain.*;
16
-import com.ruoyi.wisdomarbitrate.mapper.*;
17
-import org.springframework.beans.factory.annotation.Autowired;
18
-import org.springframework.scheduling.annotation.Scheduled;
19
-import org.springframework.stereotype.Component;
20
-import org.springframework.transaction.annotation.Transactional;
21
-
22
-import java.io.File;
23
-import java.io.IOException;
24
-import java.time.LocalDate;
25
-import java.util.Date;
26
-import java.util.List;
27
-import java.util.UUID;
28
-
29
-@Component
30
-public class FixSelectFlowDetailUtils {
31
-
32
-    @Autowired
33
-    private CaseApplicationMapper caseApplicationMapper;
34
-    @Autowired
35
-    private SealSignRecordMapper sealSignRecordMapper;
36
-    @Autowired
37
-    private CaseAttachMapper caseAttachMapper;
38
-    @Autowired
39
-    private DeptIdentifyMapper deptIdentifyMapper;
40
-    @Autowired
41
-    private SealManageMapper sealManageMapper;
42
-
43
-    /*
44
-    定时查询签署流程详情
45
-     */
46
-    @Scheduled(cron = "0/10 * * * * ?")
47
-    @Transactional
48
-    public void fixExecuteSelectFlowDetailUtils() {
49
-        Gson gson = new Gson();
50
-
51
-        SealSignRecord sealSignRecordselect = new SealSignRecord();
52
-        // sealSignRecordselect.setSignFlowStatus(1);
53
-        List<SealSignRecord> sealSignRecords = sealSignRecordMapper.selectSealSignRecordbyStat(sealSignRecordselect);
54
-
55
-        try {
56
-            if (sealSignRecords != null && sealSignRecords.size() > 0) {
57
-                for (int i = 0; i < sealSignRecords.size(); i++) {
58
-                    SealSignRecord sealSignRecord = sealSignRecords.get(i);
59
-                    EsignHttpResponse signFlowDetail = SignAward.signFlowDetail(sealSignRecord);
60
-                    JsonObject signFlowDetailJsonObject = gson.fromJson(signFlowDetail.getBody(), JsonObject.class);
61
-                    JsonObject flowDetailData = signFlowDetailJsonObject.getAsJsonObject("data");
62
-                    JsonArray signersArray = flowDetailData.get("signers").getAsJsonArray();
63
-                    Integer psnsignStatus = null;
64
-                    Integer orgsignStatus = null;
65
-                    for (int j = 0; j < signersArray.size(); j++) {
66
-                        JsonObject signerObject = (JsonObject) signersArray.get(j);
67
-
68
-                        if (!(signerObject.get("psnSigner").toString()).equals("null")) {
69
-                            JsonObject psnSignerData = signerObject.getAsJsonObject("psnSigner");
70
-                            if (psnSignerData != null) {
71
-                                psnsignStatus = signerObject.get("signStatus").getAsInt();
72
-                            }
73
-                        }
74
-                        if (!(signerObject.get("orgSigner").toString()).equals("null")) {
75
-                            JsonObject orgSignerData = signerObject.getAsJsonObject("orgSigner");
76
-                            if (orgSignerData != null) {
77
-                                orgsignStatus = signerObject.get("signStatus").getAsInt();
78
-                            }
79
-                        }
80
-
81
-                    }
82
-                    if ((psnsignStatus.intValue() == 2) && (orgsignStatus.intValue() == 1)) {
83
-                        //更新立案申请状态为待用印
84
-                        CaseApplication caseApplication = new CaseApplication();
85
-                        caseApplication.setId(sealSignRecord.getCaseAppliId());
86
-
87
-                        CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
88
-                        if (caseApplicationselect != null) {
89
-                            if ((caseApplicationselect.getCaseStatus() != null) && (caseApplicationselect.getCaseStatus().intValue() == CaseApplicationConstants.SIGN_ARBITRATION)) {
90
-                                caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATED_SEAL);
91
-                                caseApplicationMapper.submitCaseApplication(caseApplication);
92
-
93
-                                //修改"签署用印记录表"的状态为待用印
94
-                                sealSignRecord.setSignFlowStatus(2);
95
-                                sealSignRecordMapper.updataSealSignRecord(sealSignRecord);
96
-                            }
97
-                        }
98
-
99
-                    }
100
-                    if ((psnsignStatus.intValue() == 2) && (orgsignStatus.intValue() == 2)) {
101
-                        //更新立案申请状态为待送达
102
-                        CaseApplication caseApplication = new CaseApplication();
103
-                        caseApplication.setId(sealSignRecord.getCaseAppliId());
104
-
105
-                        CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
106
-                        if (caseApplicationselect != null) {
107
-                            if ((caseApplicationselect.getCaseStatus() != null) && (caseApplicationselect.getCaseStatus().intValue() == CaseApplicationConstants.ARBITRATED_SEAL)) {
108
-                                caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATION_DELIVERY);
109
-                                //下载审核完成的裁决书,
110
-                                String signFlowId = sealSignRecord.getSignFlowid();
111
-                                EsignHttpResponse fileDownload = SaaSAPIFileUtils.fileDownloadUrl(signFlowId);
112
-                                JsonObject fileDownloadJsonObject = gson.fromJson(fileDownload.getBody(), JsonObject.class);
113
-                                JsonObject fileDownloadData = fileDownloadJsonObject.getAsJsonObject("data");
114
-                                JsonArray filesArray = fileDownloadData.get("files").getAsJsonArray();
115
-                                if (filesArray != null && filesArray.size() > 0) {
116
-                                    JsonObject fileObject = (JsonObject) filesArray.get(0);
117
-                                    String fileDownloadUrl = fileObject.get("downloadUrl").toString();
118
-                                    //修改"签署用印记录表"的状态为签署完成
119
-                                    sealSignRecord.setSignFlowStatus(3);
120
-                                    sealSignRecord.setFileDownloadUrl(fileDownloadUrl.substring(1, fileDownloadUrl.length() - 1));
121
-                                    sealSignRecordMapper.updataSealSignRecord(sealSignRecord);
122
-
123
-                                    String filearbitraUrl = fileDownloadUrl.substring(1, fileDownloadUrl.length() - 1);
124
-                                    caseApplication.setFilearbitraUrl(filearbitraUrl);
125
-                                    caseApplicationMapper.submitCaseApplication(caseApplication);
126
-
127
-                                    LocalDate now = LocalDate.now();
128
-                                    String year = Integer.toString(now.getYear());
129
-                                    String month = String.format("%02d", now.getMonthValue());
130
-                                    String day = String.format("%02d", now.getDayOfMonth());
131
-                                    String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
132
-                                    String fileName = UUID.randomUUID().toString().replace("-", "") + ".pdf";
133
-                                    String saveName = "/profile/upload/" + year + "/" + month + "/" + day + "/" + fileName;
134
-                                    String savePath = "/home/ruoyi/uploadPath/upload/";
135
-
136
-                                    // 创建日期目录
137
-                                    File saveFolder = new File(saveFolderPath);
138
-                                    if (!saveFolder.exists()) {
139
-                                        saveFolder.mkdirs();
140
-                                    }
141
-                                    String resultFilePath = saveFolderPath + "/" + fileName;
142
-                                    File resultFilePathFile = new File(resultFilePath);
143
-                                    if (!resultFilePathFile.exists()) {
144
-                                        resultFilePathFile.createNewFile();
145
-                                    }
146
-
147
-                                    String fileDownloadUrlnew = fileDownloadUrl.substring(1, fileDownloadUrl.length() - 1);
148
-                                    boolean downLoadFile = FileTransformation.downLoadFileByUrl(fileDownloadUrlnew, resultFilePath);
149
-                                    if (downLoadFile) {
150
-                                        Long caseAppliId = sealSignRecord.getCaseAppliId();
151
-                                        CaseAttach caseAttach = new CaseAttach();
152
-                                        caseAttach.setCaseAppliId(caseAppliId);
153
-                                        caseAttach.setAnnexType(3);
154
-                                        caseAttach.setAnnexPath(savePath);
155
-                                        caseAttach.setAnnexName(saveName);
156
-                                        caseAttachMapper.updateCaseAttachBycaseid(caseAttach);
157
-                                    }
158
-
159
-                                }
160
-                            }
161
-                        }
162
-
163
-                    }
164
-                }
165
-
166
-            }
167
-        } catch (EsignDemoException e) {
168
-            e.printStackTrace();
169
-        } catch (IOException e) {
170
-            e.printStackTrace();
171
-        }
172
-
173
-    }
174
-
175
-    /**
176
-     * 定时查询企业认证状态
177
-     *
178
-     * @throws Exception
179
-     */
180
-    @Scheduled(cron = "*/30 * * * * *")
181
-    @Transactional
182
-    public void fixExecuteSelectDeptIndentifyUtils() throws Exception {
183
-        Gson gson = new Gson();
184
-        DeptIdentify deptIdentify = new DeptIdentify();
185
-        List<DeptIdentify> deptIdentifysnew = deptIdentifyMapper.selectDeptIdentify(deptIdentify);
186
-        if (deptIdentifysnew != null && deptIdentifysnew.size() > 0) {
187
-            for (int i = 0; i < deptIdentifysnew.size(); i++) {
188
-                DeptIdentify deptIdentify1 = deptIdentifysnew.get(i);
189
-                Integer identifyStatus = deptIdentify1.getIdentifyStatus();
190
-                if (identifyStatus!=1){
191
-                    String authFlowId = deptIdentify1.getAuthFlowId();
192
-                    if (authFlowId != null) {
193
-                        EsignHttpResponse identifyInfo = SignAward.getDeptIdentifyInfo(deptIdentify1);
194
-                        JsonObject identifyInfoJsonObject = gson.fromJson(identifyInfo.getBody(), JsonObject.class);
195
-                        int code = identifyInfoJsonObject.get("code").getAsInt();
196
-                        if (code == 0) {
197
-                            JsonObject identifyInfoData = identifyInfoJsonObject.getAsJsonObject("data");
198
-                            int realnameStatus = identifyInfoData.get("realnameStatus").getAsInt();
199
-                            if (realnameStatus == 1) {
200
-                                String orgId = identifyInfoData.get("orgId").getAsString();
201
-                                //查询企业内部印章
202
-                                EsignHttpResponse response = SignAward.deptIdentifySealList(orgId);
203
-                                JsonObject jsonObject = gson.fromJson(response.getBody(), JsonObject.class);
204
-                                int code1 = jsonObject.get("code").getAsInt();
205
-                                if (code1 == 0) {
206
-                                    JsonObject data = jsonObject.getAsJsonObject("data");
207
-                                    JsonArray seals = data.get("seals").getAsJsonArray();
208
-                                    if (seals.size() > 0) {
209
-                                        for (int j = 0; j < seals.size(); j++) {
210
-                                            //保存印章信息到数据库
211
-                                            JsonObject asJsonObject = seals.get(j).getAsJsonObject();
212
-                                            SealManage sealManage = new SealManage();
213
-                                            String sealName = asJsonObject.get("sealName").toString();
214
-                                            String sealId = asJsonObject.get("sealId").toString();
215
-                                            String url = asJsonObject.get("sealImageDownloadUrl").toString();
216
-                                            LocalDate now = LocalDate.now();
217
-                                            String year = Integer.toString(now.getYear());
218
-                                            String month = String.format("%02d", now.getMonthValue());
219
-                                            String day = String.format("%02d", now.getDayOfMonth());
220
-                                            String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
221
-                                            String fileName = UUID.randomUUID().toString().replace("-", "") + ".jpg";
222
-                                            String saveName = "/profile/upload/" + year + "/" + month + "/" + day + "/" + fileName;
223
-                                            String savePath = "/home/ruoyi/uploadPath/upload/";
224
-                                            // 创建日期目录
225
-                                            File saveFolder = new File(saveFolderPath);
226
-                                            if (!saveFolder.exists()) {
227
-                                                saveFolder.mkdirs();
228
-                                            }
229
-                                            String resultFilePath = saveFolderPath + "/" + fileName;
230
-                                            File resultFilePathFile = new File(resultFilePath);
231
-                                            if (!resultFilePathFile.exists()) {
232
-                                                resultFilePathFile.createNewFile();
233
-                                            }
234
-                                            String fileDownloadUrlnew = url.substring(1, url.length() - 1);
235
-                                            boolean downLoadFile = FileTransformation.downLoadFileByUrl(fileDownloadUrlnew, resultFilePath);
236
-                                            if (downLoadFile) {
237
-                                                CaseAttach caseAttach = new CaseAttach();
238
-                                                caseAttach.setAnnexType(10);  //10代表印章图片
239
-                                                caseAttach.setAnnexPath(savePath);
240
-                                                caseAttach.setAnnexName(saveName);
241
-                                                int i1 = caseAttachMapper.save(caseAttach);
242
-                                                if (i1 > 0) {
243
-                                                    //将印章信息保存到公章管理表里
244
-                                                    String sealName1 = sealName.substring(1, sealName.length() - 1);
245
-                                                    String sealId1 = sealId.substring(1, sealId.length() - 1);
246
-                                                    Integer annexId1 = caseAttach.getAnnexId();
247
-                                                    sealManage.setAnnexId(annexId1);
248
-                                                    sealManage.setSealId(sealId1);
249
-                                                    sealManage.setSealName(sealName1);
250
-                                                    sealManage.setIdentifyId(deptIdentify1.getId());
251
-                                                    sealManage.setSealStatus(1);
252
-                                                    sealManage.setIsUse(1);
253
-                                                    sealManageMapper.insertSealManage(sealManage);
254
-                                                }
255
-                                            }
256
-                                        }
257
-                                    }
258
-
259
-                                }
260
-                                //将orgId保存到数据库里
261
-                                deptIdentify1.setOrgId(orgId);
262
-                                deptIdentify1.setIdentifyStatus(1);
263
-                                deptIdentify1.setIsUse(0);  //默认机构为未启用
264
-                                int row = deptIdentifyMapper.updateDeptIdentify(deptIdentify1);
265
-                            }
266
-                        }else {
267
-                            deptIdentify1.setIdentifyStatus(2);
268
-                            deptIdentifyMapper.updateDeptIdentify(deptIdentify1);
269
-                        }
270
-                    }
271
-                }
272
-            }
273
-        }
274
-    }
275
-
276
-
277
-    /**
278
-     * 定时查询印章审核状态
279
-     */
280
-    @Scheduled(cron = "0/30 * * * * ?")
281
-    @Transactional
282
-    public void searchForInstitutionalSeal() {
283
-        try {
284
-            SealManage sealManage = new SealManage();
285
-            sealManage.setSealStatus(0);
286
-            List<SealManage> sealManageList = sealManageMapper.selectSealList(sealManage);
287
-            if (sealManageList != null && sealManageList.size() > 0) {
288
-                for (SealManage sealManage1 : sealManageList) {
289
-                    //查询企业内部印章
290
-                    Integer annexId = sealManage1.getAnnexId();
291
-                    String sealId = sealManage1.getSealId();
292
-                    DeptIdentify deptIdentify = new DeptIdentify();
293
-                    deptIdentify.setId(sealManage1.getIdentifyId());
294
-                    List<DeptIdentify> deptIdentifies = deptIdentifyMapper.selectDeptIdentify(deptIdentify);
295
-                    if (deptIdentifies != null && deptIdentifies.size() > 0) {
296
-                        DeptIdentify deptIdentify1 = deptIdentifies.get(0);
297
-                        String orgId = deptIdentify1.getOrgId();
298
-                        if (orgId == null) {
299
-                            continue;
300
-                        }
301
-                        if (annexId == null) {
302
-                            //说明之前没有下载过
303
-                            EsignHttpResponse response = SignAward.getOrgSeal(orgId, sealId);
304
-                            JSONObject jsonObject = JSONObject.parseObject(response.getBody());
305
-                            int code = jsonObject.getIntValue("code");
306
-                            if (code == 0) {
307
-                                JSONObject data = jsonObject.getJSONObject("data");
308
-                                int sealStatus = data.getIntValue("sealStatus");
309
-                                if (sealStatus == 1) {//印章状态 1已启用,2待审核,3审核不通过,4 挂起
310
-                                    //已启用证明审核通过,下载到数据库
311
-                                    String sealImageDownloadUrl = data.getString("sealImageDownloadUrl");
312
-                                    LocalDate now = LocalDate.now();
313
-                                    String year = Integer.toString(now.getYear());
314
-                                    String month = String.format("%02d", now.getMonthValue());
315
-                                    String day = String.format("%02d", now.getDayOfMonth());
316
-                                    String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
317
-                                    String fileName = UUID.randomUUID().toString().replace("-", "") + ".jpg";
318
-                                    String saveName = "/profile/upload/" + year + "/" + month + "/" + day + "/" + fileName;
319
-                                    String savePath = "/home/ruoyi/uploadPath/upload/";
320
-                                    // 创建日期目录
321
-                                    File saveFolder = new File(saveFolderPath);
322
-                                    if (!saveFolder.exists()) {
323
-                                        saveFolder.mkdirs();
324
-                                    }
325
-                                    String resultFilePath = saveFolderPath + "/" + fileName;
326
-                                    File resultFilePathFile = new File(resultFilePath);
327
-                                    if (!resultFilePathFile.exists()) {
328
-                                        resultFilePathFile.createNewFile();
329
-                                    }
330
-                                    boolean downLoadFile = FileTransformation.downLoadFileByUrl(sealImageDownloadUrl, resultFilePath);
331
-                                    if (downLoadFile) {
332
-                                        CaseAttach caseAttach = new CaseAttach();
333
-                                        caseAttach.setAnnexType(10);  //10代表印章图片
334
-                                        caseAttach.setAnnexPath(savePath);
335
-                                        caseAttach.setAnnexName(saveName);
336
-                                        int i1 = caseAttachMapper.save(caseAttach);
337
-                                        if (i1 > 0) {
338
-                                            //将附件id保存到公章管理表里
339
-                                            Integer annexId1 = caseAttach.getAnnexId();
340
-                                            sealManage1.setAnnexId(annexId1);
341
-                                            sealManage1.setSealStatus(1);
342
-                                            sealManage1.setIsUse(0);
343
-                                            sealManageMapper.updateSealManage(sealManage1);
344
-                                        }
345
-                                    }
346
-                                }
347
-                            }
348
-                        }
349
-                    }
350
-
351
-                }
352
-            }
353
-        } catch (EsignDemoException e) {
354
-            e.printStackTrace();
355
-        } catch (IOException e) {
356
-            e.printStackTrace();
357
-        }
358
-    }
359
-
360
-}
361
-
362
-

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

@@ -17,14 +17,4 @@ public class ImageToBase64Converter {
17 17
         String base64Image = Base64.getEncoder().encodeToString(imageBytes);
18 18
         return base64Image;
19 19
     }
20
-
21
-    public static void main(String[] args) {
22
-        String imagePath = "D:\\develop\\2.jpg";
23
-        try {
24
-            String base64Image = imageToBase64(imagePath);
25
-            System.out.println(base64Image);
26
-        } catch (Exception e) {
27
-            e.printStackTrace();
28
-        }
29
-    }
30 20
 }

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

@@ -1,27 +1,20 @@
1 1
 package com.ruoyi.wisdomarbitrate.utils;
2 2
 
3
-import cn.hutool.json.JSONUtil;
4 3
 import com.alibaba.fastjson.JSON;
5 4
 import com.alibaba.fastjson.JSONObject;
6 5
 import com.google.gson.Gson;
7
-import com.google.gson.JsonArray;
8
-import com.google.gson.JsonObject;
9 6
 import com.ruoyi.common.core.domain.entity.EsignHttpResponse;
10 7
 import com.ruoyi.common.enums.EsignRequestType;
11 8
 import com.ruoyi.common.exception.EsignDemoException;
12
-import com.ruoyi.common.utils.DateUtils;
13 9
 import com.ruoyi.common.utils.EsignApplicaConfig;
14 10
 import com.ruoyi.common.utils.EsignHttpHelper;
15 11
 import com.ruoyi.common.utils.SealUtil;
16
-import com.ruoyi.wisdomarbitrate.StringIdsReq;
12
+import com.ruoyi.wisdomarbitrate.domain.vo.StringIdsReq;
17 13
 import com.ruoyi.wisdomarbitrate.domain.DeptIdentify;
18 14
 import com.ruoyi.wisdomarbitrate.domain.SealSignRecord;
19 15
 
20
-import java.io.File;
21
-import java.util.Date;
22 16
 import java.util.List;
23 17
 import java.util.Map;
24
-import java.util.UUID;
25 18
 
26 19
 public class SignAward {
27 20
 

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

@@ -16,12 +16,6 @@ import java.util.zip.ZipFile;
16 16
 @Slf4j
17 17
 public class UnZipFileUtils {
18 18
 
19
-    public static void main(String[] args) {
20
-        File file = new File("D:\\home\\ruoyi\\仲裁委项目-测试单.zip");
21
-        String targetPath = "D:\\home\\unzip\\";
22
-        unZipFile(file,targetPath);
23
-    }
24
-
25 19
     public static boolean unZipFile(File aboriginalFile, String targetPath) {
26 20
         if (!aboriginalFile.exists()) {
27 21
             log.error("此文件不存在:", aboriginalFile.getPath());

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

@@ -10,27 +10,6 @@ import java.util.zip.ZipOutputStream;
10 10
 
11 11
 public class ZipFileUtils {
12 12
 
13
-    public static void main(String[] args) {
14
-        String file1 = "F:\\testZip\\123.pdf";
15
-        String file2 = "F:\\testZip\\456.png";
16
-        String zipFileOutPath = "F:\\testZip\\outputfile123.zip";
17
-
18
-        try {
19
-            FileOutputStream zfous = new FileOutputStream(zipFileOutPath);
20
-            ZipOutputStream zipFileOutstream = new ZipOutputStream(zfous);
21
-            FileInputStream fis1 = new FileInputStream(file1);
22
-            FileInputStream fis2 = new FileInputStream(file2);
23
-            zipFile(file1, fis1, zipFileOutstream);
24
-            zipFile(file2, fis2, zipFileOutstream);
25
-
26
-            zipFileOutstream.close();
27
-            zfous.close();
28
-            System.out.println("文件成功打包成ZIP文件!");
29
-        } catch (IOException e) {
30
-            e.printStackTrace();
31
-        }
32
-    }
33
-
34 13
     public static void zipFile(String zipfilePath, FileInputStream zipFileinsteam, ZipOutputStream zipfileOut)
35 14
             throws IOException {
36 15
         ZipEntry zipfileEntry = new ZipEntry(new File(zipfilePath).getName());

+ 5
- 5
ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml Просмотреть файл

@@ -18,7 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
18 18
     
19 19
     <sql id="selectConfigVo">
20 20
         select config_id, config_name, config_key, config_value, config_type, create_by, create_time, update_by, update_time, remark 
21
-		from sys_config
21
+		from ms_sys_config
22 22
     </sql>
23 23
     
24 24
     <!-- 查询条件 -->
@@ -70,7 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
70 70
     </select>
71 71
     
72 72
     <insert id="insertConfig" parameterType="SysConfig">
73
-        insert into sys_config (
73
+        insert into ms_sys_config (
74 74
 			<if test="configName != null and configName != '' ">config_name,</if>
75 75
 			<if test="configKey != null and configKey != '' ">config_key,</if>
76 76
 			<if test="configValue != null and configValue != '' ">config_value,</if>
@@ -90,7 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
90 90
     </insert>
91 91
 	 
92 92
     <update id="updateConfig" parameterType="SysConfig">
93
-        update sys_config 
93
+        update ms_sys_config 
94 94
         <set>
95 95
             <if test="configName != null and configName != ''">config_name = #{configName},</if>
96 96
             <if test="configKey != null and configKey != ''">config_key = #{configKey},</if>
@@ -104,11 +104,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
104 104
     </update>
105 105
 	
106 106
     <delete id="deleteConfigById" parameterType="Long">
107
-        delete from sys_config where config_id = #{configId}
107
+        delete from ms_sys_config where config_id = #{configId}
108 108
     </delete>
109 109
     
110 110
     <delete id="deleteConfigByIds" parameterType="Long">
111
-        delete from sys_config where config_id in 
111
+        delete from ms_sys_config where config_id in 
112 112
         <foreach item="configId" collection="array" open="(" separator="," close=")">
113 113
         	#{configId}
114 114
         </foreach>

+ 18
- 18
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml Просмотреть файл

@@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
25 25
 	
26 26
 	<sql id="selectDeptVo">
27 27
         select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.dept_type,d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time
28
-        from sys_dept d
28
+        from ms_sys_dept d
29 29
     </sql>
30 30
     
31 31
 	<select id="selectDeptList" parameterType="SysDept" resultMap="SysDeptResult">
@@ -50,37 +50,37 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
50 50
     
51 51
     <select id="selectDeptListByRoleId" resultType="Long">
52 52
 		select d.dept_id
53
-		from sys_dept d
54
-            left join sys_role_dept rd on d.dept_id = rd.dept_id
53
+		from ms_sys_dept d
54
+            left join ms_sys_role_dept rd on d.dept_id = rd.dept_id
55 55
         where rd.role_id = #{roleId}
56 56
             <if test="deptCheckStrictly">
57
-              and d.dept_id not in (select d.parent_id from sys_dept d inner join sys_role_dept rd on d.dept_id = rd.dept_id and rd.role_id = #{roleId})
57
+              and d.dept_id not in (select d.parent_id from ms_sys_dept d inner join ms_sys_role_dept rd on d.dept_id = rd.dept_id and rd.role_id = #{roleId})
58 58
             </if>
59 59
 		order by d.parent_id, d.order_num
60 60
 	</select>
61 61
     
62 62
     <select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">
63 63
 		select d.dept_id, d.parent_id, d.ancestors, d.dept_name,d.dept_type, d.order_num, d.leader, d.phone, d.email, d.status,
64
-			(select dept_name from sys_dept where dept_id = d.parent_id) parent_name
65
-		from sys_dept d
64
+			(select dept_name from ms_sys_dept where dept_id = d.parent_id) parent_name
65
+		from ms_sys_dept d
66 66
 		where d.dept_id = #{deptId}
67 67
 	</select>
68 68
     
69 69
     <select id="checkDeptExistUser" parameterType="Long" resultType="int">
70
-		select count(1) from sys_user where dept_id = #{deptId} and del_flag = '0'
70
+		select count(1) from ms_sys_user where dept_id = #{deptId} and del_flag = '0'
71 71
 	</select>
72 72
 	
73 73
 	<select id="hasChildByDeptId" parameterType="Long" resultType="int">
74
-		select count(1) from sys_dept
74
+		select count(1) from ms_sys_dept
75 75
 		where del_flag = '0' and parent_id = #{deptId} limit 1
76 76
 	</select>
77 77
 	
78 78
 	<select id="selectChildrenDeptById" parameterType="Long" resultMap="SysDeptResult">
79
-		select * from sys_dept where find_in_set(#{deptId}, ancestors)
79
+		select * from ms_sys_dept where find_in_set(#{deptId}, ancestors)
80 80
 	</select>
81 81
 	
82 82
 	<select id="selectNormalChildrenDeptById" parameterType="Long" resultType="int">
83
-		select count(*) from sys_dept where status = 0 and del_flag = '0' and find_in_set(#{deptId}, ancestors)
83
+		select count(*) from ms_sys_dept where status = 0 and del_flag = '0' and find_in_set(#{deptId}, ancestors)
84 84
 	</select>
85 85
 	
86 86
 	<select id="checkDeptNameUnique" resultMap="SysDeptResult">
@@ -88,12 +88,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
88 88
 		where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1
89 89
 	</select>
90 90
 	<select id="selectUserDeptListByRoleId" resultType="java.lang.Long">
91
-		select u.dept_id from sys_user_role r
92
-		join sys_user u on r.role_id=#{roleId} and r.user_id=u.user_id
91
+		select u.dept_id from ms_sys_user_role r
92
+		join ms_sys_user u on r.role_id=#{roleId} and r.user_id=u.user_id
93 93
 	</select>
94 94
 
95 95
 	<insert id="insertDept" parameterType="SysDept" useGeneratedKeys="true" keyColumn="dept_id" keyProperty="deptId">
96
- 		insert into sys_dept(
96
+ 		insert into ms_sys_dept(
97 97
  			<if test="deptId != null and deptId != 0">dept_id,</if>
98 98
  			<if test="parentId != null and parentId != 0">parent_id,</if>
99 99
  			<if test="deptName != null and deptName != ''">dept_name,</if>
@@ -122,7 +122,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
122 122
  		);
123 123
 	</insert>
124 124
     <insert id="batchSave">
125
-		insert into sys_dept(
125
+		insert into ms_sys_dept(
126 126
 		dept_id,
127 127
 		parent_id,
128 128
 		dept_name,
@@ -156,7 +156,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
156 156
 	</insert>
157 157
 
158 158
     <update id="updateDept" parameterType="SysDept">
159
- 		update sys_dept
159
+ 		update ms_sys_dept
160 160
  		<set>
161 161
  			<if test="parentId != null and parentId != 0">parent_id = #{parentId},</if>
162 162
  			<if test="deptName != null and deptName != ''">dept_name = #{deptName},</if>
@@ -174,7 +174,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
174 174
 	</update>
175 175
 	
176 176
 	<update id="updateDeptChildren" parameterType="java.util.List">
177
-	    update sys_dept set ancestors =
177
+	    update ms_sys_dept set ancestors =
178 178
 	    <foreach collection="depts" item="item" index="index"
179 179
 	        separator=" " open="case dept_id" close="end">
180 180
 	        when #{item.deptId} then #{item.ancestors}
@@ -187,14 +187,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
187 187
 	</update>
188 188
 	 
189 189
 	<update id="updateDeptStatusNormal" parameterType="Long">
190
- 	    update sys_dept set status = '0' where dept_id in 
190
+ 	    update ms_sys_dept set status = '0' where dept_id in 
191 191
  	    <foreach collection="array" item="deptId" open="(" separator="," close=")">
192 192
         	#{deptId}
193 193
         </foreach>
194 194
 	</update>
195 195
 	
196 196
 	<delete id="deleteDeptById" parameterType="Long">
197
-		update sys_dept set del_flag = '2' where dept_id = #{deptId}
197
+		update ms_sys_dept set del_flag = '2' where dept_id = #{deptId}
198 198
 	</delete>
199 199
 
200 200
 </mapper> 

+ 8
- 8
ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml Просмотреть файл

@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
22 22
 	
23 23
 	<sql id="selectDictDataVo">
24 24
         select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark 
25
-		from sys_dict_data
25
+		from ms_sys_dict_data
26 26
     </sql>
27 27
 
28 28
 	<select id="selectDictDataList" parameterType="SysDictData" resultMap="SysDictDataResult">
@@ -47,7 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
47 47
 	</select>
48 48
 	
49 49
 	<select id="selectDictLabel" resultType="String">
50
-		select dict_label from sys_dict_data
50
+		select dict_label from ms_sys_dict_data
51 51
 		where dict_type = #{dictType} and dict_value = #{dictValue}
52 52
 	</select>
53 53
 	
@@ -57,22 +57,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
57 57
 	</select>
58 58
 	
59 59
 	<select id="countDictDataByType" resultType="Integer">
60
-	    select count(1) from sys_dict_data where dict_type=#{dictType}  
60
+	    select count(1) from ms_sys_dict_data where dict_type=#{dictType}  
61 61
 	</select>
62 62
 	
63 63
 	<delete id="deleteDictDataById" parameterType="Long">
64
- 		delete from sys_dict_data where dict_code = #{dictCode}
64
+ 		delete from ms_sys_dict_data where dict_code = #{dictCode}
65 65
  	</delete>
66 66
  	
67 67
  	<delete id="deleteDictDataByIds" parameterType="Long">
68
- 		delete from sys_dict_data where dict_code in
68
+ 		delete from ms_sys_dict_data where dict_code in
69 69
  		<foreach collection="array" item="dictCode" open="(" separator="," close=")">
70 70
  			#{dictCode}
71 71
         </foreach> 
72 72
  	</delete>
73 73
 	
74 74
 	<update id="updateDictData" parameterType="SysDictData">
75
- 		update sys_dict_data
75
+ 		update ms_sys_dict_data
76 76
  		<set>
77 77
  			<if test="dictSort != null">dict_sort = #{dictSort},</if>
78 78
  			<if test="dictLabel != null and dictLabel != ''">dict_label = #{dictLabel},</if>
@@ -90,11 +90,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
90 90
 	</update>
91 91
 	
92 92
 	<update id="updateDictDataType" parameterType="String">
93
- 		update sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType}
93
+ 		update ms_sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType}
94 94
 	</update>
95 95
  	
96 96
  	<insert id="insertDictData" parameterType="SysDictData">
97
- 		insert into sys_dict_data(
97
+ 		insert into ms_sys_dict_data(
98 98
  			<if test="dictSort != null">dict_sort,</if>
99 99
  			<if test="dictLabel != null and dictLabel != ''">dict_label,</if>
100 100
  			<if test="dictValue != null and dictValue != ''">dict_value,</if>

+ 5
- 5
ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml Просмотреть файл

@@ -17,7 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
17 17
 	
18 18
 	<sql id="selectDictTypeVo">
19 19
         select dict_id, dict_name, dict_type, status, create_by, create_time, remark 
20
-		from sys_dict_type
20
+		from ms_sys_dict_type
21 21
     </sql>
22 22
 
23 23
 	<select id="selectDictTypeList" parameterType="SysDictType" resultMap="SysDictTypeResult">
@@ -61,18 +61,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
61 61
 	</select>
62 62
 	
63 63
 	<delete id="deleteDictTypeById" parameterType="Long">
64
- 		delete from sys_dict_type where dict_id = #{dictId}
64
+ 		delete from ms_sys_dict_type where dict_id = #{dictId}
65 65
  	</delete>
66 66
  	
67 67
  	<delete id="deleteDictTypeByIds" parameterType="Long">
68
- 		delete from sys_dict_type where dict_id in
68
+ 		delete from ms_sys_dict_type where dict_id in
69 69
  		<foreach collection="array" item="dictId" open="(" separator="," close=")">
70 70
  			#{dictId}
71 71
         </foreach> 
72 72
  	</delete>
73 73
 
74 74
  	<update id="updateDictType" parameterType="SysDictType">
75
- 		update sys_dict_type
75
+ 		update ms_sys_dict_type
76 76
  		<set>
77 77
  			<if test="dictName != null and dictName != ''">dict_name = #{dictName},</if>
78 78
  			<if test="dictType != null and dictType != ''">dict_type = #{dictType},</if>
@@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
85 85
 	</update>
86 86
  	
87 87
  	<insert id="insertDictType" parameterType="SysDictType">
88
- 		insert into sys_dict_type(
88
+ 		insert into ms_sys_dict_type(
89 89
  			<if test="dictName != null and dictName != ''">dict_name,</if>
90 90
  			<if test="dictType != null and dictType != ''">dict_type,</if>
91 91
  			<if test="status != null">status,</if>

+ 4
- 4
ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml Просмотреть файл

@@ -17,12 +17,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
17 17
 	</resultMap>
18 18
 
19 19
 	<insert id="insertLogininfor" parameterType="SysLogininfor">
20
-		insert into sys_logininfor (user_name, status, ipaddr, login_location, browser, os, msg, login_time)
20
+		insert into ms_sys_logininfor (user_name, status, ipaddr, login_location, browser, os, msg, login_time)
21 21
 		values (#{userName}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg}, sysdate())
22 22
 	</insert>
23 23
 	
24 24
 	<select id="selectLogininforList" parameterType="SysLogininfor" resultMap="SysLogininforResult">
25
-		select info_id, user_name, ipaddr, login_location, browser, os, status, msg, login_time from sys_logininfor
25
+		select info_id, user_name, ipaddr, login_location, browser, os, status, msg, login_time from ms_sys_logininfor
26 26
 		<where>
27 27
 			<if test="ipaddr != null and ipaddr != ''">
28 28
 				AND ipaddr like concat('%', #{ipaddr}, '%')
@@ -44,14 +44,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
44 44
 	</select>
45 45
 	
46 46
 	<delete id="deleteLogininforByIds" parameterType="Long">
47
- 		delete from sys_logininfor where info_id in
47
+ 		delete from ms_sys_logininfor where info_id in
48 48
  		<foreach collection="array" item="infoId" open="(" separator="," close=")">
49 49
  			#{infoId}
50 50
         </foreach> 
51 51
  	</delete>
52 52
     
53 53
     <update id="cleanLogininfor">
54
-        truncate table sys_logininfor
54
+        truncate table ms_sys_logininfor
55 55
     </update>
56 56
     
57 57
 </mapper> 

+ 27
- 27
ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml Просмотреть файл

@@ -29,7 +29,7 @@
29 29
 
30 30
 	<sql id="selectMenuVo">
31 31
         select menu_id, menu_name, parent_id, order_num, path, component, `query`, is_frame, is_cache, menu_type, visible, status, ifnull(perms,'') as perms, icon, create_time 
32
-		from sys_menu
32
+		from ms_sys_menu
33 33
     </sql>
34 34
     
35 35
     <select id="selectMenuList" parameterType="SysMenu" resultMap="SysMenuResult">
@@ -50,16 +50,16 @@
50 50
 	
51 51
 	<select id="selectMenuTreeAll" resultMap="SysMenuResult">
52 52
 		select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
53
-		from sys_menu m where m.menu_type in ('M', 'C') and m.status = 0
53
+		from ms_sys_menu m where m.menu_type in ('M', 'C') and m.status = 0
54 54
 		order by m.parent_id, m.order_num
55 55
 	</select>
56 56
 	
57 57
 	<select id="selectMenuListByUserId" parameterType="SysMenu" resultMap="SysMenuResult">
58 58
 		select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
59
-		from sys_menu m
60
-		left join sys_role_menu rm on m.menu_id = rm.menu_id
61
-		left join sys_user_role ur on rm.role_id = ur.role_id
62
-		left join sys_role ro on ur.role_id = ro.role_id
59
+		from ms_sys_menu m
60
+		left join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id
61
+		left join ms_ms_sys_user_role ur on rm.role_id = ur.role_id
62
+		left join ms_sys_role ro on ur.role_id = ro.role_id
63 63
 		where ur.user_id = #{params.userId}
64 64
 		<if test="menuName != null and menuName != ''">
65 65
             AND m.menu_name like concat('%', #{menuName}, '%')
@@ -75,46 +75,46 @@
75 75
     
76 76
     <select id="selectMenuTreeByUserId" parameterType="Long" resultMap="SysMenuResult">
77 77
 		select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
78
-		from sys_menu m
79
-			 left join sys_role_menu rm on m.menu_id = rm.menu_id
80
-			 left join sys_user_role ur on rm.role_id = ur.role_id
81
-			 left join sys_role ro on ur.role_id = ro.role_id
82
-			 left join sys_user u on ur.user_id = u.user_id
78
+		from ms_sys_menu m
79
+			 left join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id
80
+			 left join ms_ms_sys_user_role ur on rm.role_id = ur.role_id
81
+			 left join ms_sys_role ro on ur.role_id = ro.role_id
82
+			 left join ms_sys_user u on ur.user_id = u.user_id
83 83
 		where u.user_id = #{userId} and m.menu_type in ('M', 'C') and m.status = 0  AND ro.status = 0
84 84
 		order by m.parent_id, m.order_num
85 85
 	</select>
86 86
 	
87 87
 	<select id="selectMenuListByRoleId" resultType="Long">
88 88
 		select m.menu_id
89
-		from sys_menu m
90
-            left join sys_role_menu rm on m.menu_id = rm.menu_id
89
+		from ms_sys_menu m
90
+            left join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id
91 91
         where rm.role_id = #{roleId}
92 92
             <if test="menuCheckStrictly">
93
-              and m.menu_id not in (select m.parent_id from sys_menu m inner join sys_role_menu rm on m.menu_id = rm.menu_id and rm.role_id = #{roleId})
93
+              and m.menu_id not in (select m.parent_id from ms_sys_menu m inner join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id and rm.role_id = #{roleId})
94 94
             </if>
95 95
 		order by m.parent_id, m.order_num
96 96
 	</select>
97 97
 	
98 98
 	<select id="selectMenuPerms" resultType="String">
99 99
 		select distinct m.perms
100
-		from sys_menu m
101
-			 left join sys_role_menu rm on m.menu_id = rm.menu_id
102
-			 left join sys_user_role ur on rm.role_id = ur.role_id
100
+		from ms_sys_menu m
101
+			 left join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id
102
+			 left join ms_ms_sys_user_role ur on rm.role_id = ur.role_id
103 103
 	</select>
104 104
 
105 105
 	<select id="selectMenuPermsByUserId" parameterType="Long" resultType="String">
106 106
 		select distinct m.perms
107
-		from sys_menu m
108
-			 left join sys_role_menu rm on m.menu_id = rm.menu_id
109
-			 left join sys_user_role ur on rm.role_id = ur.role_id
110
-			 left join sys_role r on r.role_id = ur.role_id
107
+		from ms_sys_menu m
108
+			 left join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id
109
+			 left join ms_ms_sys_user_role ur on rm.role_id = ur.role_id
110
+			 left join ms_sys_role r on r.role_id = ur.role_id
111 111
 		where m.status = '0' and r.status = '0' and ur.user_id = #{userId}
112 112
 	</select>
113 113
 	
114 114
 	<select id="selectMenuPermsByRoleId" parameterType="Long" resultType="String">
115 115
 		select distinct m.perms
116
-		from sys_menu m
117
-			 left join sys_role_menu rm on m.menu_id = rm.menu_id
116
+		from ms_sys_menu m
117
+			 left join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id
118 118
 		where m.status = '0' and rm.role_id = #{roleId}
119 119
 	</select>
120 120
 	
@@ -124,7 +124,7 @@
124 124
 	</select>
125 125
 	
126 126
 	<select id="hasChildByMenuId" resultType="Integer">
127
-	    select count(1) from sys_menu where parent_id = #{menuId}  
127
+	    select count(1) from ms_sys_menu where parent_id = #{menuId}  
128 128
 	</select>
129 129
 	
130 130
 	<select id="checkMenuNameUnique" parameterType="SysMenu" resultMap="SysMenuResult">
@@ -133,7 +133,7 @@
133 133
 	</select>
134 134
 	
135 135
 	<update id="updateMenu" parameterType="SysMenu">
136
-		update sys_menu
136
+		update ms_sys_menu
137 137
 		<set>
138 138
 			<if test="menuName != null and menuName != ''">menu_name = #{menuName},</if>
139 139
 			<if test="parentId != null">parent_id = #{parentId},</if>
@@ -156,7 +156,7 @@
156 156
 	</update>
157 157
 
158 158
 	<insert id="insertMenu" parameterType="SysMenu">
159
-		insert into sys_menu(
159
+		insert into ms_sys_menu(
160 160
 		<if test="menuId != null and menuId != 0">menu_id,</if>
161 161
 		<if test="parentId != null and parentId != 0">parent_id,</if>
162 162
 		<if test="menuName != null and menuName != ''">menu_name,</if>
@@ -196,7 +196,7 @@
196 196
 	</insert>
197 197
 	
198 198
 	<delete id="deleteMenuById" parameterType="Long">
199
-	    delete from sys_menu where menu_id = #{menuId}
199
+	    delete from ms_sys_menu where menu_id = #{menuId}
200 200
 	</delete>
201 201
 
202 202
 </mapper> 

+ 5
- 5
ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml Просмотреть файл

@@ -19,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
19 19
     
20 20
     <sql id="selectNoticeVo">
21 21
         select notice_id, notice_title, notice_type, cast(notice_content as char) as notice_content, status, create_by, create_time, update_by, update_time, remark 
22
-		from sys_notice
22
+		from ms_sys_notice
23 23
     </sql>
24 24
     
25 25
     <select id="selectNoticeById" parameterType="Long" resultMap="SysNoticeResult">
@@ -43,7 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
43 43
     </select>
44 44
     
45 45
     <insert id="insertNotice" parameterType="SysNotice">
46
-        insert into sys_notice (
46
+        insert into ms_sys_notice (
47 47
 			<if test="noticeTitle != null and noticeTitle != '' ">notice_title, </if>
48 48
 			<if test="noticeType != null and noticeType != '' ">notice_type, </if>
49 49
 			<if test="noticeContent != null and noticeContent != '' ">notice_content, </if>
@@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
63 63
     </insert>
64 64
 	 
65 65
     <update id="updateNotice" parameterType="SysNotice">
66
-        update sys_notice 
66
+        update ms_sys_notice 
67 67
         <set>
68 68
             <if test="noticeTitle != null and noticeTitle != ''">notice_title = #{noticeTitle}, </if>
69 69
             <if test="noticeType != null and noticeType != ''">notice_type = #{noticeType}, </if>
@@ -76,11 +76,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
76 76
     </update>
77 77
 	
78 78
     <delete id="deleteNoticeById" parameterType="Long">
79
-        delete from sys_notice where notice_id = #{noticeId}
79
+        delete from ms_sys_notice where notice_id = #{noticeId}
80 80
     </delete>
81 81
     
82 82
     <delete id="deleteNoticeByIds" parameterType="Long">
83
-        delete from sys_notice where notice_id in 
83
+        delete from ms_sys_notice where notice_id in 
84 84
         <foreach item="noticeId" collection="array" open="(" separator="," close=")">
85 85
             #{noticeId}
86 86
         </foreach>

+ 4
- 4
ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml Просмотреть файл

@@ -26,11 +26,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
26 26
 
27 27
 	<sql id="selectOperLogVo">
28 28
         select oper_id, title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_location, oper_param, json_result, status, error_msg, oper_time, cost_time
29
-        from sys_oper_log
29
+        from ms_sys_oper_log
30 30
     </sql>
31 31
     
32 32
 	<insert id="insertOperlog" parameterType="SysOperLog">
33
-		insert into sys_oper_log(title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_location, oper_param, json_result, status, error_msg, cost_time, oper_time)
33
+		insert into ms_sys_oper_log(title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_location, oper_param, json_result, status, error_msg, cost_time, oper_time)
34 34
         values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operLocation}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, #{costTime}, sysdate())
35 35
 	</insert>
36 36
 	
@@ -66,7 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
66 66
 	</select>
67 67
 	
68 68
 	<delete id="deleteOperLogByIds" parameterType="Long">
69
- 		delete from sys_oper_log where oper_id in
69
+ 		delete from ms_sys_oper_log where oper_id in
70 70
  		<foreach collection="array" item="operId" open="(" separator="," close=")">
71 71
  			#{operId}
72 72
         </foreach> 
@@ -78,7 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
78 78
 	</select>
79 79
 	
80 80
 	<update id="cleanOperLog">
81
-        truncate table sys_oper_log
81
+        truncate table ms_sys_oper_log
82 82
     </update>
83 83
 
84 84
 </mapper> 

+ 11
- 11
ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml Просмотреть файл

@@ -19,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
19 19
 	
20 20
 	<sql id="selectPostVo">
21 21
         select post_id, post_code, post_name, post_sort, status, create_by, create_time, remark 
22
-		from sys_post
22
+		from ms_sys_post
23 23
     </sql>
24 24
 	
25 25
 	<select id="selectPostList" parameterType="SysPost" resultMap="SysPostResult">
@@ -53,17 +53,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
53 53
 	
54 54
 	<select id="selectPostListByUserId" parameterType="Long" resultType="Long">
55 55
 		select p.post_id
56
-        from sys_post p
57
-	        left join sys_user_post up on up.post_id = p.post_id
58
-	        left join sys_user u on u.user_id = up.user_id
56
+        from ms_sys_post p
57
+	        left join ms_ms_sys_user_post up on up.post_id = p.post_id
58
+	        left join ms_sys_user u on u.user_id = up.user_id
59 59
 	    where u.user_id = #{userId}
60 60
 	</select>
61 61
 	
62 62
 	<select id="selectPostsByUserName" parameterType="String" resultMap="SysPostResult">
63 63
 		select p.post_id, p.post_name, p.post_code
64
-		from sys_post p
65
-			 left join sys_user_post up on up.post_id = p.post_id
66
-			 left join sys_user u on u.user_id = up.user_id
64
+		from ms_sys_post p
65
+			 left join ms_ms_sys_user_post up on up.post_id = p.post_id
66
+			 left join ms_sys_user u on u.user_id = up.user_id
67 67
 		where u.user_name = #{userName}
68 68
 	</select>
69 69
 	
@@ -78,7 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
78 78
 	</select>
79 79
 	
80 80
 	<update id="updatePost" parameterType="SysPost">
81
- 		update sys_post
81
+ 		update ms_sys_post
82 82
  		<set>
83 83
  			<if test="postCode != null and postCode != ''">post_code = #{postCode},</if>
84 84
  			<if test="postName != null and postName != ''">post_name = #{postName},</if>
@@ -92,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
92 92
 	</update>
93 93
  	
94 94
  	<insert id="insertPost" parameterType="SysPost" useGeneratedKeys="true" keyProperty="postId">
95
- 		insert into sys_post(
95
+ 		insert into ms_sys_post(
96 96
  			<if test="postId != null and postId != 0">post_id,</if>
97 97
  			<if test="postCode != null and postCode != ''">post_code,</if>
98 98
  			<if test="postName != null and postName != ''">post_name,</if>
@@ -114,11 +114,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
114 114
 	</insert>
115 115
 	
116 116
 	<delete id="deletePostById" parameterType="Long">
117
-		delete from sys_post where post_id = #{postId}
117
+		delete from ms_sys_post where post_id = #{postId}
118 118
 	</delete>
119 119
 	
120 120
 	<delete id="deletePostByIds" parameterType="Long">
121
- 		delete from sys_post where post_id in
121
+ 		delete from ms_sys_post where post_id in
122 122
  		<foreach collection="array" item="postId" open="(" separator="," close=")">
123 123
  			#{postId}
124 124
         </foreach> 

+ 4
- 4
ruoyi-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml Просмотреть файл

@@ -10,22 +10,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
10 10
 	</resultMap>
11 11
 
12 12
 	<delete id="deleteRoleDeptByRoleId" parameterType="Long">
13
-		delete from sys_role_dept where role_id=#{roleId}
13
+		delete from ms_sys_role_dept where role_id=#{roleId}
14 14
 	</delete>
15 15
 	
16 16
 	<select id="selectCountRoleDeptByDeptId" resultType="Integer">
17
-	    select count(1) from sys_role_dept where dept_id=#{deptId}
17
+	    select count(1) from ms_sys_role_dept where dept_id=#{deptId}
18 18
 	</select>
19 19
 	
20 20
 	<delete id="deleteRoleDept" parameterType="Long">
21
- 		delete from sys_role_dept where role_id in
21
+ 		delete from ms_sys_role_dept where role_id in
22 22
  		<foreach collection="array" item="roleId" open="(" separator="," close=")">
23 23
  			#{roleId}
24 24
         </foreach> 
25 25
  	</delete>
26 26
 	
27 27
 	<insert id="batchRoleDept">
28
-		insert into sys_role_dept(role_id, dept_id) values
28
+		insert into ms_sys_role_dept(role_id, dept_id) values
29 29
 		<foreach item="item" index="index" collection="list" separator=",">
30 30
 			(#{item.roleId},#{item.deptId})
31 31
 		</foreach>

+ 12
- 12
ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml Просмотреть файл

@@ -24,10 +24,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
24 24
 	<sql id="selectRoleVo">
25 25
 	    select distinct r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.menu_check_strictly, r.dept_check_strictly,
26 26
             r.status, r.del_flag, r.create_time, r.remark 
27
-        from sys_role r
28
-	        left join sys_user_role ur on ur.role_id = r.role_id
29
-	        left join sys_user u on u.user_id = ur.user_id
30
-	        left join sys_dept d on u.dept_id = d.dept_id
27
+        from ms_sys_role r
28
+	        left join ms_ms_sys_user_role ur on ur.role_id = r.role_id
29
+	        left join ms_sys_user u on u.user_id = ur.user_id
30
+	        left join ms_sys_dept d on u.dept_id = d.dept_id
31 31
     </sql>
32 32
     
33 33
     <select id="selectRoleList" parameterType="SysRole" resultMap="SysRoleResult">
@@ -67,9 +67,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
67 67
 	
68 68
 	<select id="selectRoleListByUserId" parameterType="Long" resultType="Long">
69 69
 		select r.role_id
70
-        from sys_role r
71
-	        left join sys_user_role ur on ur.role_id = r.role_id
72
-	        left join sys_user u on u.user_id = ur.user_id
70
+        from ms_sys_role r
71
+	        left join ms_ms_sys_user_role ur on ur.role_id = r.role_id
72
+	        left join ms_sys_user u on u.user_id = ur.user_id
73 73
 	    where u.user_id = #{userId}
74 74
 	</select>
75 75
 	
@@ -93,11 +93,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
93 93
 		 where r.role_key=#{roleKey} and r.del_flag = '0' limit 1
94 94
 	</select>
95 95
     <select id="selectRoleIdByName" resultType="java.lang.Long" >
96
-		select role_id from sys_role where role_name=#{roleName}
96
+		select role_id from ms_sys_role where role_name=#{roleName}
97 97
 	</select>
98 98
 
99 99
 	<insert id="insertRole" parameterType="SysRole" useGeneratedKeys="true" keyProperty="roleId">
100
- 		insert into sys_role(
100
+ 		insert into ms_sys_role(
101 101
  			<if test="roleId != null and roleId != 0">role_id,</if>
102 102
  			<if test="roleName != null and roleName != ''">role_name,</if>
103 103
  			<if test="roleKey != null and roleKey != ''">role_key,</if>
@@ -125,7 +125,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
125 125
 	</insert>
126 126
 	
127 127
 	<update id="updateRole" parameterType="SysRole">
128
- 		update sys_role
128
+ 		update ms_sys_role
129 129
  		<set>
130 130
  			<if test="roleName != null and roleName != ''">role_name = #{roleName},</if>
131 131
  			<if test="roleKey != null and roleKey != ''">role_key = #{roleKey},</if>
@@ -142,11 +142,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
142 142
 	</update>
143 143
 	
144 144
 	<delete id="deleteRoleById" parameterType="Long">
145
- 		update sys_role set del_flag = '2' where role_id = #{roleId}
145
+ 		update ms_sys_role set del_flag = '2' where role_id = #{roleId}
146 146
  	</delete>
147 147
  	
148 148
  	<delete id="deleteRoleByIds" parameterType="Long">
149
- 	    update sys_role set del_flag = '2' where role_id in
149
+ 	    update ms_sys_role set del_flag = '2' where role_id in
150 150
  		<foreach collection="array" item="roleId" open="(" separator="," close=")">
151 151
  			#{roleId}
152 152
         </foreach> 

+ 4
- 4
ruoyi-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml Просмотреть файл

@@ -10,22 +10,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
10 10
 	</resultMap>
11 11
 	
12 12
 	<select id="checkMenuExistRole" resultType="Integer">
13
-	    select count(1) from sys_role_menu where menu_id = #{menuId}
13
+	    select count(1) from ms_sys_role_menu where menu_id = #{menuId}
14 14
 	</select>
15 15
 
16 16
 	<delete id="deleteRoleMenuByRoleId" parameterType="Long">
17
-		delete from sys_role_menu where role_id=#{roleId}
17
+		delete from ms_sys_role_menu where role_id=#{roleId}
18 18
 	</delete>
19 19
 	
20 20
 	<delete id="deleteRoleMenu" parameterType="Long">
21
- 		delete from sys_role_menu where role_id in
21
+ 		delete from ms_sys_role_menu where role_id in
22 22
  		<foreach collection="array" item="roleId" open="(" separator="," close=")">
23 23
  			#{roleId}
24 24
         </foreach> 
25 25
  	</delete>
26 26
 	
27 27
 	<insert id="batchRoleMenu">
28
-		insert into sys_role_menu(role_id, menu_id) values
28
+		insert into ms_sys_role_menu(role_id, menu_id) values
29 29
 		<foreach item="item" index="index" collection="list" separator=",">
30 30
 			(#{item.roleId},#{item.menuId})
31 31
 		</foreach>

+ 50
- 50
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml Просмотреть файл

@@ -52,19 +52,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
52 52
         select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, 
53 53
         d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status,
54 54
         r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status,u.id_card
55
-        from sys_user u
56
-		    left join sys_dept d on u.dept_id = d.dept_id
57
-		    left join sys_user_role ur on u.user_id = ur.user_id
58
-		    left join sys_role r on r.role_id = ur.role_id
55
+        from ms_sys_user u
56
+		    left join ms_sys_dept d on u.dept_id = d.dept_id
57
+		    left join ms_sys_user_role ur on u.user_id = ur.user_id
58
+		    left join ms_sys_role r on r.role_id = ur.role_id
59 59
     </sql>
60 60
     
61 61
     <select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult">
62 62
 		select u.user_id, u.dept_id, u.nick_name, u.user_name,u.id_card, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name,
63 63
 		 d.leader , r.role_id, r.role_name, d.dept_id
64
-		from sys_user u
65
-		left join sys_dept d on u.dept_id = d.dept_id
66
-		left join sys_user_role ur on u.user_id = ur.user_id
67
-		left join sys_role r on r.role_id = ur.role_id
64
+		from ms_sys_user u
65
+		left join ms_sys_dept d on u.dept_id = d.dept_id
66
+		left join ms_sys_user_role ur on u.user_id = ur.user_id
67
+		left join ms_sys_role r on r.role_id = ur.role_id
68 68
 		where u.del_flag = '0'
69 69
 		<if test="userId != null and userId != 0">
70 70
 			AND u.user_id = #{userId}
@@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
85 85
 			AND date_format(u.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
86 86
 		</if>
87 87
 		<if test="deptId != null and deptId != 0">
88
-			AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors) ))
88
+			AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM ms_sys_dept t WHERE find_in_set(#{deptId}, ancestors) ))
89 89
 		</if>
90 90
 		<!-- 数据范围过滤 -->
91 91
 		${params.dataScope}
@@ -93,10 +93,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
93 93
 	
94 94
 	<select id="selectAllocatedList" parameterType="SysUser" resultMap="SysUserResult">
95 95
 	    select distinct u.user_id, u.dept_id, u.user_name, u.nick_name,u.id_card, u.email, u.phonenumber, u.status, u.create_time
96
-	    from sys_user u
97
-			 left join sys_dept d on u.dept_id = d.dept_id
98
-			 left join sys_user_role ur on u.user_id = ur.user_id
99
-			 left join sys_role r on r.role_id = ur.role_id
96
+	    from ms_sys_user u
97
+			 left join ms_sys_dept d on u.dept_id = d.dept_id
98
+			 left join ms_sys_user_role ur on u.user_id = ur.user_id
99
+			 left join ms_sys_role r on r.role_id = ur.role_id
100 100
 	    where u.del_flag = '0' and r.role_id = #{roleId}
101 101
 	    <if test="userName != null and userName != ''">
102 102
 			AND u.user_name like concat('%', #{userName}, '%')
@@ -110,12 +110,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
110 110
 	
111 111
 	<select id="selectUnallocatedList" parameterType="SysUser" resultMap="SysUserResult">
112 112
 	    select distinct u.user_id, u.dept_id, u.user_name, u.nick_name,u.id_card, u.email, u.phonenumber, u.status, u.create_time
113
-	    from sys_user u
114
-			 left join sys_dept d on u.dept_id = d.dept_id
115
-			 left join sys_user_role ur on u.user_id = ur.user_id
116
-			 left join sys_role r on r.role_id = ur.role_id
113
+	    from ms_sys_user u
114
+			 left join ms_sys_dept d on u.dept_id = d.dept_id
115
+			 left join ms_sys_user_role ur on u.user_id = ur.user_id
116
+			 left join ms_sys_role r on r.role_id = ur.role_id
117 117
 	    where u.del_flag = '0' and (r.role_id != #{roleId} or r.role_id IS NULL)
118
-	    and u.user_id not in (select u.user_id from sys_user u inner join sys_user_role ur on u.user_id = ur.user_id and ur.role_id = #{roleId})
118
+	    and u.user_id not in (select u.user_id from ms_sys_user u inner join ms_sys_user_role ur on u.user_id = ur.user_id and ur.role_id = #{roleId})
119 119
 	    <if test="userName != null and userName != ''">
120 120
 			AND u.user_name like concat('%', #{userName}, '%')
121 121
 		</if>
@@ -139,27 +139,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
139 139
 	<select id="selectUserByDeptId" parameterType="Long" resultMap="SysUserResult">
140 140
 		SELECT  ud.user_id , ud.nick_name ,ud.phonenumber ,ud.dept_id ,d.dept_name
141 141
         FROM  (SELECT u.user_id , u.nick_name ,u.phonenumber ,u.dept_id
142
-        FROM sys_user_post up left join sys_user  u on u.user_id  = up.user_id
143
-            left join  sys_post  sp on up.post_id  = sp.post_id
144
-        where sp.post_code = 'jbr') ud left join sys_dept d on ud.dept_id = d.dept_id
142
+        FROM ms_sys_user_post up left join ms_sys_user  u on u.user_id  = up.user_id
143
+            left join  ms_sys_post  sp on up.post_id  = sp.post_id
144
+        where sp.post_code = 'jbr') ud left join ms_sys_dept d on ud.dept_id = d.dept_id
145 145
 		where d.dept_id = #{deptId}
146 146
 	</select>
147 147
 	
148 148
 	<select id="checkUserNameUnique" parameterType="String" resultMap="SysUserResult">
149
-		select user_id, user_name from sys_user where user_name = #{userName} and del_flag = '0' limit 1
149
+		select user_id, user_name from ms_sys_user where user_name = #{userName} and del_flag = '0' limit 1
150 150
 	</select>
151 151
 	
152 152
 	<select id="checkPhoneUnique" parameterType="String" resultMap="SysUserResult">
153
-		select user_id, phonenumber from sys_user where phonenumber = #{phonenumber} and del_flag = '0' limit 1
153
+		select user_id, phonenumber from ms_sys_user where phonenumber = #{phonenumber} and del_flag = '0' limit 1
154 154
 	</select>
155 155
 	
156 156
 	<select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult">
157
-		select user_id, email from sys_user where email = #{email} and del_flag = '0' limit 1
157
+		select user_id, email from ms_sys_user where email = #{email} and del_flag = '0' limit 1
158 158
 	</select>
159 159
 	<select id="selectUserListByAdRole" resultMap="SysUserResult">
160
-		select u.user_id, u.dept_id, u.nick_name, u.user_name,u.id_card, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark from sys_user u
161
-		 join sys_user_role ur on ur.user_id =u.user_id
162
-		    join sys_role r on ur.role_id = r.role_id and r.role_name='仲裁员'
160
+		select u.user_id, u.dept_id, u.nick_name, u.user_name,u.id_card, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark from ms_sys_user u
161
+		 join ms_sys_user_role ur on ur.user_id =u.user_id
162
+		    join ms_sys_role r on ur.role_id = r.role_id and r.role_name='仲裁员'
163 163
 		where r.del_flag = '0' and r.status='0'
164 164
 		and u.del_flag = '0' and u.status='0'
165 165
 			<if test="arbitratorName != null and arbitratorName != ''">
@@ -176,7 +176,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
176 176
 
177 177
 	</select>
178 178
 	<select id="selectUserListByIds" resultMap="SysUserResult">
179
-		select u.user_id,  u.nick_name, u.user_name,u.id_card, u.phonenumber, u.remark from sys_user u
179
+		select u.user_id,  u.nick_name, u.user_name,u.id_card, u.phonenumber, u.remark from ms_sys_user u
180 180
 
181 181
 			<where>
182 182
 		<if test="idList != null and idList.size() > 0">
@@ -192,31 +192,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
192 192
 
193 193
 	<select id="selectUserByIdCard" parameterType="String" resultMap="SysUserResult">
194 194
 		select u.*,d.dept_name,ur.role_id
195
-			from sys_user u
196
-		    left join sys_dept d on u.dept_id = d.dept_id
197
-			left join sys_user_role ur on u.user_id = ur.user_id
198
-			left join sys_role r on r.role_id = ur.role_id
195
+			from ms_sys_user u
196
+		    left join ms_sys_dept d on u.dept_id = d.dept_id
197
+			left join ms_sys_user_role ur on u.user_id = ur.user_id
198
+			left join ms_sys_role r on r.role_id = ur.role_id
199 199
 		where u.id_card = #{idCard} and u.del_flag = '0' and u.status='0' order by u.create_time limit 1
200 200
 	</select>
201 201
 	<select id="selectUserByPhone" parameterType="String" resultMap="SysUserResult">
202 202
 		select u.*,d.dept_name,ur.role_id
203
-			from sys_user u
204
-		    left join sys_dept d on u.dept_id = d.dept_id
205
-			left join sys_user_role ur on u.user_id = ur.user_id
206
-			left join sys_role r on r.role_id = ur.role_id
203
+			from ms_sys_user u
204
+		    left join ms_sys_dept d on u.dept_id = d.dept_id
205
+			left join ms_sys_user_role ur on u.user_id = ur.user_id
206
+			left join ms_sys_role r on r.role_id = ur.role_id
207 207
 		where u.phonenumber = #{phone} and u.del_flag = '0' and u.status='0' order by u.create_time limit 1
208 208
 	</select>
209 209
     <select id="selectByDeptIdAndRole" resultMap="SysUserResult">
210 210
 		select u.* from
211
-		               sys_user u
212
-		                join sys_user_role ur on u.user_id = ur.user_id
213
-		                join sys_role r on ur.role_id = r.role_id
211
+		               ms_sys_user u
212
+		                join ms_sys_user_role ur on u.user_id = ur.user_id
213
+		                join ms_sys_role r on ur.role_id = r.role_id
214 214
 		where u.dept_id = #{deptId} and r.role_name = #{roleName} and u.del_flag = '0' and r.del_flag='0'
215 215
 	</select>
216 216
 
217 217
 
218 218
     <insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
219
- 		insert into sys_user(
219
+ 		insert into ms_sys_user(
220 220
  			<if test="userId != null and userId != 0">user_id,</if>
221 221
  			<if test="deptId != null and deptId != 0">dept_id,</if>
222 222
  			<if test="userName != null and userName != ''">user_name,</if>
@@ -249,7 +249,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
249 249
  		)
250 250
 	</insert>
251 251
     <insert id="batchSave">
252
-		insert into sys_user(
252
+		insert into ms_sys_user(
253 253
 		user_id,
254 254
 		dept_id,
255 255
 		user_name,
@@ -286,7 +286,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
286 286
 	</insert>
287 287
 
288 288
     <update id="updateUser" parameterType="SysUser">
289
- 		update sys_user
289
+ 		update ms_sys_user
290 290
  		<set>
291 291
  			<if test="deptId != null and deptId != 0">dept_id = #{deptId},</if>
292 292
  			<if test="userName != null and userName != ''">user_name = #{userName},</if>
@@ -308,31 +308,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
308 308
 	</update>
309 309
 	
310 310
 	<update id="updateUserStatus" parameterType="SysUser">
311
- 		update sys_user set status = #{status} where user_id = #{userId}
311
+ 		update ms_sys_user set status = #{status} where user_id = #{userId}
312 312
 	</update>
313 313
 	
314 314
 	<update id="updateUserAvatar" parameterType="SysUser">
315
- 		update sys_user set avatar = #{avatar} where user_name = #{userName}
315
+ 		update ms_sys_user set avatar = #{avatar} where user_name = #{userName}
316 316
 	</update>
317 317
 	
318 318
 	<update id="resetUserPwd" parameterType="SysUser">
319
- 		update sys_user set password = #{password} where user_name = #{userName}
319
+ 		update ms_sys_user set password = #{password} where user_name = #{userName}
320 320
 	</update>
321 321
 	
322 322
 	<delete id="deleteUserById" parameterType="Long">
323
- 		update sys_user set del_flag = '2' where user_id = #{userId}
323
+ 		update ms_sys_user set del_flag = '2' where user_id = #{userId}
324 324
  	</delete>
325 325
  	
326 326
  	<delete id="deleteUserByIds" parameterType="Long">
327
- 		update sys_user set del_flag = '2' where user_id in
327
+ 		update ms_sys_user set del_flag = '2' where user_id in
328 328
  		<foreach collection="array" item="userId" open="(" separator="," close=")">
329 329
  			#{userId}
330 330
         </foreach> 
331 331
  	</delete>
332 332
 	<select id="selectRoleUserByDeptId" parameterType="long" resultMap="SysUserResult">
333
-		SELECT u.* FROM sys_user u
334
-		INNER JOIN sys_user_role ur ON u.user_id = ur.user_id
335
-		INNER JOIN sys_dept d ON u.dept_id = d.dept_id
333
+		SELECT u.* FROM ms_sys_user u
334
+		INNER JOIN ms_sys_user_role ur ON u.user_id = ur.user_id
335
+		INNER JOIN ms_sys_dept d ON u.dept_id = d.dept_id
336 336
 		WHERE ur.role_id = #{roleId} AND d.dept_id = #{deptId};
337 337
 	</select>
338 338
 	

+ 4
- 4
ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml Просмотреть файл

@@ -10,22 +10,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
10 10
 	</resultMap>
11 11
 
12 12
 	<delete id="deleteUserPostByUserId" parameterType="Long">
13
-		delete from sys_user_post where user_id=#{userId}
13
+		delete from ms_sys_user_post where user_id=#{userId}
14 14
 	</delete>
15 15
 	
16 16
 	<select id="countUserPostById" resultType="Integer">
17
-	    select count(1) from sys_user_post where post_id=#{postId}  
17
+	    select count(1) from ms_sys_user_post where post_id=#{postId}  
18 18
 	</select>
19 19
 	
20 20
 	<delete id="deleteUserPost" parameterType="Long">
21
- 		delete from sys_user_post where user_id in
21
+ 		delete from ms_sys_user_post where user_id in
22 22
  		<foreach collection="array" item="userId" open="(" separator="," close=")">
23 23
  			#{userId}
24 24
         </foreach> 
25 25
  	</delete>
26 26
 	
27 27
 	<insert id="batchUserPost">
28
-		insert into sys_user_post(user_id, post_id) values
28
+		insert into ms_sys_user_post(user_id, post_id) values
29 29
 		<foreach item="item" index="index" collection="list" separator=",">
30 30
 			(#{item.userId},#{item.postId})
31 31
 		</foreach>

+ 6
- 6
ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml Просмотреть файл

@@ -10,33 +10,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
10 10
 	</resultMap>
11 11
 
12 12
 	<delete id="deleteUserRoleByUserId" parameterType="Long">
13
-		delete from sys_user_role where user_id=#{userId}
13
+		delete from ms_sys_user_role where user_id=#{userId}
14 14
 	</delete>
15 15
 	
16 16
 	<select id="countUserRoleByRoleId" resultType="Integer">
17
-	    select count(1) from sys_user_role where role_id=#{roleId}  
17
+	    select count(1) from ms_sys_user_role where role_id=#{roleId}  
18 18
 	</select>
19 19
 	
20 20
 	<delete id="deleteUserRole" parameterType="Long">
21
- 		delete from sys_user_role where user_id in
21
+ 		delete from ms_sys_user_role where user_id in
22 22
  		<foreach collection="array" item="userId" open="(" separator="," close=")">
23 23
  			#{userId}
24 24
         </foreach> 
25 25
  	</delete>
26 26
 	
27 27
 	<insert id="batchUserRole">
28
-		insert into sys_user_role(user_id, role_id) values
28
+		insert into ms_sys_user_role(user_id, role_id) values
29 29
 		<foreach item="item" index="index" collection="list" separator=",">
30 30
 			(#{item.userId},#{item.roleId})
31 31
 		</foreach>
32 32
 	</insert>
33 33
 	
34 34
 	<delete id="deleteUserRoleInfo" parameterType="SysUserRole">
35
-		delete from sys_user_role where user_id=#{userId} and role_id=#{roleId}
35
+		delete from ms_sys_user_role where user_id=#{userId} and role_id=#{roleId}
36 36
 	</delete>
37 37
 	
38 38
 	<delete id="deleteUserRoleInfos">
39
-	    delete from sys_user_role where role_id=#{roleId} and user_id in
39
+	    delete from ms_sys_user_role where role_id=#{roleId} and user_id in
40 40
  	    <foreach collection="userIds" item="userId" open="(" separator="," close=")">
41 41
  	        #{userId}
42 42
             </foreach> 

+ 0
- 109
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/ArbitrateRecordMapper.xml Просмотреть файл

@@ -1,109 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" ?>
2
-<!DOCTYPE mapper
3
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
-        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
-<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.ArbitrateRecordMapper">
6
-    <resultMap type="ArbitrateRecord" id="ArbitrateRecordResult">
7
-        <id     property="id"       column="id"      />
8
-        <result property="caseAppliId"       column="case_appli_id"      />
9
-        <result property="evidenDetermi"     column="eviden_determi"    />
10
-        <result property="factDetermi"     column="fact_determi"    />
11
-        <result property="caseSketch"        column="case_sketch"        />
12
-        <result property="arbitrateThink"  column="arbitrate_think"  />
13
-        <result property="rulingFollows"          column="ruling_follows"          />
14
-        <result property="verificaOpinion"       column="verifica_opinion"       />
15
-        <result property="checkOpinion"     column="check_opinion"     />
16
-        <result property="annexId"     column="annex_id"     />
17
-        <result property="caseFocus"     column="case_focus"     />
18
-        <result property="caseFacts"     column="case_facts"     />
19
-        <result property="respondentOpinion"     column="respondent_opinion"     />
20
-        <result property="applicantOpinion"     column="applicant_opinion"     />
21
-
22
-    </resultMap>
23
-
24
-    <insert id="insertArbitrateRecord" parameterType="ArbitrateRecord" useGeneratedKeys="true" keyProperty="id">
25
-        insert into arbitrate_record(
26
-        <if test="caseAppliId != null">case_appli_id,</if>
27
-        <if test="evidenDetermi != null and evidenDetermi != ''">eviden_determi,</if>
28
-        <if test="factDetermi != null and factDetermi != ''">fact_determi,</if>
29
-        <if test="caseSketch != null and caseSketch != ''">case_sketch,</if>
30
-        <if test="rulingFollows != null and rulingFollows != ''">ruling_follows,</if>
31
-        <if test="verificaOpinion != null and verificaOpinion != ''">verifica_opinion,</if>
32
-        <if test="arbitrateThink != null and arbitrateThink != ''">arbitrate_think,</if>
33
-
34
-        <if test="checkOpinion != null and checkOpinion != ''">check_opinion,</if>
35
-        <if test="caseCheckReject != null and caseCheckReject != ''">case_check_reject,</if>
36
-        <if test="arbitrateReject != null and arbitrateReject != ''">arbitrate_reject,</if>
37
-        <if test="createBy != null  and createBy != ''">create_by,</if>
38
-        case_focus,
39
-        case_facts,
40
-        respondent_opinion,
41
-        applicant_opinion,
42
-        create_time
43
-        )values(
44
-        <if test="caseAppliId != null ">#{caseAppliId},</if>
45
-        <if test="evidenDetermi != null and evidenDetermi != ''">#{evidenDetermi},</if>
46
-        <if test="factDetermi != null and factDetermi != ''">#{factDetermi},</if>
47
-        <if test="caseSketch != null and caseSketch != ''">#{caseSketch},</if>
48
-        <if test="rulingFollows != null and rulingFollows != ''">#{rulingFollows},</if>
49
-        <if test="verificaOpinion != null and verificaOpinion != ''">#{verificaOpinion},</if>
50
-        <if test="arbitrateThink != null and arbitrateThink != ''">#{arbitrateThink},</if>
51
-        <if test="checkOpinion != null and checkOpinion != ''">#{checkOpinion},</if>
52
-        <if test="caseCheckReject != null and caseCheckReject != ''">#{caseCheckReject},</if>
53
-        <if test="arbitrateReject != null and arbitrateReject != ''">#{arbitrateReject},</if>
54
-        <if test="createBy != null  and createBy != ''">#{createBy},</if>
55
-        #{caseFocus},
56
-        #{caseFacts},
57
-        #{respondentOpinion},
58
-        #{applicantOpinion},
59
-        sysdate()
60
-        )
61
-    </insert>
62
-
63
-
64
-    <update id="updataArbitrateRecord" parameterType="ArbitrateRecord">
65
-        update arbitrate_record
66
-        <set>
67
-            <if test="evidenDetermi != null and evidenDetermi != ''">eviden_determi = #{evidenDetermi},</if>
68
-            <if test="factDetermi != null and factDetermi != ''">fact_determi = #{factDetermi},</if>
69
-            <if test="caseSketch != null and caseSketch != ''">case_sketch = #{caseSketch},</if>
70
-            <if test="arbitrateThink != null and arbitrateThink != ''">arbitrate_think = #{arbitrateThink},</if>
71
-            <if test="rulingFollows != null and rulingFollows != ''">ruling_follows = #{rulingFollows},</if>
72
-            <if test="verificaOpinion != null and verificaOpinion != ''">verifica_opinion = #{verificaOpinion},</if>
73
-            <if test="checkOpinion != null and checkOpinion != ''">check_opinion = #{checkOpinion},</if>
74
-            <if test="arbitraCheckOpinion != null and arbitraCheckOpinion != ''">arbitra_check_opinion = #{arbitraCheckOpinion},</if>
75
-            <if test="annexId != null ">annex_id = #{annexId},</if>
76
-            <if test="updateBy != null  and updateBy != ''">update_by = #{updateBy},</if>
77
-            <if test="caseFocus != null  and caseFocus != ''">case_focus = #{caseFocus},</if>
78
-            <if test="caseFacts != null  and caseFacts != ''">case_facts = #{caseFacts},</if>
79
-            <if test="respondentOpinion != null  and respondentOpinion != ''">respondent_opinion = #{respondentOpinion},</if>
80
-            <if test="applicantOpinion != null  and applicantOpinion != ''">applicant_opinion = #{applicantOpinion},</if>
81
-            <if test="caseCheckReject != null  and caseCheckReject != ''">case_check_reject = #{caseCheckReject},</if>
82
-            <if test="arbitrateReject != null  and arbitrateReject != ''">arbitrate_reject = #{arbitrateReject},</if>
83
-            <if test="deptorReject != null  and deptorReject != ''">deptor_reject = #{deptorReject},</if>
84
-            update_time = sysdate()
85
-        </set>
86
-        where id = #{id}
87
-    </update>
88
-
89
-
90
-    <select id="selectArbitrateRecord" parameterType="ArbitrateRecord" resultMap="ArbitrateRecordResult">
91
-        SELECT a.id ,a.case_appli_id ,a.eviden_determi ,a.fact_determi ,a.case_sketch ,a.arbitrate_think ,a.ruling_follows ,
92
-        a.verifica_opinion ,a.check_opinion,a.annex_id,a.case_focus,a.case_facts,a.respondent_opinion,a.applicant_opinion,
93
-        a.case_check_reject ,a.arbitrate_reject,a.deptor_reject
94
-        from arbitrate_record a
95
-        <where>
96
-            <if test="caseAppliId != null ">
97
-                AND a.case_appli_id  = #{caseAppliId}
98
-            </if>
99
-        </where>
100
-    </select>
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-</mapper>

+ 0
- 40
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/ArbitratorMapper.xml Просмотреть файл

@@ -1,40 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" ?>
2
-<!DOCTYPE mapper
3
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
-        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
-<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.ArbitratorMapper">
6
-    <resultMap type="Arbitrator" id="ArbitratorResult">
7
-        <id     property="id"       column="id"      />
8
-        <result property="arbitratorName"       column="arbitrator_name"      />
9
-        <result property="title"     column="title"    />
10
-        <result property="career"     column="career"    />
11
-        <result property="professiClassifi"        column="professi_classifi"        />
12
-        <result property="education"  column="education"  />
13
-        <result property="area"          column="area"          />
14
-        <result property="telephone"       column="telephone"       />
15
-        <result property="currentCaseNum"     column="current_case_num"     />
16
-        <result property="closedCaseNum"       column="closed_case_num"       />
17
-
18
-    </resultMap>
19
-
20
-
21
-    <select id="selectArbitratorList" parameterType="Arbitrator" resultMap="ArbitratorResult">
22
-        select a.id ,a.arbitrator_name ,a.title ,a.career ,a.professi_classifi ,
23
-        a.education ,a.area ,a.telephone ,a.current_case_num ,a.closed_case_num
24
-        from arbitrator a
25
-        <where>
26
-            <if test="arbitratorName != null and arbitratorName != ''">
27
-                AND a.arbitrator_name like concat('%', #{arbitratorName}, '%')
28
-            </if>
29
-
30
-            <if test="idList != null and idList.size() > 0">
31
-                AND a.id in
32
-                <foreach item="id" collection="idList" open="(" separator="," close=")">
33
-                    #{id}
34
-                </foreach>
35
-            </if>
36
-
37
-        </where>
38
-    </select>
39
-
40
-</mapper>

+ 0
- 137
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAffiliateLogMapper.xml Просмотреть файл

@@ -1,137 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" ?>
2
-<!DOCTYPE mapper
3
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
-        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
-<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.CaseAffiliateLogMapper">
6
-
7
-    <resultMap type="com.ruoyi.wisdomarbitrate.domain.CaseAffiliate" id="CaseAffiliateResult">
8
-        <id     property="id"       column="id"      />
9
-        <result property="caseAppliLogId"       column="case_appli_log_id"      />
10
-        <result property="identityType"     column="identity_type"    />
11
-        <result property="name"     column="name"    />
12
-        <result property="identityNum"        column="identity_num"        />
13
-        <result property="workTelphone"  column="work_telphone"  />
14
-        <result property="contactTelphone"          column="contact_telphone"          />
15
-        <result property="contactAddress"       column="contact_address"       />
16
-        <result property="workAddress"     column="work_address"     />
17
-        <result property="nameAgent"       column="name_agent"       />
18
-        <result property="identityNumAgent"      column="identity_num_agent"     />
19
-        <result property="contactTelphoneAgent"      column="contact_telphone_agent"     />
20
-        <result property="contactAddressAgent"    column="contact_address_agent"   />
21
-        <result property="trackNum"    column="track_num"   />
22
-        <result property="applicationOrganId"    column="application_organ_id"   />
23
-        <result property="applicationOrganName"    column="application_organ_name"   />
24
-
25
-        <result property="compLegalPerson"    column="comp_legal_person"   />
26
-        <result property="compLegalperPost"    column="comp_legalper_post"   />
27
-        <result property="responSex"    column="respon_sex"   />
28
-        <result property="responBirth"    column="respon_birth"   />
29
-
30
-        <result property="residenAffili"    column="residen_affili"   />
31
-        <result property="appliAgentTitle"    column="appli_agent_title"   />
32
-        <result property="userId"    column="user_id"   />
33
-        <result property="email"     column="email"    />
34
-        <result property="sendEmail"     column="send_email"    />
35
-        <result property="applicantAgentUserId"     column="applicant_agent_user_id"    />
36
-        <result property="agentEmail"     column="agent_email"    />
37
-    </resultMap>
38
-
39
-    <select id="selectCaseAffiliate" parameterType="CaseAffiliate" resultMap="CaseAffiliateResult">
40
-        select c.*,s.user_id
41
-        from case_affiliate_log c
42
-        left join sys_user s on c.identity_num=s.id_card
43
-        <where>
44
-            <if test="caseAppliLogId != null ">
45
-                AND c.case_appli_log_id = #{caseAppliLogId}
46
-            </if>
47
-
48
-        </where>
49
-    </select>
50
-    <select id="selectCaseAffiliateByIdentityType"  resultMap="CaseAffiliateResult">
51
-        select c.*
52
-        from case_affiliate_log c
53
-        <where>
54
-            <if test="caseAppliLogId != null ">
55
-                AND c.case_appli_log_id = #{caseAppliLogId}
56
-            </if>
57
-            <if test="identityType != null ">
58
-                AND c.identity_type = #{identityType}
59
-            </if>
60
-        </where>
61
-    </select>
62
-
63
-
64
-
65
-    <insert id="batchCaseAffiliate">
66
-        insert into case_affiliate_log(case_appli_log_id, identity_type,application_organ_id,application_organ_name,name,identity_num,contact_telphone,
67
-        contact_address,work_address,work_telphone ,name_agent,identity_num_agent,contact_telphone_agent,
68
-        comp_legal_person,comp_legalper_post,respon_sex ,respon_birth,
69
-        residen_affili,appli_agent_title,
70
-        contact_address_agent,email , send_email,track_num,applicant_agent_user_id,agent_email) values
71
-        <foreach item="item" index="index" collection="list" separator=",">
72
-            (#{item.caseAppliLogId},#{item.identityType},#{item.applicationOrganId},#{item.applicationOrganName},#{item.name},#{item.identityNum},#{item.contactTelphone},
73
-            #{item.contactAddress},#{item.workAddress},#{item.workTelphone},  #{item.nameAgent},#{item.identityNumAgent},#{item.contactTelphoneAgent},
74
-            #{item.compLegalPerson},#{item.compLegalperPost},#{item.responSex},  #{item.responBirth},
75
-            #{item.residenAffili},#{item.appliAgentTitle},
76
-            #{item.contactAddressAgent},
77
-            #{item.email},
78
-            #{item.sendEmail},
79
-            #{item.trackNum},
80
-            #{item.applicantAgentUserId},
81
-            #{item.agentEmail}
82
-            )
83
-        </foreach>;
84
-    </insert>
85
-
86
-
87
-
88
-    <update id="updataCaseAffiliate" parameterType="CaseAffiliate">
89
-        update case_affiliate_log
90
-        set
91
-        case_appli_log_id=#{caseAppliLogId},
92
-        identity_type= #{identityType},
93
-        application_organ_id= #{applicationOrganId},
94
-        application_organ_name= #{applicationOrganName},
95
-        name = #{name},
96
-        identity_num = #{identityNum},
97
-        contact_telphone = #{contactTelphone},
98
-        contact_address = #{contactAddress},
99
-        work_address = #{workAddress},
100
-        work_telphone = #{workTelphone},
101
-
102
-        name_agent = #{nameAgent},
103
-        identity_num_agent = #{identityNumAgent},
104
-        contact_telphone_agent = #{contactTelphoneAgent},
105
-        contact_address_agent = #{contactAddressAgent},
106
-        send_email = #{sendEmail},
107
-        residen_affili = #{residenAffili},
108
-        email= #{email},
109
-        track_num = #{trackNum},
110
-        comp_legal_person=#{compLegalPerson},
111
-        comp_legalper_post=#{compLegalperPost},
112
-        applicant_agent_user_id=#{applicantAgentUserId},
113
-        respon_sex=#{responSex},
114
-        respon_birth=#{responBirth},
115
-        residen_affili=#{residenAffili},
116
-        appli_agent_title=#{appliAgentTitle}
117
-
118
-        <if test="agentEmail !=null and agentEmail!=''">
119
-            ,agent_email=#{agentEmail}
120
-        </if>
121
-        where id = #{id}
122
-
123
-    </update>
124
-
125
-    <delete id="deletecaseAffiliate" parameterType="CaseApplication">
126
-        delete from case_affiliate_log where case_appli_log_id = #{caseAppliLogId}
127
-    </delete>
128
-    <delete id="batchDeletecaseAffiliate">
129
-
130
-        delete from case_affiliate_log where case_appli_log_id in
131
-        <foreach collection="ids" item="item" open="(" separator="," close=")">
132
-            #{item}
133
-        </foreach>
134
-    </delete>
135
-
136
-
137
-</mapper>

+ 0
- 204
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAffiliateMapper.xml Просмотреть файл

@@ -1,204 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" ?>
2
-<!DOCTYPE mapper
3
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
-        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
-<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.CaseAffiliateMapper">
6
-
7
-    <resultMap type="CaseAffiliate" id="CaseAffiliateResult">
8
-        <id     property="id"       column="id"      />
9
-        <result property="caseAppliId"       column="case_appli_id"      />
10
-        <result property="identityType"     column="identity_type"    />
11
-        <result property="name"     column="name"    />
12
-        <result property="identityNum"        column="identity_num"        />
13
-        <result property="workTelphone"  column="work_telphone"  />
14
-        <result property="contactTelphone"          column="contact_telphone"          />
15
-        <result property="contactAddress"       column="contact_address"       />
16
-        <result property="workAddress"     column="work_address"     />
17
-        <result property="nameAgent"       column="name_agent"       />
18
-        <result property="identityNumAgent"      column="identity_num_agent"     />
19
-        <result property="contactTelphoneAgent"      column="contact_telphone_agent"     />
20
-        <result property="contactAddressAgent"    column="contact_address_agent"   />
21
-        <result property="trackNum"    column="track_num"   />
22
-        <result property="applicationOrganId"    column="application_organ_id"   />
23
-        <result property="applicationOrganName"    column="application_organ_name"   />
24
-
25
-        <result property="compLegalPerson"    column="comp_legal_person"   />
26
-        <result property="compLegalperPost"    column="comp_legalper_post"   />
27
-        <result property="responSex"    column="respon_sex"   />
28
-        <result property="responBirth"    column="respon_birth"   />
29
-
30
-        <result property="residenAffili"    column="residen_affili"   />
31
-        <result property="appliAgentTitle"    column="appli_agent_title"   />
32
-        <result property="userId"    column="user_id"   />
33
-        <result property="email"     column="email"    />
34
-        <result property="sendEmail"     column="send_email"    />
35
-        <result property="applicantAgentUserId"     column="applicant_agent_user_id"    />
36
-        <result property="agentEmail"     column="agent_email"    />
37
-    </resultMap>
38
-
39
-    <select id="selectCaseAffiliate" parameterType="CaseAffiliate" resultMap="CaseAffiliateResult">
40
-        select distinct (c.id),
41
-        c.case_appli_id, c.identity_type,c.application_organ_id,c.application_organ_name,c.name,c.identity_num,c.contact_telphone,
42
-        c.contact_address,c.work_address,c.work_telphone ,c.name_agent,c.identity_num_agent,c.contact_telphone_agent,
43
-        c.comp_legal_person,c.comp_legalper_post,c.respon_sex ,c.respon_birth,
44
-        c.residen_affili,appli_agent_title,
45
-        c.contact_address_agent,c.email, c.send_email,c.track_num,c.applicant_agent_user_id,c.agent_email,s.user_id
46
-        from case_affiliate c
47
-        left join sys_user s on c.identity_num=s.id_card
48
-        <where>
49
-            <if test="caseAppliId != null ">
50
-                AND c.case_appli_id = #{caseAppliId}
51
-            </if>
52
-        </where>
53
-    </select>
54
-    <select id="selectCaseAffiliateByCaseIds" resultMap="CaseAffiliateResult">
55
-        select (c.id),
56
-        c.case_appli_id, c.identity_type,c.application_organ_id,c.application_organ_name,c.name,c.identity_num,c.contact_telphone,
57
-        c.contact_address,c.work_address,c.work_telphone ,c.name_agent,c.identity_num_agent,c.contact_telphone_agent,
58
-        c.comp_legal_person,c.comp_legalper_post,c.respon_sex ,c.respon_birth,
59
-        c.residen_affili,appli_agent_title,
60
-        c.contact_address_agent,c.email, c.send_email,c.track_num,c.applicant_agent_user_id,c.agent_email,s.user_id
61
-        from case_affiliate c
62
-        left join sys_user s on c.identity_num=s.id_card
63
-        <where>
64
-            <if test="ids != null ">
65
-                case_appli_id in
66
-                <foreach collection="ids" item="item" open="(" separator="," close=")">
67
-                    #{item}
68
-                </foreach>
69
-            </if>
70
-        </where>
71
-    </select>
72
-    <select id="selectCaseAffiliateByIdentityType"  resultMap="CaseAffiliateResult">
73
-        select c.*
74
-        from case_affiliate c
75
-        <where>
76
-            <if test="caseAppliId != null ">
77
-                AND c.case_appli_id = #{caseAppliId}
78
-            </if>
79
-            <if test="identityType != null ">
80
-                AND c.identity_type = #{identityType}
81
-            </if>
82
-        </where>
83
-    </select>
84
-    <select id="emailByCaseId" resultType="com.ruoyi.wisdomarbitrate.domain.CaseAffiliate">
85
-        select c.identity_type identityType,c.email
86
-        from case_affiliate c
87
-        where c.case_appli_id=#{caseAppliId}
88
-    </select>
89
-
90
-
91
-
92
-    <insert id="batchCaseAffiliate">
93
-        insert into case_affiliate(case_appli_id, identity_type,application_organ_id,application_organ_name,name,identity_num,contact_telphone,
94
-        contact_address,work_address,work_telphone ,name_agent,identity_num_agent,contact_telphone_agent,
95
-        comp_legal_person,comp_legalper_post,respon_sex ,respon_birth,
96
-        residen_affili,appli_agent_title,
97
-        contact_address_agent,email, send_email,track_num,applicant_agent_user_id,agent_email) values
98
-        <foreach item="item" index="index" collection="list" separator=",">
99
-            (#{item.caseAppliId},#{item.identityType},#{item.applicationOrganId},#{item.applicationOrganName},#{item.name},#{item.identityNum},#{item.contactTelphone},
100
-            #{item.contactAddress},#{item.workAddress},#{item.workTelphone},  #{item.nameAgent},#{item.identityNumAgent},#{item.contactTelphoneAgent},
101
-            #{item.compLegalPerson},#{item.compLegalperPost},#{item.responSex},  #{item.responBirth},
102
-            #{item.residenAffili},#{item.appliAgentTitle},
103
-            #{item.contactAddressAgent},
104
-            #{item.email},
105
-             #{item.sendEmail},
106
-             #{item.trackNum},
107
-             #{item.applicantAgentUserId},
108
-             #{item.agentEmail}
109
-             )
110
-        </foreach>
111
-    </insert>
112
-
113
-
114
-
115
-    <update id="updataCaseAffiliate" parameterType="CaseAffiliate">
116
-        update case_affiliate
117
-        set
118
-        case_appli_id=#{caseAppliId},
119
-        identity_type= #{identityType},
120
-        application_organ_id= #{applicationOrganId},
121
-        application_organ_name= #{applicationOrganName},
122
-        name = #{name},
123
-        identity_num = #{identityNum},
124
-        contact_telphone = #{contactTelphone},
125
-        contact_address = #{contactAddress},
126
-        work_address = #{workAddress},
127
-        work_telphone = #{workTelphone},
128
-        name_agent = #{nameAgent},
129
-        identity_num_agent = #{identityNumAgent},
130
-        contact_telphone_agent = #{contactTelphoneAgent},
131
-        contact_address_agent = #{contactAddressAgent},
132
-        send_email = #{sendEmail},
133
-        residen_affili = #{residenAffili},
134
-        email= #{email},
135
-        track_num = #{trackNum},
136
-            comp_legal_person=#{compLegalPerson},
137
-            comp_legalper_post=#{compLegalperPost},
138
-            applicant_agent_user_id=#{applicantAgentUserId},
139
-            respon_sex=#{responSex},
140
-            respon_birth=#{responBirth},
141
-            residen_affili=#{residenAffili},
142
-            appli_agent_title=#{appliAgentTitle}
143
-
144
-        <if test="agentEmail !=null and agentEmail!=''">
145
-            ,agent_email=#{agentEmail}
146
-        </if>
147
-        where id = #{id}
148
-
149
-    </update>
150
-    <update id="updateCaseAffiliateByCaseId">
151
-
152
-        <foreach collection="list" item="item" >
153
-        update case_affiliate
154
-            <set>
155
-
156
-            application_organ_id= #{item.applicationOrganId},
157
-            application_organ_name= #{item.applicationOrganName},
158
-            name = #{item.name},
159
-            identity_num = #{item.identityNum},
160
-            contact_telphone = #{item.contactTelphone},
161
-            contact_address = #{item.contactAddress},
162
-            work_address = #{item.workAddress},
163
-            work_telphone = #{item.workTelphone},
164
-
165
-            name_agent = #{item.nameAgent},
166
-            identity_num_agent = #{item.identityNumAgent},
167
-            contact_telphone_agent = #{item.contactTelphoneAgent},
168
-            contact_address_agent = #{item.contactAddressAgent},
169
-            send_email = #{item.sendEmail},
170
-            residen_affili = #{item.residenAffili},
171
-            email= #{item.email},
172
-            track_num = #{item.trackNum},
173
-                comp_legal_person=#{item.compLegalPerson},
174
-                comp_legalper_post=#{item.compLegalperPost},
175
-                applicant_agent_user_id=#{item.applicantAgentUserId},
176
-                respon_sex=#{item.responSex},
177
-                respon_birth=#{item.responBirth},
178
-                residen_affili=#{item.residenAffili},
179
-                appli_agent_title=#{item.appliAgentTitle}
180
-
181
-                <if test="agentEmail !=null and agentEmail!=''">
182
-                    ,agent_email=#{agentEmail}
183
-                </if>
184
-            </set>
185
-        where case_appli_id = #{caseAppliId} and   identity_type= #{item.identityType};
186
-        </foreach>
187
-    </update>
188
-
189
-    <delete id="deletecaseAffiliate" parameterType="CaseApplication">
190
-        delete from case_affiliate where case_appli_id = #{id}
191
-    </delete>
192
-    <delete id="batchDeletecaseAffiliate">
193
-
194
-        delete from case_affiliate where case_appli_id in
195
-        <foreach collection="ids" item="item" open="(" separator="," close=")">
196
-            #{item}
197
-        </foreach>
198
-    </delete>
199
-    <delete id="deleteByCaseId">
200
-        delete from case_affiliate where case_appli_id = #{caseAppliId}
201
-    </delete>
202
-
203
-
204
-</mapper>

+ 0
- 291
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationLogMapper.xml Просмотреть файл

@@ -1,291 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" ?>
2
-<!DOCTYPE mapper
3
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
-        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
-<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.CaseApplicationLogMapper">
6
-    <resultMap type="com.ruoyi.wisdomarbitrate.domain.CaseApplication" id="CaseApplicationResult">
7
-        <id     property="id"       column="id"      />
8
-        <result     property="caseAppliId"       column="caseAppliId"      />
9
-        <result property="caseNum"       column="case_num"      />
10
-        <result property="caseName"       column="case_name"      />
11
-        <result property="caseSubjectAmount"     column="case_subject_amount"    />
12
-        <result property="registerDate"     column="register_date"    />
13
-        <result property="arbitratMethod"        column="arbitrat_method"        />
14
-        <result property="caseStatus"  column="case_status"  />
15
-        <result property="hearDate"          column="hear_date"          />
16
-        <result property="arbitratClaims"       column="arbitrat_claims"       />
17
-        <result property="loanStartDate"     column="loan_start_date"     />
18
-        <result property="loanEndDate"       column="loan_end_date"       />
19
-        <result property="claimPrinciOwed"      column="claim_princi_owed"     />
20
-        <result property="claimInterestOwed"      column="claim_interest_owed"     />
21
-        <result property="claimLiquidDamag"    column="claim_liquid_damag"   />
22
-
23
-        <result property="feePayable"          column="fee_payable"          />
24
-        <result property="beginVideoDate"     column="begin_video_date"     />
25
-        <result property="onlineVideoPerson"       column="online_video_person"       />
26
-        <result property="contractNumber"      column="contract_number"     />
27
-        <result property="caseStatusName"      column="caseStatusName"     />
28
-        <result property="createBy"     column="create_by"    />
29
-        <result property="createTime"   column="create_time"  />
30
-        <result property="updateBy"     column="update_by"    />
31
-        <result property="updateTime"   column="update_time"  />
32
-        <result property="arbitratMethodName"   column="arbitratMethodName"  />
33
-
34
-        <result property="isAbsence"   column="is_absence"  />
35
-        <result property="responCrossOpin"   column="respon_cross_opin"  />
36
-        <result property="applicaCrossOpin"   column="applica_cross_opin"  />
37
-        <result property="responDefenOpini"   column="respon_defen_opini"  />
38
-
39
-        <result property="arbitratorId"   column="arbitrator_id"  />
40
-        <result property="arbitratorName"   column="arbitrator_name"  />
41
-        <result property="paymentStatus"   column="payment_status"  />
42
-        <result property="paymentStatusName"   column="paymentStatusName"  />
43
-        <result property="filearbitraUrl"   column="filearbitra_url"  />
44
-
45
-        <result property="requestRule"   column="request_rule"  />
46
-        <result property="properPreser"   column="proper_preser"  />
47
-        <result property="adjudicaCounter"   column="adjudica_counter"  />
48
-        <result property="lockStatus"   column="lock_status"  />
49
-        <result property="version"   column="version"  />
50
-        <result property="updateSubmitStatus"   column="update_submit_status"  />
51
-        <result property="properPreser"   column="proper_preser"  />
52
-        <result property="interestRate"   column="interest_rate"  />
53
-        <result property="outstandingMoney"   column="outstanding_money"  />
54
-        <result property="facts"   column="facts"  />
55
-        <result property="partyA"   column="party_a"  />
56
-        <result property="disputes"   column="disputes"  />
57
-        <result property="loanType"   column="loan_type"  />
58
-        <result property="loanTerm"   column="loan_term"  />
59
-        <result property="mediationAgreement"   column="mediation_agreement"  />
60
-    </resultMap>
61
-    <insert id="insert" parameterType="com.ruoyi.wisdomarbitrate.domain.CaseApplication" useGeneratedKeys="true" keyProperty="id">
62
-        insert into case_application_log(
63
-        <if test="caseLogId != null  ">id ,</if>
64
-        <if test="caseAppliId != null  ">case_appli_id ,</if>
65
-        <if test="caseName != null  and caseName != ''">case_name ,</if>
66
-        <if test="caseNum != null and caseNum != ''">case_num,</if>
67
-        <if test="caseSubjectAmount != null">case_subject_amount,</if>
68
-
69
-        <if test="arbitratClaims != null and arbitratClaims != ''">arbitrat_claims,</if>
70
-        <if test="requestRule != null and requestRule != ''">request_rule,</if>
71
-        <if test="loanStartDate != null ">loan_start_date,</if>
72
-        <if test="loanEndDate != null ">loan_end_date,</if>
73
-        <if test="claimPrinciOwed != null ">claim_princi_owed,</if>
74
-
75
-        <if test="claimInterestOwed != null ">claim_interest_owed,</if>
76
-        <if test="claimLiquidDamag != null ">claim_liquid_damag,</if>
77
-        <if test="feePayable != null ">fee_payable,</if>
78
-        <if test="contractNumber != null  and contractNumber != ''">contract_number,</if>
79
-        <if test="createBy != null  and createBy != ''">create_by,</if>
80
-        <if test="version != null ">version,</if>
81
-        <if test="updateSubmitStatus != null ">update_submit_status,</if>
82
-        <if test="properPreser != null ">proper_preser,</if>
83
-        interest_rate,
84
-        outstanding_money,
85
-        facts,
86
-        party_a,
87
-        disputes,
88
-        loan_type,
89
-        loan_term,
90
-        mediation_agreement,
91
-        create_time
92
-        )values(
93
-        <if test="caseLogId != null  ">#{id} ,</if>
94
-        <if test="caseAppliId != null">#{caseAppliId},</if>
95
-        <if test="caseName != null and caseName != ''">#{caseName},</if>
96
-        <if test="caseNum != null and caseNum != ''">#{caseNum},</if>
97
-        <if test="caseSubjectAmount != null">#{caseSubjectAmount},</if>
98
-
99
-        <if test="arbitratClaims != null and arbitratClaims != ''">#{arbitratClaims},</if>
100
-        <if test="requestRule != null and requestRule != ''">#{requestRule},</if>
101
-        <if test="loanStartDate != null ">#{loanStartDate},</if>
102
-        <if test="loanEndDate != null ">#{loanEndDate},</if>
103
-        <if test="claimPrinciOwed != null ">#{claimPrinciOwed},</if>
104
-
105
-        <if test="claimInterestOwed != null ">#{claimInterestOwed},</if>
106
-        <if test="claimLiquidDamag != null ">#{claimLiquidDamag},</if>
107
-        <if test="feePayable != null ">#{feePayable},</if>
108
-        <if test="contractNumber != null  and contractNumber != ''">#{contractNumber},</if>
109
-        <if test="createBy != null  and createBy != ''">#{createBy},</if>
110
-        <if test="version != null ">#{version},</if>
111
-        <if test="updateSubmitStatus != null ">#{updateSubmitStatus},</if>
112
-        <if test="properPreser != null ">#{properPreser},</if>
113
-        #{interestRate},
114
-        #{outstandingMoney},
115
-        #{facts},
116
-        #{partyA},
117
-        #{disputes},
118
-        #{loanType},
119
-        #{loanTerm},
120
-        #{mediationAgreement},
121
-        sysdate()
122
-        )
123
-    </insert>
124
-    <insert id="batchSave">
125
-        insert into case_application_log(
126
-        id,
127
-       case_appli_id ,
128
-       case_name ,
129
-       case_num,
130
-       case_subject_amount,
131
-       arbitrat_claims,
132
-        request_rule,
133
-        loan_start_date,
134
-        loan_end_date,
135
-        claim_princi_owed,
136
-        claim_interest_owed,
137
-        claim_liquid_damag,
138
-        fee_payable,
139
-        contract_number,
140
-        create_by,
141
-        version,
142
-        update_submit_status,
143
-        proper_preser,
144
-        interest_rate,
145
-        outstanding_money,
146
-        facts,
147
-        party_a,
148
-        disputes,
149
-        loan_type,
150
-        loan_term,
151
-        mediation_agreement,
152
-        create_time
153
-        )values
154
-        <foreach item="item" index="index" collection="list" separator=",">
155
-        (
156
-        id=#{item.id},
157
-       #{item.caseAppliId},
158
-        #{item.caseName},
159
-        #{item.caseNum},
160
-        #{item.caseSubjectAmount},
161
-        #{item.arbitratClaims},
162
-       #{item.requestRule},
163
-        #{item.loanStartDate},
164
-        #{item.loanEndDate},
165
-        #{item.claimPrinciOwed},
166
-        #{item.claimInterestOwed},
167
-        #{item.claimLiquidDamag},
168
-       #{item.feePayable},
169
-        #{item.contractNumber},
170
-        #{item.createBy},
171
-        #{item.version},
172
-        #{item.updateSubmitStatus},
173
-        #{item.properPreser},
174
-        #{item.interestRate},
175
-        #{item.outstandingMoney},
176
-        #{item.facts},
177
-        #{item.partyA},
178
-        #{item.disputes},
179
-        #{item.loanType},
180
-        #{item.loanTerm},
181
-        #{item.mediationAgreement},
182
-        sysdate()
183
-        )
184
-        </foreach>
185
-    </insert>
186
-    <update id="updateStatus">
187
-        update case_application_log
188
-
189
-        <set>
190
-            <if test="updateSubmitStatus!= null ">update_submit_status=#{updateSubmitStatus},</if>
191
-
192
-        </set>
193
-        <where>
194
-            <if test="caseId!= null ">AND case_appli_id=#{caseId}</if>
195
-            <if test="version!= null ">AND version=#{version}</if>
196
-
197
-        </where>
198
-    </update>
199
-
200
-    <delete id="deleteById" >
201
-        DELETE FROM case_application_log
202
-        WHERE id = #{id}
203
-    </delete>
204
-    <delete id="batchDeleteLog">
205
-
206
-        delete from case_application_log l where l.id in
207
-        <foreach collection="ids" item="item" open="(" separator="," close=")">
208
-            #{item}
209
-        </foreach>
210
-        ;
211
-        delete from case_affiliate_log l where l.case_appli_log_id in
212
-        <foreach collection="ids" item="item" open="(" separator="," close=")">
213
-            #{item}
214
-        </foreach>
215
-        ;
216
-        delete from case_attach_log l where l.case_appli_log_id in
217
-        <foreach collection="ids" item="item" open="(" separator="," close=")">
218
-            #{item}
219
-        </foreach>
220
-        ;
221
-        delete from column_value_log l where l.case_appli_log_id in
222
-        <foreach collection="ids" item="item" open="(" separator="," close=")">
223
-            #{item}
224
-        </foreach>
225
-        ;
226
-    </delete>
227
-
228
-
229
-    <select id="selectByCaseIdAndVersion" resultMap="CaseApplicationResult">
230
-        SELECT case_appli_id id,id caseLogId,case_appli_id caseAppliId ,case_name,case_num,case_subject_amount,arbitrat_claims,request_rule,loan_start_date,
231
-               loan_end_date,claim_princi_owed,claim_interest_owed,claim_liquid_damag,fee_payable,contract_number,
232
-               create_by,version,update_submit_status,create_time,proper_preser,  interest_rate,
233
-        outstanding_money,
234
-        facts,
235
-        party_a,
236
-        disputes,
237
-        loan_type,
238
-        loan_term,
239
-        mediation_agreement
240
-        FROM case_application_log
241
-        WHERE case_appli_id = #{caseAppliId} and version=#{version}
242
-    </select>
243
-
244
-    <select id="selectLatestCase" resultMap="CaseApplicationResult">
245
-        SELECT id caseLogId,case_appli_id caseAppliId ,case_name,case_num,case_subject_amount,arbitrat_claims,request_rule,loan_start_date,
246
-               loan_end_date,claim_princi_owed,claim_interest_owed,claim_liquid_damag,fee_payable,contract_number,
247
-               create_by,version,update_submit_status,create_time,proper_preser,  interest_rate,
248
-        outstanding_money,
249
-        facts,
250
-        party_a,
251
-        disputes,
252
-        loan_type,
253
-        loan_term,
254
-        mediation_agreement
255
-        FROM case_application_log
256
-        WHERE case_appli_id = #{caseAppliId} ORDER BY version DESC limit 1
257
-    </select>
258
-    <select id="selectMaxVersionByCaseId" resultType="java.lang.Integer">
259
-        SELECT max(version)
260
-        FROM case_application_log
261
-        WHERE case_appli_id = #{caseAppliId}
262
-
263
-    </select>
264
-    <select id="selectMaxVersionBySecret" resultType="java.lang.Integer">
265
-        SELECT max(version)
266
-        FROM case_application_log
267
-        WHERE case_appli_id = #{caseAppliId} and update_submit_status IN ( 1, 4 )
268
-    </select>
269
-    <select id="selectBeforeCase" resultMap="CaseApplicationResult">
270
-        SELECT case_appli_id id,id caseLogId,case_appli_id caseAppliId ,case_name,case_num,case_subject_amount,arbitrat_claims,request_rule,loan_start_date,
271
-               loan_end_date,claim_princi_owed,claim_interest_owed,claim_liquid_damag,fee_payable,contract_number,
272
-               create_by,version,update_submit_status,create_time,proper_preser,  interest_rate,
273
-        outstanding_money,
274
-        facts,
275
-        party_a,
276
-        disputes,
277
-        loan_type,
278
-        loan_term,
279
-        mediation_agreement
280
-        FROM case_application_log
281
-        WHERE case_appli_id = #{caseId} and version &lt; #{version} and update_submit_status not in ( 4, 5 ) order by version desc limit 1
282
-    </select>
283
-    <select id="selectLogsByCaseIds" resultType="java.lang.Long">
284
-        select id  from case_application_log where case_appli_id in
285
-        <foreach collection="ids" item="item" separator="," open="(" close=")">
286
-            #{item}
287
-        </foreach>
288
-    </select>
289
-
290
-
291
-</mapper>

+ 0
- 1377
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 9
- 9
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAttachLogMapper.xml Просмотреть файл

@@ -16,18 +16,18 @@
16 16
         <result property="caseAppliLogId"     column="case_appli_log_id"    />
17 17
     </resultMap>
18 18
     <insert id="save" useGeneratedKeys="true" keyProperty="annexId">
19
-        INSERT INTO case_attach_log (case_appli_log_id, annex_id,annex_name, annex_path , annex_type,note,use_id,use_account,seal_status)
19
+        INSERT INTO ms_case_attach_log (case_appli_log_id, annex_id,annex_name, annex_path , annex_type,note,use_id,use_account,seal_status)
20 20
         VALUES (#{caseAppliLogId},#{annexId}, #{annexName}, #{annexPath},#{annexType},#{note},#{userId},#{userName},#{sealStatus})
21 21
     </insert>
22 22
     <insert id="batchSave">
23
-        INSERT INTO case_attach_log (case_appli_log_id, annex_id,annex_name, annex_path , annex_type,note,use_id,use_account,seal_status)
23
+        INSERT INTO ms_case_attach_log (case_appli_log_id, annex_id,annex_name, annex_path , annex_type,note,use_id,use_account,seal_status)
24 24
         VALUES
25 25
         <foreach item="item" index="index" collection="list" separator=",">
26 26
         (#{item.caseAppliLogId},#{item.annexId}, #{item.annexName}, #{item.annexPath},#{item.annexType},#{item.note},#{item.userId},#{item.userName},#{item.sealStatus})
27 27
         </foreach>
28 28
     </insert>
29 29
     <delete id="deleteByFileIds">
30
-        delete from case_attach_log
30
+        delete from ms_case_attach_log
31 31
         where annex_id in
32 32
         <foreach collection="ids" item="id" open="(" separator="," close=")">
33 33
             #{id}
@@ -36,13 +36,13 @@
36 36
 
37 37
     <select id="queryAnnexPathByCaseId" resultType="com.ruoyi.wisdomarbitrate.domain.CaseAttach" resultMap="CaseAttachResult">
38 38
         select *
39
-        from case_attach_log
39
+        from ms_case_attach_log
40 40
         where case_appli_log_id =#{id}
41 41
     </select>
42 42
 
43 43
     <select id="getCaseAttachByCaseIdAndType" resultType="com.ruoyi.wisdomarbitrate.domain.CaseAttach" resultMap="CaseAttachResult">
44 44
         select *
45
-        from case_attach_log
45
+        from ms_case_attach_log
46 46
         <where>
47 47
             <if test="caseAppliLogId != null ">
48 48
                 AND case_appli_log_id = #{caseAppliLogId}
@@ -55,7 +55,7 @@
55 55
 
56 56
     <select id="queryCaseAttachList" resultMap="CaseAttachResult">
57 57
         select *
58
-        from case_attach_log
58
+        from ms_case_attach_log
59 59
         <where>
60 60
             <if test="caseLogId != null ">
61 61
                 AND case_appli_log_id = #{caseLogId}
@@ -73,7 +73,7 @@
73 73
     </select>
74 74
     <select id="queryAnnexById" resultType="com.ruoyi.wisdomarbitrate.domain.CaseAttach" resultMap="CaseAttachResult">
75 75
         select *
76
-        from case_attach_log
76
+        from ms_case_attach_log
77 77
         <where>
78 78
             <if test="annexId != null ">
79 79
                 AND annex_id = #{annexId}
@@ -82,14 +82,14 @@
82 82
     </select>
83 83
 
84 84
     <update id="updateCaseAttach" parameterType="CaseAttach">
85
-        update case_attach_log
85
+        update ms_case_attach_log
86 86
         set
87 87
             case_appli_log_id= #{caseAppliLogId}
88 88
         where annex_id = #{annexId}
89 89
     </update>
90 90
 
91 91
     <update id="updateCaseAttachBycaseid" parameterType="CaseAttach" >
92
-        update case_attach_log
92
+        update ms_case_attach_log
93 93
         <set>
94 94
             <if test="annexName != null and annexName != ''">annex_name = #{annexName},</if>
95 95
             <if test="annexPath != null and annexPath != ''">annex_path = #{annexPath}</if>

+ 11
- 11
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAttachMapper.xml Просмотреть файл

@@ -15,11 +15,11 @@
15 15
         <result property="sealStatus"     column="seal_status"    />
16 16
     </resultMap>
17 17
     <insert id="save" useGeneratedKeys="true" keyProperty="annexId">
18
-        INSERT INTO case_attach (case_appli_id, annex_name, annex_path , annex_type,note,use_id,use_account,seal_status,is_batch_upload)
18
+        INSERT INTO ms_case_attach (case_appli_id, annex_name, annex_path , annex_type,note,use_id,use_account,seal_status,is_batch_upload)
19 19
         VALUES (#{caseAppliId}, #{annexName}, #{annexPath},#{annexType},#{note},#{userId},#{userName},#{sealStatus},#{isBatchUpload})
20 20
     </insert>
21 21
     <insert id="batchSave" useGeneratedKeys="true" keyProperty="annexId">
22
-        INSERT INTO case_attach (case_appli_id, annex_name, annex_path , annex_type,note,use_id,use_account,seal_status,is_batch_upload)
22
+        INSERT INTO ms_case_attach (case_appli_id, annex_name, annex_path , annex_type,note,use_id,use_account,seal_status,is_batch_upload)
23 23
         VALUES
24 24
         <foreach item="item" index="index" collection="list" separator=",">
25 25
 
@@ -28,14 +28,14 @@
28 28
         </foreach>
29 29
     </insert>
30 30
     <delete id="deleteByFileIds">
31
-        delete from case_attach
31
+        delete from ms_case_attach
32 32
         where annex_id in
33 33
         <foreach collection="ids" item="id" open="(" separator="," close=")">
34 34
             #{id}
35 35
         </foreach>
36 36
     </delete>
37 37
     <delete id="deleteByCasedIdAndType">
38
-        delete from case_attach
38
+        delete from ms_case_attach
39 39
         where case_appli_id = #{caseAppliId}
40 40
         and annex_type = #{annexType}
41 41
         <if test="isBatchUpload != null ">
@@ -45,13 +45,13 @@
45 45
 
46 46
     <select id="queryAnnexPathByCaseId" resultType="com.ruoyi.wisdomarbitrate.domain.CaseAttach" resultMap="CaseAttachResult">
47 47
         select annex_id,case_appli_id,annex_name,annex_path,annex_type,note,use_id,use_account
48
-        from case_attach
48
+        from ms_case_attach
49 49
         where case_appli_id =#{id}
50 50
     </select>
51 51
 
52 52
     <select id="getCaseAttachByCaseIdAndType" resultType="com.ruoyi.wisdomarbitrate.domain.CaseAttach" resultMap="CaseAttachResult">
53 53
         select annex_id,case_appli_id,annex_name,annex_path,annex_type,note,use_id,use_account
54
-        from case_attach
54
+        from ms_case_attach
55 55
         <where>
56 56
             <if test="caseAppliId != null ">
57 57
                 AND case_appli_id = #{caseAppliId}
@@ -63,14 +63,14 @@
63 63
     </select>
64 64
 
65 65
     <delete id="deleteCaseAttachByCasedIdAndType">
66
-        delete from case_attach
66
+        delete from ms_case_attach
67 67
         where case_appli_id = #{caseAppliId}
68 68
         and annex_type = #{annexType}
69 69
     </delete>
70 70
 
71 71
     <select id="queryCaseAttachList" resultMap="CaseAttachResult">
72 72
         select annex_id,case_appli_id,annex_name,annex_path,annex_type,note,use_id,use_account
73
-        from case_attach
73
+        from ms_case_attach
74 74
         <where>
75 75
             <if test="id != null ">
76 76
                 AND case_appli_id = #{id}
@@ -88,7 +88,7 @@
88 88
     </select>
89 89
     <select id="queryAnnexById" resultType="com.ruoyi.wisdomarbitrate.domain.CaseAttach" resultMap="CaseAttachResult">
90 90
         select *
91
-        from case_attach
91
+        from ms_case_attach
92 92
         <where>
93 93
             <if test="annexId != null ">
94 94
                 AND annex_id = #{annexId}
@@ -97,14 +97,14 @@
97 97
     </select>
98 98
 
99 99
     <update id="updateCaseAttach" parameterType="CaseAttach">
100
-        update case_attach
100
+        update ms_case_attach
101 101
         set
102 102
         case_appli_id= #{caseAppliId}
103 103
         where annex_id = #{annexId}
104 104
     </update>
105 105
 
106 106
     <update id="updateCaseAttachBycaseid" parameterType="CaseAttach" >
107
-        update case_attach
107
+        update ms_case_attach
108 108
         <set>
109 109
             <if test="annexName != null and annexName != ''">annex_name = #{annexName},</if>
110 110
             <if test="annexPath != null and annexPath != ''">annex_path = #{annexPath}</if>

+ 0
- 79
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseEvidenceDirectoryMapper.xml Просмотреть файл

@@ -1,79 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" ?>
2
-<!DOCTYPE mapper
3
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
-        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
-<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.CaseEvidenceDirectoryMapper">
6
-    <resultMap type="CaseEvidenceDirectory" id="CaseEvidenceDirectoryResult">
7
-        <id property="id"       column="id"      />
8
-        <result property="parentId"     column="parent_id"    />
9
-        <result property="evidenceName"     column="evidence_name"    />
10
-        <result property="annexId"       column="annex_id"      />
11
-        <result property="series"     column="series"    />
12
-        <result property="caseId"     column="case_appli_id"    />
13
-        <result property="createTime"     column="create_time"    />
14
-        <result property="updateTime"     column="update_time"    />
15
-        <result property="createBy"     column="create_by"    />
16
-        <result property="updateBy"     column="update_by"    />
17
-        <result property="annexName"     column="annex_name"    />
18
-        <result property="annexPath"     column="annex_path"    />
19
-    </resultMap>
20
-    <insert id="save" parameterType="CaseEvidenceDirectory" useGeneratedKeys="true" keyProperty="id">
21
-
22
-        insert into case_evidence_directory(
23
-        <if test="parentId != null ">parent_id,</if>
24
-        <if test="evidenceName != null and evidenceName != ''">evidence_name,</if>
25
-        <if test="annexId != null ">annex_id,</if>
26
-        <if test="series != null ">series,</if>
27
-        <if test="caseId != null ">case_appli_id,</if>
28
-        <if test="createBy != null and createBy != ''">create_by,</if>
29
-        create_time
30
-        )values(
31
-        <if test="parentId != null ">#{parentId},</if>
32
-        <if test="evidenceName != null and evidenceName != ''">#{evidenceName},</if>
33
-        <if test="annexId != null ">#{annexId},</if>
34
-        <if test="series != null ">#{series},</if>
35
-        <if test="caseId != null ">#{caseId},</if>
36
-        <if test="createBy != null  and createBy != ''">#{createBy},</if>
37
-        sysdate()
38
-        )
39
-    </insert>
40
-    <select id="selectList" parameterType="CaseEvidenceDirectory" resultMap="CaseEvidenceDirectoryResult">
41
-        select ced.id,ced.parent_id,ced.evidence_name,ced.annex_id,ced.series,ced.create_time
42
-             ,ced.update_time,ced.case_appli_id,ced.create_by,ced.update_by,ca.annex_name,ca.annex_path
43
-        from case_evidence_directory ced
44
-        left join case_attach ca on ced.annex_id = ca.annex_id
45
-            <where>
46
-            <if test="id != null ">
47
-                AND ced.id = #{id}
48
-            </if>
49
-            <if test="parentId != null ">
50
-                AND ced.parent_id = #{parentId}
51
-            </if>
52
-            <if test="evidenceName != null ">
53
-                AND ced.evidence_name = #{evidenceName}
54
-            </if>
55
-            <if test="annexId != null ">
56
-                AND ced.annex_id = #{annexId}
57
-            </if>
58
-            <if test="series != null ">
59
-                AND ced.series = #{series}
60
-            </if>
61
-            <if test="caseId != null ">
62
-                AND ced.case_appli_id = #{caseId}
63
-            </if>
64
-            order by ced.parent_id
65
-        </where>
66
-    </select>
67
-
68
-    <select id="selectDeptListByEvidenceName" resultType="INTEGER">
69
-        select ced.id
70
-        from case_evidence_directory ced
71
-        left join case_attach ca on ced.annex_id = ca.annex_id
72
-        where ced.evidence_name = #{evidenceName}
73
-        <if test="deptCheckStrictly">
74
-            and ced.annex_id not in (select ced.parent_id from case_evidence_directory ced inner join case_attach ca on ced.annex_id = ca.annex_id and ced.evidence_name = #{evidenceName})
75
-        </if>
76
-        order by ced.parent_id
77
-    </select>
78
-
79
-</mapper>

+ 0
- 31
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseEvidenceMapper.xml Просмотреть файл

@@ -1,31 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" ?>
2
-<!DOCTYPE mapper
3
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
-        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
-<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.CaseEvidenceMapper">
6
-    <resultMap type="CaseEvidenceVO" id="CaseEvidenceVOResult">
7
-        <id     property="id"       column="id"      />
8
-        <result property="caseNum"       column="case_num"      />
9
-        <result property="caseStatus"     column="case_status"    />
10
-        <result property="roomId"     column="room_id"    />
11
-        <result property="scheduleStartTime"     column="schedule_start_time"    />
12
-    </resultMap>
13
-    <select id="getCaseListByRespondent" resultType="CaseEvidenceVO" resultMap="CaseEvidenceVOResult">
14
-        select DISTINCT(c.id) id, c.case_num,c.case_status,rc.room_id,rc.schedule_start_time
15
-        from case_application as c  join case_affiliate as d on c.id = d.case_appli_id
16
-        left join reserved_conference rc on rc.case_id=c.id
17
-        where c.id = d.case_appli_id
18
-        <if test="identityNum != null and identityNum != ''">
19
-            and d.identity_num = #{identityNum}
20
-        </if>
21
-        <if test="identityType != null ">
22
-            and d.identity_type = #{identityType}
23
-        </if>
24
-        <if test="caseStatusList != null and caseStatusList.size() > 0">
25
-            and c.case_status in
26
-            <foreach item="caseStatus" collection="caseStatusList" open="(" separator="," close=")">
27
-                #{caseStatus}
28
-            </foreach>
29
-        </if>
30
-    </select>
31
-</mapper>

+ 3
- 3
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseLogRecordMapper.xml Просмотреть файл

@@ -16,12 +16,12 @@
16 16
     </resultMap>
17 17
 
18 18
     <insert id="insertCaseLogRecord">
19
-        insert into case_log_record(case_appli_id, case_node,case_node_time,notes,create_by,create_nick_name,create_time,update_by,update_time ) values(
19
+        insert into ms_case_log_record(case_appli_id, case_node,case_node_time,notes,create_by,create_nick_name,create_time,update_by,update_time ) values(
20 20
             #{caseAppliId},#{caseNode},sysdate(),#{notes},#{createBy},#{createNickName},sysdate(),#{updateBy},sysdate()
21 21
         )
22 22
     </insert>
23 23
     <insert id="batchInsertRecord">
24
-        insert into case_log_record(case_appli_id, case_node,case_node_time,notes,create_by,create_nick_name,create_time,update_by,update_time ) values
24
+        insert into ms_case_log_record(case_appli_id, case_node,case_node_time,notes,create_by,create_nick_name,create_time,update_by,update_time ) values
25 25
         <foreach item="item" index="index" collection="list" separator=",">
26 26
         (
27 27
             #{item.caseAppliId},#{item.caseNode},sysdate(),#{item.notes},#{item.createBy},#{item.createNickName},sysdate(),#{item.updateBy},sysdate()
@@ -50,7 +50,7 @@
50 50
         when 15 then '法律顾问' when 16 then '法律顾问'
51 51
         ELSE '无角色'
52 52
         END roleName
53
-            from case_log_record cl
53
+            from ms_case_log_record cl
54 54
 
55 55
             <where>
56 56
 

+ 6
- 6
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseNumRuleMapper.xml Просмотреть файл

@@ -14,7 +14,7 @@
14 14
     </resultMap>
15 15
 
16 16
     <insert id="insertCaseNumRule" parameterType="CaseNumRule" useGeneratedKeys="true" keyProperty="id">
17
-        insert into case_num_rule(
17
+        insert into ms_case_num_rule(
18 18
         <if test="ruleType != null">rule_type,</if>
19 19
         <if test="prefixstr != null and prefixstr != '' ">prefixstr,</if>
20 20
         <if test="dateFormat != null">date_format,</if>
@@ -36,7 +36,7 @@
36 36
     </insert>
37 37
 
38 38
     <update id="updateCaseNumRule" parameterType="CaseNumRule">
39
-        update case_num_rule
39
+        update ms_case_num_rule
40 40
         <set>
41 41
             <if test="ruleType != null">rule_type = #{ruleType},</if>
42 42
             <if test="prefixstr != null and prefixstr != '' ">prefixstr = #{prefixstr},</if>
@@ -52,12 +52,12 @@
52 52
         </where>
53 53
     </update>
54 54
     <delete id="deleteCaseNumRule" parameterType="CaseNumRule">
55
-        delete from case_num_rule where id = #{id}
55
+        delete from ms_case_num_rule where id = #{id}
56 56
     </delete>
57 57
 
58 58
     <select id="selectCaseNumRules" parameterType="CaseNumRule" resultMap="BaseResultMap">
59 59
         SELECT  id, rule_type ,prefixstr , date_format,dept_name,dept_name_firchar,current_num
60
-        FROM  case_num_rule
60
+        FROM  ms_case_num_rule
61 61
         <where>
62 62
             <if test="deptNameFirchar != null and deptNameFirchar != ''">
63 63
                 AND dept_name_firchar = #{deptNameFirchar}
@@ -69,7 +69,7 @@
69 69
 
70 70
 
71 71
     <select id="countCaseNumRule" resultType="Integer">
72
-        select count(1) from  case_num_rule c
72
+        select count(1) from  ms_case_num_rule c
73 73
         <where>
74 74
             <if test="prefixstr != null  and prefixstr != '' ">
75 75
                 AND c.prefixstr  = #{prefixstr}
@@ -92,7 +92,7 @@
92 92
 
93 93
     <select id="selectCaseNumRule" parameterType="CaseNumRule" resultMap="BaseResultMap">
94 94
         SELECT  id, rule_type ,prefixstr , date_format,dept_name,dept_name_firchar,current_num
95
-        FROM  case_num_rule
95
+        FROM  ms_case_num_rule
96 96
         <where>
97 97
             <if test="id != null   ">
98 98
                 AND id  = #{id}

+ 0
- 57
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CasePaymentRecordMapper.xml Просмотреть файл

@@ -1,57 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" ?>
2
-<!DOCTYPE mapper
3
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
-        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
-<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.CasePaymentRecordMapper">
6
-    <resultMap type="CasePaymentRecord" id="CasePaymentRecordResult">
7
-        <id     property="id"       column="id"      />
8
-        <result property="caseId"       column="case_id"      />
9
-        <result property="orderNumber"     column="order_number"    />
10
-        <result property="paymentStatus"     column="payment_status"    />
11
-        <result property="paymentTime"        column="payment_time"        />
12
-        <result property="createTime"   column="create_time"  />
13
-        <result property="updateTime"   column="update_time"  />
14
-        <result property="payType"   column="pay_type"  />
15
-    </resultMap>
16
-    <insert id="saveRecord">
17
-        INSERT INTO case_payment_record (case_id, order_number, payment_status , create_time)
18
-        VALUES (#{caseId}, #{orderNumber}, #{paymentStatus},#{createTime})
19
-    </insert>
20
-    <update id="update">
21
-        update case_payment_record
22
-        <set>
23
-            <if test="caseId != null">case_id= #{caseId},</if>
24
-            <if test="orderNumber != null and orderNumber != ''">order_number = #{orderNumber},</if>
25
-            <if test="paymentTime != null ">payment_time = #{paymentTime},</if>
26
-            <if test="paymentStatus != null ">payment_status = #{paymentStatus},</if>
27
-            <if test="updateTime != null ">update_time = #{updateTime},</if>
28
-            <if test="payType != null ">pay_type = #{payType},</if>
29
-        </set>
30
-        <where>
31
-            <if test="caseId != null ">
32
-                AND case_id = #{caseId}
33
-            </if>
34
-            <if test="id != null ">
35
-                AND id = #{id}
36
-            </if>
37
-        </where>
38
-    </update>
39
-    <select id="queryRecord" resultType="com.ruoyi.wisdomarbitrate.domain.CasePaymentRecord" resultMap="CasePaymentRecordResult">
40
-        select c.id ,c.case_id ,c.order_number ,c.payment_time ,c.create_time ,c.update_time ,c.payment_status
41
-        from case_payment_record c
42
-        <where>
43
-            <if test="orderNumber != null and orderNumber != '' ">
44
-                AND c.order_number = #{orderNumber}
45
-            </if>
46
-        </where>
47
-    </select>
48
-    <select id="selectRecordByCaseId" resultType="com.ruoyi.wisdomarbitrate.domain.CasePaymentRecord" resultMap="CasePaymentRecordResult">
49
-        select c.id ,c.case_id ,c.order_number ,c.payment_time ,c.create_time ,c.update_time ,c.payment_status
50
-        from case_payment_record c
51
-        <where>
52
-            <if test="id != null ">
53
-                AND c.case_id = #{id}
54
-            </if>
55
-        </where>
56
-    </select>
57
-</mapper>

+ 4
- 4
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/ColumnValueLogMapper.xml Просмотреть файл

@@ -11,7 +11,7 @@
11 11
         <result column="case_appli_log_id" property="caseAppliLogId" />
12 12
     </resultMap>
13 13
     <insert id="batchSave">
14
-        INSERT INTO column_value_log ( `COLUMN`, `NAME`, `VALUE`, case_appli_log_id,is_default )
14
+        INSERT INTO ms_column_value_log ( `COLUMN`, `NAME`, `VALUE`, case_appli_log_id,is_default )
15 15
         values
16 16
         <foreach item="item" index="index" collection="list" separator=",">
17 17
 
@@ -19,11 +19,11 @@
19 19
         </foreach>
20 20
     </insert>
21 21
     <select id="listBycaseAppliLogId" resultMap="BaseResultMap">
22
-        select * from column_value_log where case_appli_log_id=#{caseAppliLogId}
22
+        select * from ms_column_value_log where case_appli_log_id=#{caseAppliLogId}
23 23
     </select>
24 24
     <update id="batchUpdate">
25 25
         <foreach collection="list" item="item" >
26
-            update  column_value_log
26
+            update  ms_column_value_log
27 27
             <set>
28 28
                 <if test="item.value != null and item.value != ''">
29 29
                     `VALUE` = #{item.value},
@@ -34,7 +34,7 @@
34 34
         </foreach>
35 35
     </update>
36 36
     <select id="queryColumnValueList"  parameterType="ColumnValue"  resultMap="BaseResultMap">
37
-        select * from column_value_log c
37
+        select * from ms_column_value_log c
38 38
         <where>
39 39
             <if test="caseAppliLogId != null">
40 40
                 AND c.case_appli_log_id  = #{caseAppliLogId}

+ 5
- 5
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/ColumnValueMapper.xml Просмотреть файл

@@ -12,7 +12,7 @@
12 12
         <result column="is_default" property="isDefault" />
13 13
     </resultMap>
14 14
     <insert id="batchSave">
15
-        INSERT INTO column_value ( `COLUMN`, `NAME`, `VALUE`, case_id,is_default )
15
+        INSERT INTO ms_column_value ( `COLUMN`, `NAME`, `VALUE`, case_id,is_default )
16 16
         values
17 17
         <foreach item="item" index="index" collection="list" separator=",">
18 18
 
@@ -21,7 +21,7 @@
21 21
     </insert>
22 22
     <update id="batchUpdate">
23 23
         <foreach collection="list" item="item" >
24
-            update  column_value
24
+            update  ms_column_value
25 25
             <set>
26 26
                 <if test="item.value != null and item.value != ''">
27 27
                     `VALUE` = #{item.value},
@@ -32,7 +32,7 @@
32 32
     </update>
33 33
 
34 34
     <update id="updateColumnValue"  parameterType="ColumnValue">
35
-        update  column_value
35
+        update  ms_column_value
36 36
         <set>
37 37
             <if test="value != null and value != ''">
38 38
                 `VALUE` = #{value},
@@ -42,11 +42,11 @@
42 42
     </update>
43 43
 
44 44
     <select id="listByCaseId" resultMap="BaseResultMap">
45
-        select * from column_value where case_id=#{caseId}
45
+        select * from ms_column_value where case_id=#{caseId}
46 46
     </select>
47 47
 
48 48
     <select id="queryColumnValueList"  parameterType="ColumnValue"  resultMap="BaseResultMap">
49
-        select * from column_value c
49
+        select * from ms_column_value c
50 50
         <where>
51 51
             <if test="caseId != null">
52 52
                 AND c.case_id  = #{caseId}

+ 3
- 3
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/DeptIdentifyMapper.xml Просмотреть файл

@@ -29,7 +29,7 @@
29 29
         SELECT  id, identify_name ,identify_status , identify_date,is_use,org_id,auth_flow_id,
30 30
                 oper_name,oper_phone,identify_type,credit_code,legal_per_name,legal_per_phone
31 31
                ,identify_email,dept_id ,user_id
32
-        FROM  dept_identify
32
+        FROM  ms_dept_identify
33 33
         <where>
34 34
             <if test="id != null">
35 35
                 AND id = #{id}
@@ -57,7 +57,7 @@
57 57
 
58 58
 
59 59
     <insert id="insertDeptIdentify" parameterType="DeptIdentify" useGeneratedKeys="true" keyProperty="id">
60
-        insert into dept_identify(
60
+        insert into ms_dept_identify(
61 61
         <if test="identifyName != null and identifyName != ''">identify_name,</if>
62 62
         <if test="identifyStatus != null">identify_status,</if>
63 63
         <if test="identifyDate != null">identify_date,</if>
@@ -100,7 +100,7 @@
100 100
 
101 101
 
102 102
     <update id="updateDeptIdentify" parameterType="DeptIdentify">
103
-        update dept_identify
103
+        update ms_dept_identify
104 104
         <set>
105 105
             <if test="identifyDate != null">identify_date = #{identifyDate},</if>
106 106
             <if test="identifyName != null">identify_name = #{identifyName},</if>

+ 7
- 7
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/FatchRuleMapper.xml Просмотреть файл

@@ -19,16 +19,16 @@
19 19
     <select id="listByTemplateId" resultMap="BaseResultMap">
20 20
         select f.id ,f.file_name ,f.start_content ,f.end_content ,
21 21
         f.`column` , ifnull(f.is_default,0) is_default ,f.`column_name`,ifnull(f.start_content_repeat_order,1) start_content_repeat_order,ifnull(f.end_content_repeat_order,1) end_content_repeat_order,ifnull(f.fatch_order,0) fatch_order
22
-         from fatch_rule f join template_fatch_rule tfr on f.id=tfr.fatch_rule_id
22
+         from ms_fatch_rule f join ms_template_fatch_rule tfr on f.id=tfr.ms_fatch_rule_id
23 23
         where tfr.template_id=#{templateId}
24 24
     </select>
25 25
 
26 26
     <select id="selectFatchRuleList" parameterType="FatchRule" resultMap="BaseResultMap">
27 27
         SELECT f.id ,f.file_name ,f.start_content ,f.end_content ,
28 28
         f.`column` ,f.is_default ,f.`column_name`,f.start_content_repeat_order,f.end_content_repeat_order,f.fatch_order
29
-        FROM template_fatch_rule tf
30
-        left join template_manage t on tf.template_id  = t.id
31
-        LEFT JOIN fatch_rule f on tf.fatch_rule_id  = f.id
29
+        FROM ms_template_fatch_rule tf
30
+        left join ms_template_manage t on tf.template_id  = t.id
31
+        LEFT JOIN ms_fatch_rule f on tf.ms_fatch_rule_id  = f.id
32 32
         <where>
33 33
             <if test="templateId != null">
34 34
                 AND tf.template_id  = #{templateId}
@@ -72,7 +72,7 @@
72 72
     <select id="selectFatchRuleListIsDefault" parameterType="FatchRule" resultMap="BaseResultMap">
73 73
         SELECT f.id ,f.file_name ,f.start_content ,f.end_content ,
74 74
         f.`column` ,f.is_default ,f.`column_name`
75
-        FROM fatch_rule f
75
+        FROM ms_fatch_rule f
76 76
         <where>
77 77
             <if test="isDefault != null">
78 78
                 AND f.is_default  = #{isDefault}
@@ -81,14 +81,14 @@
81 81
     </select>
82 82
 
83 83
     <delete id="deletebatchFatchRule">
84
-        delete from fatch_rule where id in
84
+        delete from ms_fatch_rule where id in
85 85
         <foreach collection="fatchRuleIds" item="item" open="(" separator="," close=")">
86 86
             #{item}
87 87
         </foreach>
88 88
     </delete>
89 89
 
90 90
     <insert id="insertFatchRule" parameterType="FatchRule" useGeneratedKeys="true" keyProperty="id">
91
-        insert into fatch_rule(
91
+        insert into ms_fatch_rule(
92 92
         <if test="fileName != null and fileName != ''">file_name,</if>
93 93
         <if test="startContent != null and startContent != ''">start_content,</if>
94 94
         <if test="endContent != null and endContent != ''">end_content,</if>

+ 4
- 4
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/IdentityAuthenticationMapper.xml Просмотреть файл

@@ -16,7 +16,7 @@
16 16
     </resultMap>
17 17
 
18 18
     <insert id="insertIdentityAuthentication" parameterType="IdentityAuthentication" useGeneratedKeys="true" keyProperty="id">
19
-        insert into identi_authenti(
19
+        insert into ms_identi_authenti(
20 20
         <if test="userId != null">user_id,</if>
21 21
         <if test="idAddress != null and idAddress != ''">id_address,</if>
22 22
         <if test="name != null and name != ''">name,</if>
@@ -39,7 +39,7 @@
39 39
         )
40 40
     </insert>
41 41
     <update id="updateIdentityAuthentication">
42
-        update identi_authenti
42
+        update ms_identi_authenti
43 43
         <set>
44 44
             <if test="userId != null ">user_id = #{userId},</if>
45 45
             <if test="userName != null and userName != ''">user_name = #{userName},</if>
@@ -52,7 +52,7 @@
52 52
 
53 53
     <select id="selectIdentityAuthentication" parameterType="IdentityAuthentication" resultMap="IdentityAuthenticationResult">
54 54
         SELECT  i.id ,i.name ,i.identity_no ,i.certification_time ,i.certification_status ,i.user_id ,i.user_name
55
-        from identi_authenti i
55
+        from ms_identi_authenti i
56 56
         <where>
57 57
             certification_status=0
58 58
             <if test="userName != null  and userName != '' ">
@@ -69,7 +69,7 @@
69 69
     </select>
70 70
 
71 71
     <select id="selectCountIdentityAuthentication" resultType="Integer">
72
-	    select count(1) from  identi_authenti i
72
+	    select count(1) from  ms_identi_authenti i
73 73
         <where>
74 74
             <if test="userName != null  and userName != '' ">
75 75
                 AND i.user_name  = #{userName}

+ 4
- 4
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/ReservedConferenceMapper.xml Просмотреть файл

@@ -5,7 +5,7 @@
5 5
 <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.ReservedConferenceMapper">
6 6
 
7 7
     <insert id="insert">
8
-        insert into reserved_conference(
8
+        insert into ms_reserved_conference(
9 9
         case_id,
10 10
         room_id,
11 11
         schedule_start_time,
@@ -20,17 +20,17 @@
20 20
         )
21 21
     </insert>
22 22
     <delete id="deleteByRoomId">
23
-        delete from reserved_conference where room_id=#{roomId}
23
+        delete from ms_reserved_conference where room_id=#{roomId}
24 24
     </delete>
25 25
     <delete id="batchDeleteByIds">
26
-        delete from reserved_conference where id in
26
+        delete from ms_reserved_conference where id in
27 27
         <foreach collection="ids" item="item" open="(" separator="," close=")">
28 28
             #{item}
29 29
         </foreach>
30 30
     </delete>
31 31
     <select id="selectListByCaseId" resultType="com.ruoyi.wisdomarbitrate.domain.ReservedConference">
32 32
         select id, case_id caseId,room_id roomId,schedule_start_time scheduleStartTime,schedule_end_time scheduleEndTime,user_id userId
33
-        from reserved_conference where case_id=#{caseId}
33
+        from ms_reserved_conference where case_id=#{caseId}
34 34
     </select>
35 35
 
36 36
 

+ 3
- 3
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/SealManageMapper.xml Просмотреть файл

@@ -15,7 +15,7 @@
15 15
 
16 16
     <select id="selectSealList" parameterType="SealManage" resultMap="SealManageResult">
17 17
         SELECT  id, identify_id ,seal_name , seal_id,annex_id,seal_status,is_use
18
-        FROM  seal_manage
18
+        FROM  ms_seal_manage
19 19
         <where>
20 20
             <if test="identifyId != null">
21 21
                 AND identify_id = #{identifyId}
@@ -28,7 +28,7 @@
28 28
 
29 29
 
30 30
     <insert id="insertSealManage" parameterType="SealManage" useGeneratedKeys="true" keyProperty="id">
31
-        insert into seal_manage(
31
+        insert into ms_seal_manage(
32 32
         <if test="identifyId != null">identify_id,</if>
33 33
         <if test="sealName != null and sealName != ''">seal_name,</if>
34 34
         <if test="sealId != null and sealId != ''">seal_id,</if>
@@ -46,7 +46,7 @@
46 46
     </insert>
47 47
 
48 48
     <update id="updateSealManage" parameterType="SealManage">
49
-        update seal_manage
49
+        update ms_seal_manage
50 50
         <set>
51 51
             <if test="identifyId != null">identify_id = #{identifyId},</if>
52 52
             <if test="sealName != null">seal_name = #{sealName},</if>

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


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