Commit 38b004a8a3896e4ae9b1b1e84516bdafb9cff167
1 parent
57073f992d
Exists in
master
and in
6 other branches
统计
Showing 1 changed file with 6 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AnnualReportFacade.java
View file @
38b004a
| ... | ... | @@ -99,14 +99,17 @@ |
| 99 | 99 | Map<Object, List<String>> map = new LinkedHashMap<>(); |
| 100 | 100 | for (String area : listArea) { |
| 101 | 101 | List<String> hospitalIds = this.getCurrentUserHospPermissions(userId, provinceId, cityId, area); |
| 102 | - System.out.println(hospitalIds); | |
| 102 | + if (CollectionUtils.isNotEmpty(hospitalIds)) | |
| 103 | + { | |
| 104 | + System.out.println("hospitalIds="+ hospitalIds); | |
| 105 | + map.put(area, hospitalIds); | |
| 106 | + } | |
| 103 | 107 | |
| 104 | - map.put(area, hospitalIds); | |
| 105 | 108 | } |
| 106 | 109 | |
| 107 | 110 | |
| 108 | 111 | List<Map<String, String>> mapList = this.getDates(map, organizationService, time, babyService, matDeliverService, antExRecordService, antenatalExaminationService, sieveService, matDeliverFollowService, patientsService, mongoTemplate); |
| 109 | - System.out.println(mapList); | |
| 112 | + System.out.println("mapList="+mapList); | |
| 110 | 113 | this.sum(mapList); |
| 111 | 114 | httpServletResponse.setContentType("application/force-download"); |
| 112 | 115 | httpServletResponse.setHeader("Content-Disposition", "attachment;filename=" + new String(("年报表.xls").getBytes("UTF-8"), "ISO-8859-1")); |