审核裁决书接口优化
This commit is contained in:
+17
-14
@@ -188,9 +188,12 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|||||||
if (caseAttach.getAnnexType() == 3) {
|
if (caseAttach.getAnnexType() == 3) {
|
||||||
String annexPath = caseAttach.getAnnexPath();
|
String annexPath = caseAttach.getAnnexPath();
|
||||||
//File file = new File("/home/ruoyi/" + annexPath);
|
//File file = new File("/home/ruoyi/" + annexPath);
|
||||||
String path = "/home/ruoyi/" + annexPath;
|
String path = "/home/ruoyi" + annexPath;
|
||||||
File file = new File(path);
|
System.out.println("原文件路径是:" + path);
|
||||||
System.out.println("文件是:" + file);
|
String newpath = path.replace("/", "\\");
|
||||||
|
System.out.println("新文件路径是:" + newpath);
|
||||||
|
File file = new File(newpath);
|
||||||
|
System.out.println("新文件是:" + file);
|
||||||
fileList.add(file);
|
fileList.add(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -385,21 +388,21 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|||||||
return AjaxResult.success(archivesDetailVO);
|
return AjaxResult.success(archivesDetailVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
try {
|
try {
|
||||||
List<File> fileList = new ArrayList<>();
|
// List<File> fileList = new ArrayList<>();
|
||||||
fileList.add(new File("D:\\home\\ruoyi\\uploadPath\\upload\\2023\\10\\7\\b442880179844a848f1f8b08c29e3d0c.docx"));
|
// fileList.add(new File("D:\\home\\ruoyi\\uploadPath\\upload\\2023\\10\\7\\b442880179844a848f1f8b08c29e3d0c.docx"));
|
||||||
File file = fileList.get(0);
|
// File file = fileList.get(0);//System.out.println("这是文件"+file);
|
||||||
//电子邮件送达
|
//电子邮件送达
|
||||||
EmailOutUtil emailOutUtil = new EmailOutUtil();
|
// EmailOutUtil emailOutUtil = new EmailOutUtil();
|
||||||
JavaMailSender javaMailSender = emailOutUtil.rebuildMailSender();
|
// JavaMailSender javaMailSender = emailOutUtil.rebuildMailSender();
|
||||||
if (javaMailSender != null) {
|
// if (javaMailSender != null) {
|
||||||
emailOutUtil.sendMessageCarryFile("1154956315@qq.com", "案件裁决书", "您的裁决书已送达,详情请查阅附件", file
|
// emailOutUtil.sendMessageCarryFile("1154956315@qq.com", "案件裁决书", "您的裁决书已送达,详情请查阅附件", file
|
||||||
, "hjbjava@163.com", javaMailSender);
|
// , "hjbjava@163.com", javaMailSender);
|
||||||
}
|
// }
|
||||||
} catch (MailSendException e) {
|
} catch (MailSendException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user