Commit ea7c92adaf47a91d8d04d26e455946b286fd3214
1 parent
d8e54dea8a
Exists in
master
and in
1 other branch
code update
Showing 1 changed file with 6 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java
View file @
ea7c92a
... | ... | @@ -1336,6 +1336,11 @@ |
1336 | 1336 | logger.info(sql); |
1337 | 1337 | try { |
1338 | 1338 | List<Map<String,Object>> datas = JdbcUtil.getListDataBySql(sql); |
1339 | + for(Map<String,Object> m : datas) | |
1340 | + { | |
1341 | + System.out.print(m); | |
1342 | + logger.info(m + ""); | |
1343 | + } | |
1339 | 1344 | OutputStream out = httpServletResponse.getOutputStream(); |
1340 | 1345 | Map<String,String> cnames = new HashMap<>(); |
1341 | 1346 | cnames.put("EXAMINE_DATE", "产检日期"); |
... | ... | @@ -1364,7 +1369,7 @@ |
1364 | 1369 | logger.info(datas.size()+"=============="); |
1365 | 1370 | httpServletResponse.setContentType("application/octet-stream"); |
1366 | 1371 | httpServletResponse.setCharacterEncoding("UTF-8"); |
1367 | - httpServletResponse.setHeader("Content-Disposition", "attachment;fileName=产检统计表.xls"); | |
1372 | + httpServletResponse.setHeader("Content-Disposition", "attachment;fileName=datas.xls"); | |
1368 | 1373 | ExcelUtil.toExcel(out,datas,cnames); |
1369 | 1374 | }catch (Exception e) |
1370 | 1375 | { |