Commit e2ad1c86b12461d9e3f0a260c670a84d367085a1
1 parent
c7f377d0e0
Exists in
master
and in
2 other branches
干掉没有名字的医生
Showing 1 changed file with 17 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyStatisticsManagerFacade.java
View file @
e2ad1c8
| ... | ... | @@ -95,6 +95,14 @@ |
| 95 | 95 | } |
| 96 | 96 | }); |
| 97 | 97 | |
| 98 | + // 干掉空名字医生 | |
| 99 | + Iterator<BabyStatisticsManagerBuildDoctorGroupQueryModel> iterator = babyStatisticsManagerBuildDoctorGroupQueryModelList.iterator(); | |
| 100 | + while (iterator.hasNext()) { | |
| 101 | + if (("-").equals(iterator.next().getBuildDoctorName())) { | |
| 102 | + iterator.remove(); | |
| 103 | + } | |
| 104 | + } | |
| 105 | + | |
| 98 | 106 | babyStatisticsManagerBuildDoctorGroupResult.setData(babyStatisticsManagerBuildDoctorGroupQueryModelList); |
| 99 | 107 | babyStatisticsManagerBuildDoctorGroupResult.setErrorcode(ErrorCodeConstants.SUCCESS); |
| 100 | 108 | babyStatisticsManagerBuildDoctorGroupResult.setErrormsg(ErrorCodeConstants.SUCCESS_DESCRIPTION); |
| ... | ... | @@ -221,6 +229,14 @@ |
| 221 | 229 | } |
| 222 | 230 | }); |
| 223 | 231 | |
| 232 | + // 干掉空名字医生 | |
| 233 | + Iterator<BabyStatisticsManagerCheckDoctorGroupQueryModel> iterator = babyStatisticsManagerCheckDoctorGroupQueryModelList.iterator(); | |
| 234 | + while (iterator.hasNext()) { | |
| 235 | + if (("-").equals(iterator.next().getCheckDoctorName())) { | |
| 236 | + iterator.remove(); | |
| 237 | + } | |
| 238 | + } | |
| 239 | + | |
| 224 | 240 | babyStatisticsManagerBuildDoctorGroupResult.setData(babyStatisticsManagerCheckDoctorGroupQueryModelList); |
| 225 | 241 | babyStatisticsManagerBuildDoctorGroupResult.setErrorcode(ErrorCodeConstants.SUCCESS); |
| 226 | 242 | babyStatisticsManagerBuildDoctorGroupResult.setErrormsg(ErrorCodeConstants.SUCCESS_DESCRIPTION); |
| ... | ... | @@ -360,7 +376,7 @@ |
| 360 | 376 | List<BabyStatisticsManagerWeekAgeGroupQueryModel> babyStatisticsManagerWeekAgeGroupQueryModelListResult = new ArrayList<>(); |
| 361 | 377 | // 从0开始,没有也填充 |
| 362 | 378 | int index = 0; |
| 363 | - for(Integer i = 0;i<37;i++) { | |
| 379 | + for (Integer i = 0; i < 37; i++) { | |
| 364 | 380 | try { |
| 365 | 381 | while (!i.toString().equals(babyStatisticsManagerWeekAgeGroupQueryModelList.get(index).getWeekAge()) && i < Integer.valueOf(babyStatisticsManagerWeekAgeGroupQueryModelList.get(index).getWeekAge())) { |
| 366 | 382 | index++; |