Преглед изворни кода

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

bgy пре 2 година
родитељ
комит
01d86180a9

+ 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
     }

+ 16
- 16
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java Прегледај датотеку

44
     /**
44
     /**
45
      * 新增立案数据
45
      * 新增立案数据
46
      */
46
      */
47
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:add')")
47
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:add')")
48
     @Log(title = "新增立案数据", businessType = BusinessType.INSERT)
48
     @Log(title = "新增立案数据", businessType = BusinessType.INSERT)
49
     @PostMapping("/addCaseApplication")
49
     @PostMapping("/addCaseApplication")
50
     public AjaxResult addCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
50
     public AjaxResult addCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
57
     /**
57
     /**
58
      * 修改立案数据
58
      * 修改立案数据
59
      */
59
      */
60
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:update')")
60
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:update')")
61
     @Log(title = "修改立案数据", businessType = BusinessType.UPDATE)
61
     @Log(title = "修改立案数据", businessType = BusinessType.UPDATE)
62
     @PostMapping("/editCaseApplication")
62
     @PostMapping("/editCaseApplication")
63
     public AjaxResult editCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
63
     public AjaxResult editCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
69
     /**
69
     /**
70
      * 提交立案申请
70
      * 提交立案申请
71
      */
71
      */
72
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:submit')")
72
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:submit')")
73
     @Log(title = "提交立案申请", businessType = BusinessType.UPDATE)
73
     @Log(title = "提交立案申请", businessType = BusinessType.UPDATE)
74
     @PostMapping("/submitCaseApplication")
74
     @PostMapping("/submitCaseApplication")
75
     public AjaxResult submitCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
75
     public AjaxResult submitCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
80
     /**
80
     /**
81
      * 删除立案数据
81
      * 删除立案数据
82
      */
82
      */
83
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:delete')")
83
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:delete')")
84
     @Log(title = "删除立案数据", businessType = BusinessType.DELETE)
84
     @Log(title = "删除立案数据", businessType = BusinessType.DELETE)
85
     @PostMapping("/removeCaseApplication")
85
     @PostMapping("/removeCaseApplication")
86
     public AjaxResult removeCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
86
     public AjaxResult removeCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
91
     /**
91
     /**
92
      * 查询立案信息
92
      * 查询立案信息
93
      */
93
      */
94
-     @PreAuthorize("@ss.hasPermi('caseManagement:list:detail')")
94
+//     @PreAuthorize("@ss.hasPermi('caseManagement:list:detail')")
95
     @PostMapping("/selectCaseApplication")
95
     @PostMapping("/selectCaseApplication")
96
     public AjaxResult selectCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
96
     public AjaxResult selectCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
97
         CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplication(caseApplication);
97
         CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplication(caseApplication);
101
     /**
101
     /**
102
      * 查询签名链接
102
      * 查询签名链接
103
      */
103
      */
104
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSignUrl')")
104
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSignUrl')")
105
     @PostMapping("/selectSignUrl")
105
     @PostMapping("/selectSignUrl")
