|
@@ -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();
|