Commit baf22f6d9b5d3418439f96c29372ea1e78079351

Authored by liquanyu
1 parent 3ed4396b47

code update

Showing 1 changed file with 2 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java View file @ baf22f6
... ... @@ -1728,7 +1728,7 @@
1728 1728  
1729 1729 public void exportChilds(BabyManageRequest request, Integer userId, HttpServletResponse httpServletResponse) {
1730 1730 try {
1731   - String hospitalId = "";
  1731 + String hospitalId = "196";
1732 1732 //得到当前登录的医院id
1733 1733 if (userId != null)
1734 1734 {
... ... @@ -1788,7 +1788,7 @@
1788 1788 cnames.put("monthAge","月龄");
1789 1789 cnames.put("diagnose","高危诊断");
1790 1790  
1791   - httpServletResponse.setContentType("multipart/form-data");
  1791 + httpServletResponse.setContentType("application/octet-stream");
1792 1792 //2.设置文件头:最后一个参数是设置下载文件名(假如我们叫a.pdf)
1793 1793 httpServletResponse.setHeader("Content-Disposition", "attachment;fileName="+"childDatas.xls");
1794 1794 ExcelUtil.toExcel(out,datas,cnames);