Commit 29b531e52e0e97eebb2ede9e9b1a9b2b39cceed3
1 parent
bd86ec9a80
Exists in
master
and in
1 other branch
修改查询医院方式
Showing 1 changed file with 5 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PredictedStatisticsFacade.java
View file @
29b531e
... | ... | @@ -44,6 +44,9 @@ |
44 | 44 | @Autowired |
45 | 45 | private UsersService usersService; |
46 | 46 | |
47 | + @Autowired | |
48 | + private AutoMatchFacade autoMatchFacade; | |
49 | + | |
47 | 50 | public PredictedStatisticsResult predictedStatistics(PredictedStatisticsRequest predictedStatisticsRequest) { |
48 | 51 | PredictedStatisticsResult predictedStatisticsResult = new PredictedStatisticsResult(); |
49 | 52 | PatientsQuery patientsQuery = new PatientsQuery(); |
... | ... | @@ -66,7 +69,7 @@ |
66 | 69 | patientsQuery.setDueDateEnd(endDate); |
67 | 70 | patientsQuery.setNeed(YnEnums.YES.name()); |
68 | 71 | patientsQuery.setYn(YnEnums.YES.getId()); |
69 | - patientsQuery.setHospitalId(usersService.getUsers(predictedStatisticsRequest.getOperatorId()).getOrgId().toString()); | |
72 | + patientsQuery.setHospitalId(autoMatchFacade.getHospitalId(predictedStatisticsRequest.getOperatorId())); | |
70 | 73 | patientsQuery.setType(1); |
71 | 74 | String doctorId = predictedStatisticsRequest.getDoctorId(); |
72 | 75 | if (!StringUtils.isEmpty(doctorId)) { |
... | ... | @@ -109,7 +112,7 @@ |
109 | 112 | Date endDate = DateUtil.getMonthEndTime(date); |
110 | 113 | PatientsQuery patientsQuery = new PatientsQuery(); |
111 | 114 | String doctorId = predictedStatisticsRequest.getDoctorId(); |
112 | - patientsQuery.setHospitalId(usersService.getUsers(predictedStatisticsRequest.getOperatorId()).getOrgId().toString()); | |
115 | + patientsQuery.setHospitalId(autoMatchFacade.getHospitalId(predictedStatisticsRequest.getOperatorId())); | |
113 | 116 | if (!StringUtils.isEmpty(doctorId)) { |
114 | 117 | patientsQuery.setLastCheckEmployeeId(doctorId); |
115 | 118 | } |