leo.xie 3 years ago
parent
commit
e3488ca0a7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/main/java/com/ads/business/service/impl/DocServiceImpl.java

+ 3 - 3
src/main/java/com/ads/business/service/impl/DocServiceImpl.java

@@ -335,9 +335,9 @@ public class DocServiceImpl extends ServiceImpl<DocDao, Doc> implements DocServi
         String docUrl = doc.getDocUrl();
         String domain = pictureConfig.getServerPath();
         String path = domain + request.getContextPath() + "/";
-        String filePath = pictureConfig.getServerBasePath() +"/"+ pictureConfig.getUploadPath() + "/"  + docId +"/"+ fileName + ".pdf";
-        String imageFilePath = pictureConfig.getServerBasePath() +"/"+ pictureConfig.getUploadPath() + "/" +  docId +"/"+ fileName + File.separator;
-        String createPath = pictureConfig.getBasePath() + "/" + pictureConfig.getUploadPath() + "/" + docId + fileName +"/"+ ".pdf";
+        String filePath = pictureConfig.getServerBasePath() +"/"+ pictureConfig.getUploadPath() + "/" + "produce/" + docId +"/"+ fileName + ".pdf";
+        String imageFilePath = pictureConfig.getServerBasePath() +"/"+ pictureConfig.getUploadPath() + "produce/" +  docId +"/"+ fileName + File.separator;
+        String createPath = pictureConfig.getBasePath() + "/" + pictureConfig.getUploadPath() + "produce/" + docId +"/"+ fileName +"/"+ ".pdf";
         File fromFile = new File(createPath);
         //判断目标文件所在的目录是否存在
         if (!fromFile.getParentFile().exists()) {