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

取消部门接口权限校验

gy b 2 лет назад
Родитель
Сommit
ce01c9366a

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

25
      * @return
25
      * @return
26
      */
26
      */
27
     @PostMapping("/document")
27
     @PostMapping("/document")
28
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:createaward')")
29
     public AjaxResult createDocument(@Validated @RequestBody CaseApplication caseApplication){
28
     public AjaxResult createDocument(@Validated @RequestBody CaseApplication caseApplication){
30
         return adjudicationService.createDocument(caseApplication);
29
         return adjudicationService.createDocument(caseApplication);
31
     }
30
     }
58
      * @return
57
      * @return
59
      */
58
      */
60
     @PostMapping("/signature")
59
     @PostMapping("/signature")
61
-    @PreAuthorize("@ss.hasPermi('awardManagement:list:sign')")
60
+//    @PreAuthorize("@ss.hasPermi('awardManagement:list:sign')")
62
     public AjaxResult signature(@Validated @RequestBody CaseApplication caseApplication){
61
     public AjaxResult signature(@Validated @RequestBody CaseApplication caseApplication){
63
         return adjudicationService.signature(caseApplication);
62
         return adjudicationService.signature(caseApplication);
64
     }
63
     }
69
      * @return
68
      * @return
70
      */
69
      */
71
     @PostMapping("/caseFile")
70
     @PostMapping("/caseFile")
72
-    @PreAuthorize("@ss.hasPermi('awardManagement:list:file')")
71
+//    @PreAuthorize("@ss.hasPermi('awardManagement:list:file')")
73
     public AjaxResult caseFile(@Validated @RequestBody CaseApplication caseApplication){
72
     public AjaxResult caseFile(@Validated @RequestBody CaseApplication caseApplication){
74
         return adjudicationService.caseFile(caseApplication);
73
         return adjudicationService.caseFile(caseApplication);
75
     }
74
     }
80
      * @return
79
      * @return
81
      */
80
      */
82
     @PostMapping("/service")
81
     @PostMapping("/service")
83
-    @PreAuthorize("@ss.hasPermi('awardManagement:list:sendaward')")
82
+//    @PreAuthorize("@ss.hasPermi('awardManagement:list:sendaward')")
84
     public AjaxResult service(@RequestBody BookSendVO bookSendVO){
83
     public AjaxResult service(@RequestBody BookSendVO bookSendVO){
85
         return adjudicationService.service(bookSendVO.getId(),bookSendVO.getAppEmail(),bookSendVO.getResEmail(),bookSendVO.getApptrackingNum(),bookSendVO.getRestrackingNum());
84
         return adjudicationService.service(bookSendVO.getId(),bookSendVO.getAppEmail(),bookSendVO.getResEmail(),bookSendVO.getApptrackingNum(),bookSendVO.getRestrackingNum());
86
     }
85
     }
90
      * @return
89
      * @return
91
      */
90
      */
92
     @PostMapping("/stamp")
91
     @PostMapping("/stamp")
93
-    @PreAuthorize("@ss.hasPermi('awardManagement:list:signprint')")
92
+//    @PreAuthorize("@ss.hasPermi('awardManagement:list:signprint')")
94
     public AjaxResult stamp(@Validated @RequestBody CaseApplication caseApplication){
93
     public AjaxResult stamp(@Validated @RequestBody CaseApplication caseApplication){
95
         return adjudicationService.stamp(caseApplication);
94
         return adjudicationService.stamp(caseApplication);
96
     }
95
     }

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

41
     /**
41
     /**
42
      * 新增立案数据
42
      * 新增立案数据
43
      */
43
      */
44
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:add')")
44
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:add')")
45
     @Log(title = "新增立案数据", businessType = BusinessType.INSERT)
45
     @Log(title = "新增立案数据", businessType = BusinessType.INSERT)
46
     @PostMapping("/addCaseApplication")
46
     @PostMapping("/addCaseApplication")
47
     public AjaxResult addCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
47
     public AjaxResult addCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
54
     /**
54
     /**
55
      * 修改立案数据
55
      * 修改立案数据
56
      */
56
      */
57
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:update')")
57
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:update')")
58
     @Log(title = "修改立案数据", businessType = BusinessType.UPDATE)
58
     @Log(title = "修改立案数据", businessType = BusinessType.UPDATE)
59
     @PostMapping("/editCaseApplication")
59
     @PostMapping("/editCaseApplication")
60
     public AjaxResult editCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
60
     public AjaxResult editCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
