|
@@ -228,10 +228,11 @@ public class SysUserAccountController extends BaseController {
|
|
|
String saveFilePath = uploadPath+"//" + EXCEL_PATH + fileName;
|
|
String saveFilePath = uploadPath+"//" + EXCEL_PATH + fileName;
|
|
|
String resultPath = UPLOAD_PATH + fileName;
|
|
String resultPath = UPLOAD_PATH + fileName;
|
|
|
String sheetName = "车险明细表";
|
|
String sheetName = "车险明细表";
|
|
|
- if(excelUtils.writeExcel(saveFilePath,sheetName, exportIncomeTypeDetalsList)){
|
|
|
|
|
|
|
+ try{
|
|
|
|
|
+ excelUtils.writeExcelNew(saveFilePath,sheetName, exportIncomeTypeDetalsList);
|
|
|
return HttpResult.ok(resultPath);
|
|
return HttpResult.ok(resultPath);
|
|
|
- }else{
|
|
|
|
|
- return HttpResult.error("导出车险明细表失败");
|
|
|
|
|
|
|
+ }catch(Exception e){
|
|
|
|
|
+ return HttpResult.error("导出车险明细表失败:"+e.getMessage());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -250,10 +251,11 @@ public class SysUserAccountController extends BaseController {
|
|
|
String saveFilePath = uploadPath+"//" + EXCEL_PATH + fileName;
|
|
String saveFilePath = uploadPath+"//" + EXCEL_PATH + fileName;
|
|
|
String resultPath = UPLOAD_PATH + fileName;
|
|
String resultPath = UPLOAD_PATH + fileName;
|
|
|
String sheetName = "推广费明细表";
|
|
String sheetName = "推广费明细表";
|
|
|
- if(excelUtils.writeExcel(saveFilePath,sheetName, exportIncomeTypeDetalsList)){
|
|
|
|
|
|
|
+ try{
|
|
|
|
|
+ excelUtils.writeExcelNew(saveFilePath,sheetName, exportIncomeTypeDetalsList);
|
|
|
return HttpResult.ok(resultPath);
|
|
return HttpResult.ok(resultPath);
|
|
|
- }else{
|
|
|
|
|
- return HttpResult.error("导出推广费明细表失败");
|
|
|
|
|
|
|
+ }catch(Exception e){
|
|
|
|
|
+ return HttpResult.error("导出推广费明细表失败:"+e.getMessage());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
/**
|
|
/**
|
|
@@ -282,10 +284,11 @@ public class SysUserAccountController extends BaseController {
|
|
|
String saveFilePath = uploadPath+"//" + EXCEL_PATH + fileName;
|
|
String saveFilePath = uploadPath+"//" + EXCEL_PATH + fileName;
|
|
|
String resultPath = UPLOAD_PATH + fileName;
|
|
String resultPath = UPLOAD_PATH + fileName;
|
|
|
String sheetName = "收支明细表";
|
|
String sheetName = "收支明细表";
|
|
|
- if(excelUtils.writeExcel(saveFilePath,sheetName, exportIncomeTypeDetalsList)){
|
|
|
|
|
|
|
+ try{
|
|
|
|
|
+ excelUtils.writeExcelNew(saveFilePath,sheetName, exportIncomeTypeDetalsList);
|
|
|
return HttpResult.ok(resultPath);
|
|
return HttpResult.ok(resultPath);
|
|
|
- }else{
|
|
|
|
|
- return HttpResult.error("导出收支明细表失败");
|
|
|
|
|
|
|
+ }catch(Exception e){
|
|
|
|
|
+ return HttpResult.error("导出收支明细表失败:"+e.getMessage());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
/**
|
|
/**
|