update:文档拆分图片存储路径入配置文件

This commit is contained in:
2510220824
2021-11-19 11:19:11 +08:00
parent 8c6a7aba27
commit 9dc1eca724
2 changed files with 4 additions and 1 deletions
@@ -57,6 +57,8 @@ public class SarFileSplitInfoEOServiceImpl implements SarFileSplitInfoEOService
private IAttFileEOService attFileEOService;
@Value("${file.path}")
private String filePath;//文件存储路径
@Value("${file.split.path}")
private String splitFilePath;//拆分图片存储路径
/**
* 文件下载路径
*/
@@ -480,7 +482,7 @@ public class SarFileSplitInfoEOServiceImpl implements SarFileSplitInfoEOService
try {
FileOutputStream fos = new FileOutputStream(filepathandname);
fos.write(bytev);
String path = "uploadPath/img/" + imageName;
String path = splitFilePath +"/" + imageName;
String imgCon = "<img class=\'wordImg\' src=\'" + path + "\'>";
message.getItemsCondi().add(imgCon);
message.setItermsConditions(message.getItermsConditions() + imgCon);