public int deleteById(Integer Id) {
if (Id != null){
Pdf pdf = pdfMapper.findById(Id);
if(pdf != null){
String relaPath = pdf.getPdfPath();
System.out.print(relaPath);
File file = new File(relaPath, pdf.getNewName());
if(file.exists()){
file.delete();
System.out.print("删除");
}
}
}
int n = pdfMapper.deleteById(Id);
return n;
}