|
@@ -149,16 +149,16 @@ public class BillSubsidyController {
|
|
|
wb.loadFromFile(path);
|
|
|
|
|
|
//调用方法保存为PDF格式
|
|
|
- String pdfPath = "G://"+subsidy.getFarmerName()+".pdf";
|
|
|
+ String pdfPath = "/opt/subsidy/"+subsidy.getFarmerName()+".pdf";
|
|
|
wb.saveToFile(pdfPath, FileFormat.PDF);
|
|
|
PdfUtil.returnPdfStream2(response,pdfPath,subsidy.getFarmerName());
|
|
|
//文件删除 TODO
|
|
|
// File file = new File("G://"+subsidy.getFarmerName() + ".pdf");
|
|
|
//
|
|
|
// FileUtils.forceDelete(file);
|
|
|
- Path path1 = Paths.get("G://"+subsidy.getFarmerName()+".pdf");
|
|
|
+ Path path1 = Paths.get("/opt/subsidy"+subsidy.getFarmerName()+".pdf");
|
|
|
Files.delete(path1);
|
|
|
- Path path2 = Paths.get("G://"+"order_contract"+".xls");
|
|
|
+ Path path2 = Paths.get("/opt/subsidy"+"order_contract"+".xls");
|
|
|
Files.delete(path2);
|
|
|
}
|
|
|
}
|