|
@@ -339,7 +339,7 @@ public class DocServiceImpl extends ServiceImpl<DocDao, Doc> implements DocServi
|
|
|
}
|
|
|
|
|
|
private String getImageFilePath(Long docId){
|
|
|
- return pictureConfig.getServerBasePath() +"/"+ pictureConfig.getUploadPath() + "/produce/" + docId;
|
|
|
+ return pictureConfig.getBasePath() + "/" + pictureConfig.getUploadPath() + "/produce/" + docId;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -360,8 +360,8 @@ public class DocServiceImpl extends ServiceImpl<DocDao, Doc> implements DocServi
|
|
|
String domain = pictureConfig.getServerPath();
|
|
|
String path = domain + request.getContextPath() + "/";
|
|
|
String filePath = pictureConfig.getServerBasePath() +"/"+ pictureConfig.getUploadPath() + "/produce/" + docId + ".pdf";
|
|
|
- String imageFilePath = getImageFilePath(docId) + "/";
|
|
|
- String createPath = pictureConfig.getBasePath() + "/" + pictureConfig.getUploadPath() + "/produce/" + docId + ".pdf";
|
|
|
+ String imageFilePath = pictureConfig.getServerBasePath() +"/"+ pictureConfig.getUploadPath() + "/produce/" + docId + "/";
|
|
|
+ String createPath = getImageFilePath(docId) + ".pdf";
|
|
|
File fromFile = new File(createPath);
|
|
|
//判断目标文件所在的目录是否存在
|
|
|
if (!fromFile.getParentFile().exists()) {
|