|
@@ -154,7 +154,7 @@ public class BillSubsidyController {
|
|
|
worksheet.getRange().get("C18").getStyle().setWrapText(true);//耳标号
|
|
|
|
|
|
//调用方法保存为PDF格式
|
|
|
- String pdfPath = "G://"+subsidy.getFarmerName()+".pdf";
|
|
|
+ String pdfPath = "/opt/subsidy/"+subsidy.getFarmerName()+".pdf";
|
|
|
wb.saveToFile(pdfPath, FileFormat.PDF);
|
|
|
// wb.getConverterSetting().setSheetFitToPage(true);
|
|
|
// OutputStream outputStream = null;
|
|
@@ -162,9 +162,9 @@ public class BillSubsidyController {
|
|
|
|
|
|
PdfUtil.returnPdfStream2(response,pdfPath,subsidy.getFarmerName());
|
|
|
//文件删除 TODO
|
|
|
-// File file = new File("G://"+subsidy.getFarmerName() + ".pdf");
|
|
|
+ File file = new File(pdfPath);
|
|
|
//
|
|
|
-// FileUtils.forceDelete(file);
|
|
|
+ FileUtils.forceDelete(file);
|
|
|
|
|
|
}
|
|
|
|