Commit 4dc1b824dadf2d5279684180273ad909f82ed479
1 parent
d923495e79
Exists in
master
and in
1 other branch
update
Showing 2 changed files with 19 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/FolicAcidFacade.java
View file @
4dc1b82
... | ... | @@ -9,6 +9,7 @@ |
9 | 9 | import com.lyms.platform.common.result.BaseObjectResponse; |
10 | 10 | import com.lyms.platform.common.result.BaseResponse; |
11 | 11 | import com.lyms.platform.common.utils.DateUtil; |
12 | +import com.lyms.platform.common.utils.ExcelUtil; | |
12 | 13 | import com.lyms.platform.operate.web.request.FolicAcidAddRequest; |
13 | 14 | import com.lyms.platform.operate.web.request.FolicAcidQueryRequest; |
14 | 15 | import com.lyms.platform.operate.web.utils.CommonsHelper; |
15 | 16 | |
... | ... | @@ -327,10 +328,26 @@ |
327 | 328 | list.add(map); |
328 | 329 | } |
329 | 330 | } |
331 | + out = response.getOutputStream(); | |
332 | + Map<String, String> cnames = new LinkedHashMap<>(); | |
333 | + cnames.put("certificateNum","证件号"); | |
334 | + cnames.put("username","姓名"); | |
335 | + cnames.put("phone","联系方式"); | |
336 | + cnames.put("residence","居住地址"); | |
337 | + cnames.put("drawTime","领取时间"); | |
338 | + cnames.put("drawCount","领取数量"); | |
339 | + cnames.put("pregnancyType","领取孕周"); | |
340 | + cnames.put("pregnancyWeeks","孕周"); | |
341 | + cnames.put("highRisk","高危因素"); | |
342 | + cnames.put("hospitalName","发放单位"); | |
343 | + cnames.put("operator","发放人"); | |
344 | + | |
345 | + response.setContentType("application/octet-stream"); | |
346 | + response.setHeader("Content-Disposition", "attachment;fileName=" + "yesuan.xls"); | |
347 | + ExcelUtil.toExcel(out, list, cnames); | |
330 | 348 | }catch (Exception e){ |
331 | 349 | e.printStackTrace(); |
332 | 350 | } |
333 | - | |
334 | 351 | } |
335 | 352 | |
336 | 353 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ResidentsArchiveFacade.java
View file @
4dc1b82
... | ... | @@ -625,7 +625,7 @@ |
625 | 625 | cnames.put("buildDay","建档日期"); |
626 | 626 | |
627 | 627 | response.setContentType("application/octet-stream"); |
628 | - response.setHeader("Content-Disposition", "attachment;fileName=" + "juming.xls"); | |
628 | + response.setHeader("Content-Disposition", "attachment;fileName=" + "jumingdangan.xls"); | |
629 | 629 | ExcelUtil.toExcel(out, list, cnames); |
630 | 630 | }catch (Exception e){ |
631 | 631 | e.printStackTrace(); |