66
     /**
66
     /**
67
      * 提交立案申请
67
      * 提交立案申请
68
      */
68
      */
69
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:submit')")
69
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:submit')")
70
     @Log(title = "提交立案申请", businessType = BusinessType.UPDATE)
70
     @Log(title = "提交立案申请", businessType = BusinessType.UPDATE)
71
     @PostMapping("/submitCaseApplication")
71
     @PostMapping("/submitCaseApplication")
72
     public AjaxResult submitCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
72
     public AjaxResult submitCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
77
     /**
77
     /**
78
      * 删除立案数据
78
      * 删除立案数据
79
      */
79
      */
80
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:delete')")
80
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:delete')")
81
     @Log(title = "删除立案数据", businessType = BusinessType.DELETE)
81
     @Log(title = "删除立案数据", businessType = BusinessType.DELETE)
82
     @PostMapping("/removeCaseApplication")
82
     @PostMapping("/removeCaseApplication")
83
     public AjaxResult removeCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
83
     public AjaxResult removeCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
88
     /**
88
     /**
89
      * 查询立案信息
89
      * 查询立案信息
90
      */
90
      */
91
-     @PreAuthorize("@ss.hasPermi('caseManagement:list:detail')")
91
+//     @PreAuthorize("@ss.hasPermi('caseManagement:list:detail')")
92
     @PostMapping("/selectCaseApplication")
92
     @PostMapping("/selectCaseApplication")
93
     public AjaxResult selectCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
93
     public AjaxResult selectCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
94
         CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplication(caseApplication);
94
         CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplication(caseApplication);
105
     }
105
     }
106
 
106
 
107
     @Log(title = "立案信息导入", businessType = BusinessType.IMPORT)
107
     @Log(title = "立案信息导入", businessType = BusinessType.IMPORT)
108
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:import')")
108
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:import')")
109
     @PostMapping("/importData")
109
     @PostMapping("/importData")