106
     public AjaxResult selectSignUrl(@Validated @RequestBody CaseApplication caseApplication) throws EsignDemoException {
106
     public AjaxResult selectSignUrl(@Validated @RequestBody CaseApplication caseApplication) throws EsignDemoException {
107
         SealSignRecord sealSignRecordselect = caseApplicationService.selectSignUrl(caseApplication);
107
         SealSignRecord sealSignRecordselect = caseApplicationService.selectSignUrl(caseApplication);
111
     /**
111
     /**
112
      * 查询用印链接
112
      * 查询用印链接
113
      */
113
      */
114
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSealUrl')")
114
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSealUrl')")
115
     @PostMapping("/selectSealUrl")
115
     @PostMapping("/selectSealUrl")
116
     public AjaxResult selectSealUrl(@Validated @RequestBody CaseApplication caseApplication) throws EsignDemoException {
116
     public AjaxResult selectSealUrl(@Validated @RequestBody CaseApplication caseApplication) throws EsignDemoException {
117
         SealSignRecord sealUrlRecordselect = caseApplicationService.selectSealUrl(caseApplication);
117
         SealSignRecord sealUrlRecordselect = caseApplicationService.selectSealUrl(caseApplication);
128
     }
128
     }
129
 
129
 
130
     @Log(title = "立案信息导入", businessType = BusinessType.IMPORT)
130
     @Log(title = "立案信息导入", businessType = BusinessType.IMPORT)
131
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:import')")
131
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:import')")
132
     @PostMapping("/importData")
132
     @PostMapping("/importData")
133
     public AjaxResult importData(MultipartFile file) throws Exception {
133
     public AjaxResult importData(MultipartFile file) throws Exception {
134
         if(file==null){
134
         if(file==null){
144
     /**
144
     /**
145
      * 组庭
145
      * 组庭
146
      */
146
      */
147
-    @PreAuthorize("@ss.hasPermi('caseApplication:pendTral')")
147
+//    @PreAuthorize("@ss.hasPermi('caseApplication:pendTral')")
148
     @Log(title = "组庭", businessType = BusinessType.UPDATE)
148
     @Log(title = "组庭", businessType = BusinessType.UPDATE)
149
     @PostMapping("/pendTral")
149
     @PostMapping("/pendTral")
150
     public AjaxResult pendTral(@Validated @RequestBody CaseApplication caseApplication) {
150
     public AjaxResult pendTral(@Validated @RequestBody CaseApplication caseApplication) {
154
     /**
154
     /**
155
      * 组庭审核
155
      * 组庭审核
156
      */
156
      */
157
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:checkgroup')")
157
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:checkgroup')")
158
     @Log(title = "组庭审核", businessType = BusinessType.UPDATE)
158
     @Log(title = "组庭审核", businessType = BusinessType.UPDATE)
159
     @PostMapping("/pendTralCheck")
159
     @PostMapping("/pendTralCheck")
160
     public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication) {
160
     public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication) {
164
     /**
164
     /**
165
      * 组庭确认
165
      * 组庭确认
166
      */
166
      */
167
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:confirmgroup')")
167
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:confirmgroup')")
168
     @Log(title = "组庭确认", businessType = BusinessType.UPDATE)
168
     @Log(title = "组庭确认", businessType = BusinessType.UPDATE)
169
     @PostMapping("/pendTralSure")
169
     @PostMapping("/pendTralSure")
170
     public AjaxResult pendTralSure(@Validated @RequestBody CaseApplication caseApplication) {
170
     public AjaxResult pendTralSure(@Validated @RequestBody CaseApplication caseApplication) {
174
     /**
174
     /**
175
      * 核验裁决书
175
      * 核验裁决书
176
      */
176
      */
177
-    @PreAuthorize("@ss.hasPermi('caseApplication:verificationArbitrateRecord')")
177
+//    @PreAuthorize("@ss.hasPermi('caseApplication:verificationArbitrateRecord')")
178
     @Log(title = "核验裁决书", businessType = BusinessType.UPDATE)
178
     @Log(title = "核验裁决书", businessType = BusinessType.UPDATE)
179
     @PostMapping("/verificationArbitrateRecord")
179
     @PostMapping("/verificationArbitrateRecord")
180
     public AjaxResult verificationArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication) {
180
     public AjaxResult verificationArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication) {
184
     /**
184
     /**
185
      * 审核裁决书
185
      * 审核裁决书
186
      */
186
      */
187
-    @PreAuthorize("@ss.hasPermi('caseApplication:checkArbitrateRecord')")
187
+//    @PreAuthorize("@ss.hasPermi('caseApplication:checkArbitrateRecord')")
188
     @Log(title = "审核裁决书", businessType = BusinessType.UPDATE)
188
     @Log(title = "审核裁决书", businessType = BusinessType.UPDATE)
189
     @PostMapping("/checkArbitrateRecord")
189
     @PostMapping("/checkArbitrateRecord")
190
     public AjaxResult checkArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication) {
190
     public AjaxResult checkArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication) {
195
     /**
195
     /**
196
      * 是否指派仲裁员
196
      * 是否指派仲裁员
197
      */
197
      */
198
-    @PreAuthorize("@ss.hasPermi('caseApplication:pendingAppointArbotrar')")
198
+//    @PreAuthorize("@ss.hasPermi('caseApplication:pendingAppointArbotrar')")
199
     @Log(title = "是否指派仲裁员", businessType = BusinessType.UPDATE)
199
     @Log(title = "是否指派仲裁员", businessType = BusinessType.UPDATE)
200
     @PostMapping("/pendingAppointArbotrar")
200
     @PostMapping("/pendingAppointArbotrar")
201
     public AjaxResult pendingAppointArbotrar(@Validated @RequestBody CaseApplication caseApplication) {
201
     public AjaxResult pendingAppointArbotrar(@Validated @RequestBody CaseApplication caseApplication) {
205
     /**
205
     /**
206
      * 提交立案审查
206
      * 提交立案审查
207
      */
207
      */
208
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:check')")
208
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:check')")
209
     @Log(title = "提交立案审查", businessType = BusinessType.UPDATE)
209
     @Log(title = "提交立案审查", businessType = BusinessType.UPDATE)
210
     @PostMapping("/submitCaseApplicationCheck")
210
     @PostMapping("/submitCaseApplicationCheck")
211
     public AjaxResult submitCaseApplicationCheck(@Validated @RequestBody CaseApplication caseApplication) {
211
     public AjaxResult submitCaseApplicationCheck(@Validated @RequestBody CaseApplication caseApplication) {
216
     /**
216
     /**
217
      * 确认缴费查询立案信息
217
      * 确认缴费查询立案信息
218
      */
218
      */
219
-    @PreAuthorize("@ss.hasPermi('paymentManagement:list:detail')")
219
+//    @PreAuthorize("@ss.hasPermi('paymentManagement:list:detail')")
220
     @PostMapping("/selectCaseApplicationConfirm")
220
     @PostMapping("/selectCaseApplicationConfirm")
221
     public AjaxResult selectCaseApplicationConfirm(@Validated @RequestBody CaseApplication caseApplication) {
221
     public AjaxResult selectCaseApplicationConfirm(@Validated @RequestBody CaseApplication caseApplication) {
222
         CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplicationConfirm(caseApplication);
222
         CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplicationConfirm(caseApplication);

+ 1
- 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseArbitrateController.java Прегледај датотеку

23
      * @return
23
      * @return
24
      */
24
      */
25
     @PutMapping("/method")
25
     @PutMapping("/method")
26
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:checkarbitrationway')")
26
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:checkarbitrationway')")
27
     public AjaxResult examineArbitrateMethod(@Validated @RequestBody CaseApplication caseApplication
27
     public AjaxResult examineArbitrateMethod(@Validated @RequestBody CaseApplication caseApplication
28
             ,Integer opinion){
28
             ,Integer opinion){
29
         return caseArbitrateService.examineArbitrateMethod(caseApplication,opinion);
29
         return caseArbitrateService.examineArbitrateMethod(caseApplication,opinion);
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
     }

+ 1
- 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseLogRecordController.java Прегледај датотеку

22
     /**
22
     /**
23
      * 查询案件日志列表
23
      * 查询案件日志列表
24
      */
24
      */
25
-    @PreAuthorize("@ss.hasPermi('caseLog:list')")
25
+//    @PreAuthorize("@ss.hasPermi('caseLog:list')")
26
     @GetMapping("/list")
26
     @GetMapping("/list")
27
     public TableDataInfo list(CaseLogRecord caseLogRecord)
27
     public TableDataInfo list(CaseLogRecord caseLogRecord)
28
     {
28
     {

+ 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

+ 44
- 5
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/AdjudicationServiceImpl.java Прегледај датотеку

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

+ 308
- 326
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку