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