110
     public AjaxResult importData(MultipartFile file) throws Exception {
110
     public AjaxResult importData(MultipartFile file) throws Exception {
111
         if(file==null){
111
         if(file==null){
121
     /**
121
     /**
122
      * 组庭
122
      * 组庭
123
      */
123
      */
124
-    @PreAuthorize("@ss.hasPermi('caseApplication:pendTral')")
124
+//    @PreAuthorize("@ss.hasPermi('caseApplication:pendTral')")
125
     @Log(title = "组庭", businessType = BusinessType.UPDATE)
125
     @Log(title = "组庭", businessType = BusinessType.UPDATE)
126
     @PostMapping("/pendTral")
126
     @PostMapping("/pendTral")
127
     public AjaxResult pendTral(@Validated @RequestBody CaseApplication caseApplication) {
127
     public AjaxResult pendTral(@Validated @RequestBody CaseApplication caseApplication) {
131
     /**
131
     /**
132
      * 组庭审核
132
      * 组庭审核
133
      */
133
      */
134
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:checkgroup')")
134
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:checkgroup')")
135
     @Log(title = "组庭审核", businessType = BusinessType.UPDATE)
135
     @Log(title = "组庭审核", businessType = BusinessType.UPDATE)
136
     @PostMapping("/pendTralCheck")
136
     @PostMapping("/pendTralCheck")
137
     public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication) {
137
     public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication) {
141
     /**
141
     /**
142
      * 组庭确认
142
      * 组庭确认
143
      */
143
      */
144
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:confirmgroup')")
144
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:confirmgroup')")
145
     @Log(title = "组庭确认", businessType = BusinessType.UPDATE)
145
     @Log(title = "组庭确认", businessType = BusinessType.UPDATE)
146
     @PostMapping("/pendTralSure")
146
     @PostMapping("/pendTralSure")
147
     public AjaxResult pendTralSure(@Validated @RequestBody CaseApplication caseApplication) {
147
     public AjaxResult pendTralSure(@Validated @RequestBody CaseApplication caseApplication) {
151
     /**
151
     /**
152
      * 核验裁决书
152
      * 核验裁决书
153
      */
153
      */
154
-    @PreAuthorize("@ss.hasPermi('caseApplication:verificationArbitrateRecord')")
154
+//    @PreAuthorize("@ss.hasPermi('caseApplication:verificationArbitrateRecord')")
155
     @Log(title = "核验裁决书", businessType = BusinessType.UPDATE)
155
     @Log(title = "核验裁决书", businessType = BusinessType.UPDATE)
156
     @PostMapping("/verificationArbitrateRecord")
156
     @PostMapping("/verificationArbitrateRecord")
157
     public AjaxResult verificationArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication) {
157
     public AjaxResult verificationArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication) {
161
     /**
161
     /**
162
      * 审核裁决书
162
      * 审核裁决书
163
      */
163
      */
164
-    @PreAuthorize("@ss.hasPermi('caseApplication:checkArbitrateRecord')")
164
+//    @PreAuthorize("@ss.hasPermi('caseApplication:checkArbitrateRecord')")
165
     @Log(title = "审核裁决书", businessType = BusinessType.UPDATE)
165
     @Log(title = "审核裁决书", businessType = BusinessType.UPDATE)
166
     @PostMapping("/checkArbitrateRecord")
166
     @PostMapping("/checkArbitrateRecord")
167
     public AjaxResult checkArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication) {
167
     public AjaxResult checkArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication) {
172
     /**
172
     /**
173
      * 是否指派仲裁员
173
      * 是否指派仲裁员
174
      */
174
      */
175
-    @PreAuthorize("@ss.hasPermi('caseApplication:pendingAppointArbotrar')")
175
+//    @PreAuthorize("@ss.hasPermi('caseApplication:pendingAppointArbotrar')")
176
     @Log(title = "是否指派仲裁员", businessType = BusinessType.UPDATE)
176
     @Log(title = "是否指派仲裁员", businessType = BusinessType.UPDATE)
177
     @PostMapping("/pendingAppointArbotrar")
177
     @PostMapping("/pendingAppointArbotrar")
178
     public AjaxResult pendingAppointArbotrar(@Validated @RequestBody CaseApplication caseApplication) {
178
     public AjaxResult pendingAppointArbotrar(@Validated @RequestBody CaseApplication caseApplication) {
182
     /**
182
     /**
183
      * 提交立案审查
183
      * 提交立案审查
184
      */
184
      */
185
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:check')")
185
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:check')")
186
     @Log(title = "提交立案审查", businessType = BusinessType.UPDATE)
186
     @Log(title = "提交立案审查", businessType = BusinessType.UPDATE)
187
     @PostMapping("/submitCaseApplicationCheck")
187
     @PostMapping("/submitCaseApplicationCheck")
188
     public AjaxResult submitCaseApplicationCheck(@Validated @RequestBody CaseApplication caseApplication) {
188
     public AjaxResult submitCaseApplicationCheck(@Validated @RequestBody CaseApplication caseApplication) {
193
     /**
193
     /**
194
      * 确认缴费查询立案信息
194
      * 确认缴费查询立案信息
195
      */
195
      */
196
-    @PreAuthorize("@ss.hasPermi('paymentManagement:list:detail')")
196
+//    @PreAuthorize("@ss.hasPermi('paymentManagement:list:detail')")
197
     @PostMapping("/selectCaseApplicationConfirm")
197
     @PostMapping("/selectCaseApplicationConfirm")
198
     public AjaxResult selectCaseApplicationConfirm(@Validated @RequestBody CaseApplication caseApplication) {
198
     public AjaxResult selectCaseApplicationConfirm(@Validated @RequestBody CaseApplication caseApplication) {
199
         CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplicationConfirm(caseApplication);
199
         CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplicationConfirm(caseApplication);

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

35
      * @return
35
      * @return
36
      */
36
      */
37
     @PostMapping("/writtenHear")
37
     @PostMapping("/writtenHear")
38
-    @PreAuthorize("@ss.hasPermi('caseManagement:hear')")
39
     public AjaxResult writtenHear(@Validated @RequestBody ArbitrateRecord arbitrateRecord){
38
     public AjaxResult writtenHear(@Validated @RequestBody ArbitrateRecord arbitrateRecord){
40
         return caseArbitrateService.writtenHear(arbitrateRecord);
39
         return caseArbitrateService.writtenHear(arbitrateRecord);
41
     }
40
     }

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

25
      * @param casePayDTO 缴费传入参数
25
      * @param casePayDTO 缴费传入参数
26
      * @return 统一响应结果
26
      * @return 统一响应结果
27
      */
27
      */
28
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:pay')")
28
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:pay')")
29
     @PostMapping("/casePay")
29
     @PostMapping("/casePay")
30
     public AjaxResult casePay(@Validated @RequestBody CasePayDTO casePayDTO) {
30
     public AjaxResult casePay(@Validated @RequestBody CasePayDTO casePayDTO) {
31
         return paymentService.casePay(casePayDTO);
31
         return paymentService.casePay(casePayDTO);
36
      * @param caseApplication
36
      * @param caseApplication
37
      * @return
37
      * @return
38
      */
38
      */
39
-    @PreAuthorize("@ss.hasPermi('paymentManagement:list:payconfirm')")
39
+//    @PreAuthorize("@ss.hasPermi('paymentManagement:list:payconfirm')")
40
     @PutMapping("/confirm")
40
     @PutMapping("/confirm")
41
     public AjaxResult confirmPayment(@Validated @RequestBody CaseApplication caseApplication) {
41
     public AjaxResult confirmPayment(@Validated @RequestBody CaseApplication caseApplication) {
42
         return paymentService.confirmPayment(caseApplication);
42
         return paymentService.confirmPayment(caseApplication);

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

94
   mail:
94
   mail:
95
     host: smtp.163.com
95
     host: smtp.163.com
96
     port: 25
96
     port: 25
97
-    username: hjbjava@163.com
98
-    password: BSRSSEPJWGNNVYYL
97
+    username: lmj1549843951@163.com
98
+    password: JGIOQVFCLAZKXRKO
99
     default-encoding: UTF-8
99
     default-encoding: UTF-8
100
     properties:
100
     properties:
101
       mail:
101
       mail:
102
         smtp:
102
         smtp:
103
+          connectiontimeout: 5000
104
+          timeout: 5000
105
+          writetimeout: 5000
103
           socketFactoryClass: javax.net.ssl.SSLSocketFactory
106
           socketFactoryClass: javax.net.ssl.SSLSocketFactory
107
+          socketFactoryFallback: false
108
+          socketFactoryPort: 465
104
         debug: false
109
         debug: false
110
+    protocol: smtp
105
 #上上签配置参数
111
 #上上签配置参数
106
 ssq:
112
 ssq:
107
   developerId: 1695872832013855470
113
   developerId: 1695872832013855470

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

299
         caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATED_SEAL);
299
         caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATED_SEAL);
300
         caseApplicationMapper.submitCaseApplication(caseApplication);
300
         caseApplicationMapper.submitCaseApplication(caseApplication);
301
         // 新增日志
301
         // 新增日志
302
-        CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.ARBITRATED_SEAL,"");
302
+        CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.ARBITRATED_SEAL, "");
303
 
303
 
304
         return AjaxResult.success("签名成功,案件状态已改为待仲裁文书用印");
304
         return AjaxResult.success("签名成功,案件状态已改为待仲裁文书用印");
305
     }
305
     }
310
         caseApplication.setCaseStatus(CaseApplicationConstants.CASE_ARCHIVED);
310
         caseApplication.setCaseStatus(CaseApplicationConstants.CASE_ARCHIVED);
311
         caseApplicationMapper.submitCaseApplication(caseApplication);
311
         caseApplicationMapper.submitCaseApplication(caseApplication);
312
         // 新增日志
312
         // 新增日志
313
-        CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.CASE_ARCHIVED,"");
313
+        CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CASE_ARCHIVED, "");
314
 
314
 
315
         return AjaxResult.success("归档成功,案件状态已改为已归档");
315
         return AjaxResult.success("归档成功,案件状态已改为已归档");
316
     }
316
     }
343
                 }
343
                 }
344
             }
344
             }
345
         }
345
         }
346
+        //发送邮件
347
+        sendCaseEmail(caseApplication1, appEmail, resEmail);
346
         // 新增日志
348
         // 新增日志
347
-        CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.CASE_FILING,"");
349
+        CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CASE_FILING, "");
348
 
