Commit 1d921df27b7f457669aa3ac1bd40105747144b1e
1 parent
ac04b41f04
Exists in
master
and in
6 other branches
高危评分
Showing 1 changed file with 58 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyStatisticsManagerFacade.java
View file @
1d921df
| ... | ... | @@ -57,6 +57,15 @@ |
| 57 | 57 | babyModelQuery.setBuildDateStart(DateUtil.getSNDate(babyStatisticsManagerBuildDoctorGroupRequest.getBuildDate())[0]); |
| 58 | 58 | babyModelQuery.setBuildDateEnd(DateUtil.getSNDate(babyStatisticsManagerBuildDoctorGroupRequest.getBuildDate())[1]); |
| 59 | 59 | } |
| 60 | + String hospitalId; | |
| 61 | + try { | |
| 62 | + hospitalId = autoMatchFacade.getHospitalId(babyStatisticsManagerBuildDoctorGroupRequest.getOperatorId()); | |
| 63 | + } catch (Exception e) { | |
| 64 | + babyStatisticsManagerBuildDoctorGroupResult.setErrorcode(ErrorCodeConstants.SYSTEM_ERROR); | |
| 65 | + babyStatisticsManagerBuildDoctorGroupResult.setErrormsg("获取当前医院异常"); | |
| 66 | + return babyStatisticsManagerBuildDoctorGroupResult; | |
| 67 | + } | |
| 68 | + babyModelQuery.setHospitalId(hospitalId); | |
| 60 | 69 | |
| 61 | 70 | List<HashMap> temp = babyService.babyStatisticsManagerBuildDoctorGroup(babyModelQuery); |
| 62 | 71 | List<BabyStatisticsManagerBuildDoctorGroupQueryModel> babyStatisticsManagerBuildDoctorGroupQueryModelList = new ArrayList<>(); |
| ... | ... | @@ -131,6 +140,15 @@ |
| 131 | 140 | babyModelQuery.setPage(babyStatisticsManagerBuildDoctorListRequest.getPage()); |
| 132 | 141 | babyModelQuery.setNeed("need"); |
| 133 | 142 | } |
| 143 | + String hospitalId; | |
| 144 | + try { | |
| 145 | + hospitalId = autoMatchFacade.getHospitalId(babyStatisticsManagerBuildDoctorListRequest.getOperatorId()); | |
| 146 | + } catch (Exception e) { | |
| 147 | + babyStatisticsManagerBuildDoctorListResult.setErrorcode(ErrorCodeConstants.SYSTEM_ERROR); | |
| 148 | + babyStatisticsManagerBuildDoctorListResult.setErrormsg("获取当前医院异常"); | |
| 149 | + return babyStatisticsManagerBuildDoctorListResult; | |
| 150 | + } | |
| 151 | + babyModelQuery.setHospitalId(hospitalId); | |
| 134 | 152 | List<BabyModel> babyModelList = babyService.queryBabyWithQuery(babyModelQuery); |
| 135 | 153 | List<BabyStatisticsManagerBuildDoctorListQueryModel> babyStatisticsManagerBuildDoctorListQueryModelList = new ArrayList<>(); |
| 136 | 154 | if (CollectionUtils.isNotEmpty(babyModelList)) { |
| ... | ... | @@ -193,6 +211,16 @@ |
| 193 | 211 | babyCheckModelQuery.setCheckDateEnd(DateUtil.getSNDate(babyStatisticsManagerBuildDoctorGroupRequest.getCheckDate())[1]); |
| 194 | 212 | } |
| 195 | 213 | |
| 214 | + String hospitalId; | |
| 215 | + try { | |
| 216 | + hospitalId = autoMatchFacade.getHospitalId(babyStatisticsManagerBuildDoctorGroupRequest.getOperatorId()); | |
| 217 | + } catch (Exception e) { | |
| 218 | + babyStatisticsManagerBuildDoctorGroupResult.setErrorcode(ErrorCodeConstants.SYSTEM_ERROR); | |
| 219 | + babyStatisticsManagerBuildDoctorGroupResult.setErrormsg("获取当前医院异常"); | |
| 220 | + return babyStatisticsManagerBuildDoctorGroupResult; | |
| 221 | + } | |
| 222 | + babyCheckModelQuery.setHospitalId(hospitalId); | |
| 223 | + | |
| 196 | 224 | List<HashMap> temp = babyCheckService.babyStatisticsManagerCheckDoctorGroup(babyCheckModelQuery); |
| 197 | 225 | List<BabyStatisticsManagerCheckDoctorGroupQueryModel> babyStatisticsManagerCheckDoctorGroupQueryModelList = new ArrayList<>(); |
| 198 | 226 | |
| ... | ... | @@ -267,6 +295,15 @@ |
| 267 | 295 | babyCheckModelQuery.setPage(babyStatisticsManagerCheckDoctorListRequest.getPage()); |
| 268 | 296 | babyCheckModelQuery.setNeed("need"); |
| 269 | 297 | } |
| 298 | + String hospitalId; | |
| 299 | + try { | |
| 300 | + hospitalId = autoMatchFacade.getHospitalId(babyStatisticsManagerCheckDoctorListRequest.getOperatorId()); | |
| 301 | + } catch (Exception e) { | |
| 302 | + babyStatisticsManagerCheckDoctorListResult.setErrorcode(ErrorCodeConstants.SYSTEM_ERROR); | |
| 303 | + babyStatisticsManagerCheckDoctorListResult.setErrormsg("获取当前医院异常"); | |
| 304 | + return babyStatisticsManagerCheckDoctorListResult; | |
| 305 | + } | |
| 306 | + babyCheckModelQuery.setHospitalId(hospitalId); | |
| 270 | 307 | List<BabyCheckModel> babyCheckModelList = babyCheckService.queryBabyCheckRecord(babyCheckModelQuery); |
| 271 | 308 | List<BabyStatisticsManagerCheckDoctorListQueryModel> babyStatisticsManagerCheckDoctorListQueryModelList = new ArrayList<>(); |
| 272 | 309 | |
| ... | ... | @@ -344,6 +381,16 @@ |
| 344 | 381 | babyCheckModelQuery.setCheckDateEnd(DateUtil.getSNDate(babyStatisticsManagerWeekAgeGroupRequest.getCheckDate())[1]); |
| 345 | 382 | } |
| 346 | 383 | |
| 384 | + String hospitalId; | |
| 385 | + try { | |
| 386 | + hospitalId = autoMatchFacade.getHospitalId(babyStatisticsManagerWeekAgeGroupRequest.getOperatorId()); | |
| 387 | + } catch (Exception e) { | |
| 388 | + babyStatisticsManagerWeekAgeGroupResult.setErrorcode(ErrorCodeConstants.SYSTEM_ERROR); | |
| 389 | + babyStatisticsManagerWeekAgeGroupResult.setErrormsg("获取当前医院异常"); | |
| 390 | + return babyStatisticsManagerWeekAgeGroupResult; | |
| 391 | + } | |
| 392 | + babyCheckModelQuery.setHospitalId(hospitalId); | |
| 393 | + | |
| 347 | 394 | List<HashMap> temp = babyCheckService.babyStatisticsManagerWeekAgeGroup(babyCheckModelQuery); |
| 348 | 395 | List<BabyStatisticsManagerWeekAgeGroupQueryModel> babyStatisticsManagerWeekAgeGroupQueryModelList = new ArrayList<>(); |
| 349 | 396 | |
| ... | ... | @@ -431,6 +478,17 @@ |
| 431 | 478 | babyCheckModelQuery.setNeed("need"); |
| 432 | 479 | } |
| 433 | 480 | List<BabyCheckModel> babyCheckModelList = babyCheckService.queryBabyCheckRecord(babyCheckModelQuery); |
| 481 | + | |
| 482 | + String hospitalId; | |
| 483 | + try { | |
| 484 | + hospitalId = autoMatchFacade.getHospitalId(babyStatisticsManagerWeekAgeListRequest.getOperatorId()); | |
| 485 | + } catch (Exception e) { | |
| 486 | + babyStatisticsManagerWeekAgeListResult.setErrorcode(ErrorCodeConstants.SYSTEM_ERROR); | |
| 487 | + babyStatisticsManagerWeekAgeListResult.setErrormsg("获取当前医院异常"); | |
| 488 | + return babyStatisticsManagerWeekAgeListResult; | |
| 489 | + } | |
| 490 | + babyCheckModelQuery.setHospitalId(hospitalId); | |
| 491 | + | |
| 434 | 492 | List<BabyStatisticsManagerWeekAgeListQueryModel> babyStatisticsManagerWeekAgeListQueryModelList = new ArrayList<>(); |
| 435 | 493 | |
| 436 | 494 | if (CollectionUtils.isNotEmpty(babyCheckModelList)) { |