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

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

@@ -203,11 +203,13 @@ public class DocServiceImpl extends ServiceImpl<DocDao, Doc> implements DocServi
             //不相等,那么删除当前目录的下的文件
             File imageFile = new File(getImageFilePath(doc.getId()));
             File pdfFile = new File(getImageFilePath(doc.getId())+".pdf");
+            log.info(getImageFilePath(doc.getId()));
             log.info("判断文件是否存在:"+imageFile.exists());
             if(imageFile.exists()){
                 imageFile.delete();
                 log.info("文件删除成功");
             }
+            log.info(getImageFilePath(doc.getId())+".pdf");
             log.info("判断pdf是否存在:"+imageFile.exists());
             if(pdfFile.exists()){
                 pdfFile.delete();