350
 
349
         return AjaxResult.success("仲裁文书送达成功");
351
         return AjaxResult.success("仲裁文书送达成功");
350
     }
352
     }
351
 
353
 
354
+    /**
355
+     * 通过邮件发送裁决书文件
356
+     *
357
+     * @param caseApplication1
358
+     * @param appEmail
359
+     * @param resEmail
360
+     */
361
+    private void sendCaseEmail(CaseApplication caseApplication1, String appEmail, String resEmail) {
362
+        List<File> fileList = new ArrayList<>();
363
+        File file = null;
364
+//        List<CaseAttach> caseAttachList = caseApplication1.getCaseAttachList();
365
+//        if (caseAttachList != null && caseAttachList.size() > 0) {
366
+//            for (CaseAttach caseAttach : caseAttachList) {
367
+//                if (caseAttach.getAnnexType() == 3) {
368
+//                    String annexPath = caseAttach.getAnnexPath();
369
+//                    String path = "/home/ruoyi/" + annexPath;
370
+//        String path = "/home/ruoyi/uploadPath/upload/2023/10/12/裁决书测试20231012test.docx";
371
+        String path = "E:/WorkDoc/SH/裁决书测试20231012test.docx";
372
+        file = new File(path);
373
+        fileList.add(file);
374
+        System.out.println("文件长度:" + file.length());
375
+//                }
376
+//            }
377
+//        }
378
+        if (file != null) {
379
+            JavaMailSender javaMailSender = emailOutUtil.rebuildMailSender();
380
+            try {
381
+//                emailOutUtil.sendMessageCarryFile(appEmail, "裁决书", "您好,审核后的裁决书在附件中请查阅", file, "hjbjava@163.com", javaMailSender);
382
+                emailOutUtil.sendMessageCarryFiles(appEmail, "裁决书", "您好,审核后的裁决书在附件中请查阅", fileList, "lmj1549843951@163.com", javaMailSender);
383
+            } catch (Exception e) {
384
+                System.out.println("邮件发送失败++++++++++++++++++++++++++++++++");
385
+                System.out.println(e.toString());
386
+            }
387
+        }
388
+
389
+    }
390
+
352
     @Override
