gy b пре 2 година
родитељ
комит
edfd847318

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

@@ -101,7 +101,7 @@ public class CaseApplicationController extends BaseController {
101 101
     /**
102 102
      * 查询签名链接
103 103
      */
104
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSignUrl')")
104
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSignUrl')")
105 105
     @PostMapping("/selectSignUrl")
106 106
     public AjaxResult selectSignUrl(@Validated @RequestBody CaseApplication caseApplication) throws EsignDemoException {
107 107
         SealSignRecord sealSignRecordselect = caseApplicationService.selectSignUrl(caseApplication);
@@ -111,7 +111,7 @@ public class CaseApplicationController extends BaseController {
111 111
     /**
112 112
      * 查询用印链接
113 113
      */
114
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSealUrl')")
114
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSealUrl')")
115 115
     @PostMapping("/selectSealUrl")
116 116
     public AjaxResult selectSealUrl(@Validated @RequestBody CaseApplication caseApplication) throws EsignDemoException {
117 117
         SealSignRecord sealUrlRecordselect = caseApplicationService.selectSealUrl(caseApplication);

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

@@ -23,7 +23,7 @@ public class CaseArbitrateController extends BaseController {
23 23
      * @return
24 24
      */
25 25
     @PutMapping("/method")
26
-    @PreAuthorize("@ss.hasPermi('caseManagement:list:checkarbitrationway')")
26
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:checkarbitrationway')")
27 27
     public AjaxResult examineArbitrateMethod(@Validated @RequestBody CaseApplication caseApplication
28 28
             ,Integer opinion){
29 29
         return caseArbitrateService.examineArbitrateMethod(caseApplication,opinion);

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

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

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

@@ -364,20 +364,20 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
364 364
     private void sendCaseEmail(CaseApplication caseApplication1, String appEmail, String resEmail) {
365 365
         List<File> fileList = new ArrayList<>();
366 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;
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 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
-//        }
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 381
         if (file != null) {
382 382
             JavaMailSender javaMailSender = emailOutUtil.rebuildMailSender();
383 383
             try {
@@ -431,7 +431,7 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
431 431
         try {
432 432
 //            List<File> fileList = new ArrayList<>();
433 433
 //            fileList.add(new File("D:\\home\\ruoyi\\uploadPath\\upload\\2023\\10\\7\\b442880179844a848f1f8b08c29e3d0c.docx"));
434
- //           File file = fileList.get(0);//System.out.println("这是文件"+file);
434
+            //           File file = fileList.get(0);//System.out.println("这是文件"+file);
435 435
             //电子邮件送达
436 436
 //            EmailOutUtil emailOutUtil = new EmailOutUtil();
437 437
 //            JavaMailSender javaMailSender = emailOutUtil.rebuildMailSender();

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