资料维护

This commit is contained in:
zhangqinlin
2021-09-08 13:41:37 +08:00
parent faa7c3af56
commit 7f3736d2ef
18 changed files with 200 additions and 136 deletions
@@ -70,9 +70,7 @@ public class EmailSendMsgHandle implements ISendMsgHandle {
ArrayList<String> fileList = new ArrayList<>(Arrays.asList(fileName.split(",")));
for(String file :fileList) {
if(!StringUtils.isBlank(file)) {
StringBuffer url = new StringBuffer("D:\\opt\\upFiles");
url.append("\\" + file+".pdf");
FileSystemResource filePath = new FileSystemResource(new File(url.toString()));
FileSystemResource filePath = new FileSystemResource(new File("D:\\opt\\upFiles" + "\\" + file + ".pdf"));
helper.addAttachment(file, filePath);
}
}