391
     @Override
353
     public AjaxResult stamp(CaseApplication caseApplication) {
392
     public AjaxResult stamp(CaseApplication caseApplication) {
354
         //更改案件状态(暂时)
393
         //更改案件状态(暂时)
355
         caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATION_DELIVERY);
394
         caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATION_DELIVERY);
356
         caseApplicationMapper.submitCaseApplication(caseApplication);
395
         caseApplicationMapper.submitCaseApplication(caseApplication);
357
         // 新增日志
396
         // 新增日志
358
-        CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.ARBITRATION_DELIVERY,"");
397
+        CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.ARBITRATION_DELIVERY, "");
359
 
398
 
360
         return AjaxResult.success("用印成功,案件状态已改为待仲裁文书送达");
399
         return AjaxResult.success("用印成功,案件状态已改为待仲裁文书送达");
361
     }
400
     }

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

716
         arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord);
716
         arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord);
717
         Integer agreeOrNotCheck = caseApplication.getAgreeOrNotCheck();
717
         Integer agreeOrNotCheck = caseApplication.getAgreeOrNotCheck();
718
         if(agreeOrNotCheck.intValue()==1){//同意审核
718
         if(agreeOrNotCheck.intValue()==1){//同意审核
719
-            try {
720
-                //获取当前案件的裁决书
721
-                CaseApplication caseApplication2 = caseApplicationService.selectCaseApplication(caseApplication);
722
-                List<CaseAttach> caseAttachList = caseApplication2.getCaseAttachList();
723
-                if (caseAttachList != null && caseAttachList.size() > 0) {
724
-                    for (CaseAttach caseAttach : caseAttachList) {
725
-                        if (caseAttach.getAnnexType() == 3) {
726
-                            String annexPath = caseAttach.getAnnexPath();
727
-                            //String path = "/home/ruoyi/" + annexPath;
728
-                            String path ="D:\\home\\仲裁裁决书模板.docx";
729
-                            //获取文件上传地址
730
-                            EsignHttpResponse response = SaaSAPIFileUtils.getUploadUrl(path);
731
-                            String body = response.getBody();
732
-                            if (body != null){
733
-                                JSONObject jsonObject = JSONObject.parseObject(body);
734
-                                String fileId = jsonObject.getJSONObject("data").getString("fileId");
735
-                                String fileUploadUrl = jsonObject.getJSONObject("data").getString("fileUploadUrl");
736
-                                //上传文件流
737
-                                EsignHttpResponse response1 = SaaSAPIFileUtils.uploadFile(fileUploadUrl, path);
738
-                                JSONObject jsonObject1 = JSONObject.parseObject(response1.getBody());
739
-                                if (jsonObject1.getIntValue("errCode")==0){
740
-                                    //查看文件上传状态
741
-                                    Thread.sleep(5000);
742
-                                    EsignHttpResponse response2 = SaaSAPIFileUtils.getFileStatus(fileId);
743
-                                    JSONObject jsonObject2 = JSONObject.parseObject(response2.getBody());
744
-                                    JSONObject data = jsonObject2.getJSONObject("data");
745
-                                    int fileStatus =data.getIntValue("fileStatus");
746
-                                    if (fileStatus == 2 || fileStatus == 5){
747
-                                        String fileName = data.getString("fileName");
748
-                                        //上传成功,获取文件签名印章位置
749
-                                        SealSignRecord sealSignRecord = new SealSignRecord();
750
-                                        sealSignRecord.setFileid(fileId);
751
-                                        EsignHttpResponse positions = SignAward.getPositions(sealSignRecord);
752
-                                        Gson gson = new Gson();
753
-                                        JsonObject positionsJsonObject = gson.fromJson(positions.getBody(), JsonObject.class);
754
-                                        JsonObject positionsData = positionsJsonObject.getAsJsonObject("data");
755
-                                        String keywordPositions = positionsData.get("keywordPositions").getAsString();
756
-                                        //发起签署
757
-                                        sealSignRecord.setFilename(fileName);
758
-                                        String arbitratorId = caseApplication2.getArbitratorId();
759
-                                        if (arbitratorId!=null){
760
-                                            SysUser sysUser = sysUserMapper.selectUserById(Long.valueOf(arbitratorId));
761
-                                            if (sysUser == null){
762
-                                                return rows;
763
-                                            }
764
-                                            sealSignRecord.setPensonAccount(sysUser.getPhonenumber());
765
-                                            sealSignRecord.setPensonName(sysUser.getNickName());
766
-                                        }
767
-                                        sealSignRecord.setOrgnizeName("西安云美电子科技有限公司");
768
-                                        sealSignRecord.setOrgnizeNamePsnAccount("秦桃则");
769
-                                        sealSignRecord.setOrgnizeName("西安云美电子科技有限公司");
770
-                                        sealSignRecord.setOrgnizeNamePsnAccount("17691338406");
771
-                                        sealSignRecord.setOrgnizeNamepsnName("韩超勃");
772
-                                        //解析文件签名印章位置
773
-                                        JSONArray jsonArray = JSONArray.parseArray(keywordPositions);
774
-                                        for (int i = 0; i < jsonArray.size(); i++) {
775
-                                            JSONObject jsonObject3 = jsonArray.getJSONObject(i);
776
-                                            String keyword = jsonObject3.getString("keyword");
777
-                                            if (keyword.equals("仲裁员")){
778
-                                                //签名
779
-                                                JSONArray positionsArray = jsonObject3.getJSONArray("positions");
780
-                                                // 遍历 positionsArray 中的每个元素
781
-                                                for (int j = 0; j < positionsArray.size(); j++){
782
-                                                    JSONObject positionObj = positionsArray.getJSONObject(j);
783
-                                                    int pageNum = positionObj.getIntValue("pageNum");
784
-                                                    sealSignRecord.setPositionPagepsn(String.valueOf(pageNum));
785
-                                                    JSONArray coordinatesArray = positionObj.getJSONArray("coordinates");
786
-                                                    JSONObject coordinateObj = coordinatesArray.getJSONObject(0);
787
-                                                    double positionX = coordinateObj.getDoubleValue("positionX");
788
-                                                    double positionY = coordinateObj.getDoubleValue("positionY");
789
-                                                    sealSignRecord.setPositionXpsn(positionX);
790
-                                                    sealSignRecord.setPositionYpsn(positionY);
791
-                                                }
792
-                                            }else {
793
-                                                //用印
794
-                                                JSONArray positionsArray = jsonObject3.getJSONArray("positions");
795
-                                                // 遍历 positionsArray 中的每个元素
796
-                                                for (int j = 0; j < positionsArray.size(); j++) {
797
-                                                    JSONObject positionObj = positionsArray.getJSONObject(j);
798
-                                                    int pageNum = positionObj.getIntValue("pageNum");
799
-                                                    sealSignRecord.setPositionPageorg(String.valueOf(pageNum));
800
-                                                    JSONArray coordinatesArray = positionObj.getJSONArray("coordinates");
801
-                                                    JSONObject coordinateObj = coordinatesArray.getJSONObject(0);
802
-                                                    double positionX = coordinateObj.getDoubleValue("positionX");
803
-                                                    double positionY = coordinateObj.getDoubleValue("positionY");
804
-                                                    sealSignRecord.setPositionXorg(positionX);
805
-                                                    sealSignRecord.setPositionYorg(positionY);
806
-                                                }
807
-                                            }
808
-                                        }
809
-                                        EsignHttpResponse response3 = SignAward.createByFile(sealSignRecord);
810
-                                        JSONObject jsonObject3 = JSONObject.parseObject(response3.getBody());
811
-                                        if (jsonObject1.getIntValue("code")==0){
812
-                                            //获取签署流程ID
813
-                                            JSONObject data1 = jsonObject3.getJSONObject("data");
814
-                                            String signFlowId = data1.getString("signFlowId");
815
-                                            //保存案件id,文件id,文件名称.流程id到签署用印记录表里
816
-                                            sealSignRecord.setCaseAppliId(caseApplication.getId());
817
-                                            sealSignRecord.setSignFlowid(signFlowId);
818
-                                            sealSignRecord.setSignFlowStatus(1);//待签名
819
-                                            sealSignRecordMapper.insertSealSignRecord(sealSignRecord);
820
-                                        }
821
-                                    }
822
-                                }
823
-                            }
824
-                            break;
825
-                        }
826
-                    }
827
-                }
828
-            } catch (EsignDemoException e) {
829
-                e.printStackTrace();
830
-            } catch (InterruptedException e) {
831
-                e.printStackTrace();
832
-            }
719
+            //TODO 取消一下注释
720
+//            try {
721
+//                //获取当前案件的裁决书
722
+//                CaseApplication caseApplication2 = caseApplicationService.selectCaseApplication(caseApplication);
723
+//                List<CaseAttach> caseAttachList = caseApplication2.getCaseAttachList();
724
+//                if (caseAttachList != null && caseAttachList.size() > 0) {
725
+//                    for (CaseAttach caseAttach : caseAttachList) {
726
+//                        if (caseAttach.getAnnexType() == 3) {
727
+//                            String annexPath = caseAttach.getAnnexPath();
728
+//                            String path = "/home/ruoyi/" + annexPath;
729
+////                            String path ="D:\\home\\仲裁裁决书模板.docx";
730
+//                            //获取文件上传地址
731
+//                            EsignHttpResponse response = SaaSAPIFileUtils.getUploadUrl(path);
732
+//                            String body = response.getBody();
733
+//                            if (body != null){
734
+//                                JSONObject jsonObject = JSONObject.parseObject(body);
735
+//                                String fileId = jsonObject.getJSONObject("data").getString("fileId");
736
+//                                String fileUploadUrl = jsonObject.getJSONObject("data").getString("fileUploadUrl");
737
+//                                //上传文件流
738
+//                                EsignHttpResponse response1 = SaaSAPIFileUtils.uploadFile(fileUploadUrl, path);
739
+//                                JSONObject jsonObject1 = JSONObject.parseObject(response1.getBody());
740
+//                                if (jsonObject1.getIntValue("errCode")==0){
741
+//                                    //查看文件上传状态
742
+//                                    Thread.sleep(5000);
743
+//                                    EsignHttpResponse response2 = SaaSAPIFileUtils.getFileStatus(fileId);
744
+//                                    JSONObject jsonObject2 = JSONObject.parseObject(response2.getBody());
745
+//                                    JSONObject data = jsonObject2.getJSONObject("data");
746
+//                                    int fileStatus =data.getIntValue("fileStatus");
747
+//                                    if (fileStatus == 2 || fileStatus == 5){
748
+//                                        String fileName = data.getString("fileName");
749
+//                                        //上传成功,获取文件签名印章位置
750
+//                                        SealSignRecord sealSignRecord = new SealSignRecord();
751
+//                                        sealSignRecord.setFileid(fileId);
752
+//                                        EsignHttpResponse positions = SignAward.getPositions(sealSignRecord);
753
+//                                        Gson gson = new Gson();
754
+//                                        JsonObject positionsJsonObject = gson.fromJson(positions.getBody(), JsonObject.class);
755
+//                                        JsonObject positionsData = positionsJsonObject.getAsJsonObject("data");
756
+//                                        String keywordPositions = positionsData.get("keywordPositions").getAsString();
757
+//                                        //发起签署
758
+//                                        sealSignRecord.setFilename(fileName);
759
+//                                        String arbitratorId = caseApplication2.getArbitratorId();
760
+//                                        if (arbitratorId!=null){
761
+//                                            SysUser sysUser = sysUserMapper.selectUserById(Long.valueOf(arbitratorId));
762
+//                                            if (sysUser == null){
763
+//                                                return rows;
764
+//                                            }
765
+//                                            sealSignRecord.setPensonAccount(sysUser.getPhonenumber());
766
+//                                            sealSignRecord.setPensonName(sysUser.getNickName());
767
+//                                        }
768
+//                                        sealSignRecord.setOrgnizeName("西安云美电子科技有限公司");
769
+//                                        sealSignRecord.setOrgnizeNamePsnAccount("秦桃则");
770
+//                                        sealSignRecord.setOrgnizeName("西安云美电子科技有限公司");
771
+//                                        sealSignRecord.setOrgnizeNamePsnAccount("17691338406");
772
+//                                        sealSignRecord.setOrgnizeNamepsnName("韩超勃");
773
+//                                        //解析文件签名印章位置
774
+//                                        JSONArray jsonArray = JSONArray.parseArray(keywordPositions);
775
+//                                        for (int i = 0; i < jsonArray.size(); i++) {
776
+//                                            JSONObject jsonObject3 = jsonArray.getJSONObject(i);
777
+//                                            String keyword = jsonObject3.getString("keyword");
778
+//                                            if (keyword.equals("仲裁员")){
779
+//                                                //签名
780
+//                                                JSONArray positionsArray = jsonObject3.getJSONArray("positions");
781
+//                                                // 遍历 positionsArray 中的每个元素
782
+//                                                for (int j = 0; j < positionsArray.size(); j++){
783
+//                                                    JSONObject positionObj = positionsArray.getJSONObject(j);
784
+//                                                    int pageNum = positionObj.getIntValue("pageNum");
785
+//                                                    sealSignRecord.setPositionPagepsn(String.valueOf(pageNum));
786
+//                                                    JSONArray coordinatesArray = positionObj.getJSONArray("coordinates");
787
+//                                                    JSONObject coordinateObj = coordinatesArray.getJSONObject(0);
788
+//                                                    double positionX = coordinateObj.getDoubleValue("positionX");
789
+//                                                    double positionY = coordinateObj.getDoubleValue("positionY");
790
+//                                                    sealSignRecord.setPositionXpsn(positionX);
791
+//                                                    sealSignRecord.setPositionYpsn(positionY);
792
+//                                                }
793
+//                                            }else {
794
+//                                                //用印
795
+//                                                JSONArray positionsArray = jsonObject3.getJSONArray("positions");
796
+//                                                // 遍历 positionsArray 中的每个元素
797
+//                                                for (int j = 0; j < positionsArray.size(); j++) {
798
+//                                                    JSONObject positionObj = positionsArray.getJSONObject(j);
799
+//                                                    int pageNum = positionObj.getIntValue("pageNum");
800
+//                                                    sealSignRecord.setPositionPageorg(String.valueOf(pageNum));
801
+//                                                    JSONArray coordinatesArray = positionObj.getJSONArray("coordinates");
802
+//                                                    JSONObject coordinateObj = coordinatesArray.getJSONObject(0);
803
+//                                                    double positionX = coordinateObj.getDoubleValue("positionX");
804
+//                                                    double positionY = coordinateObj.getDoubleValue("positionY");
805
+//                                                    sealSignRecord.setPositionXorg(positionX);
806
+//                                                    sealSignRecord.setPositionYorg(positionY);
807
+//                                                }
808
+//                                            }
809
+//                                        }
810
+//                                        EsignHttpResponse response3 = SignAward.createByFile(sealSignRecord);
811
+//                                        JSONObject jsonObject3 = JSONObject.parseObject(response3.getBody());
812
+//                                        if (jsonObject1.getIntValue("code")==0){
813
+//                                            //获取签署流程ID
814
+//                                            JSONObject data1 = jsonObject3.getJSONObject("data");
815
+//                                            String signFlowId = data1.getString("signFlowId");
816
+//                                            //保存案件id,文件id,文件名称.流程id到签署用印记录表里
817
+//                                            sealSignRecord.setCaseAppliId(caseApplication.getId());
818
+//                                            sealSignRecord.setSignFlowid(signFlowId);
819
+//                                            sealSignRecord.setSignFlowStatus(1);//待签名
820
+//                                            sealSignRecordMapper.insertSealSignRecord(sealSignRecord);
821
+//                                        }
822
+//                                    }
823
+//                                }
824
+//                            }
825
+//                            break;
826
+//                        }
827
+//                    }
828
+//                }
829
+//            } catch (EsignDemoException e) {
830
+//                e.printStackTrace();
831
+//            } catch (InterruptedException e) {
832
+//                e.printStackTrace();
833
+//            }
833
             caseApplication.setCaseStatus(CaseApplicationConstants.SIGN_ARBITRATION);
834
             caseApplication.setCaseStatus(CaseApplicationConstants.SIGN_ARBITRATION);
834
             // 新增日志
835
             // 新增日志
835
             CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.SIGN_ARBITRATION,"");
836
             CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.SIGN_ARBITRATION,"");