Commit f90b79d8 by wukaiqiang

Merge branch 'feature/form_statistics_05' into 'develop'

预付款及结余汇总表导出修复

See merge request kunlun/xyst_dinas/xyst_dinas_backend!35
parents c70d7cfd b55bc032
......@@ -293,7 +293,7 @@ public class DownLoadStatisticsServiceImpl implements DownLoadStatisticsService
*/
public void downLoadAdvancePaymentBalanceSumTable(HttpServletResponse response, HttpServletRequest request,
String dealYear, String regionalCompany) throws IOException {
String fileName = new String("预付款及结余表".getBytes("gb2312"), "ISO8859-1") + ".xlsx";
String fileName = new String("预付款及结余汇总表".getBytes("gb2312"), "ISO8859-1") + ".xlsx";
InputStream is = null;
for (Resource resource : resourcesXlsx) {
......@@ -303,7 +303,7 @@ public class DownLoadStatisticsServiceImpl implements DownLoadStatisticsService
}
XSSFWorkbook wb = new XSSFWorkbook(is);
try {
XSSFSheet sheet = wb.getSheet("预付款及结余表");
XSSFSheet sheet = wb.getSheet("预付款及结余汇总表");
XSSFRow row = sheet.createRow(1);
XSSFCellStyle textBorderStyle = wb.createCellStyle();
......
......@@ -48,6 +48,7 @@ public class DownLoadStatisticsController {
conditionsDetailsInfo.setStationList(null);
downLoadStatisticsService.downLoadStatisticsServiceTable(response, request, conditionsDetailsInfo);
} catch (RuntimeException e) {
e.printStackTrace();
// TODO: handle exception
logger.info("导出数据时出现错误信息!请确认!"+e.getMessage());
} catch (IOException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment