Commit b639112e910c5c3c94a7eca0c4f884d5a804d76a
1 parent
fbabe11e9b
Exists in
master
and in
6 other branches
快速测量
Showing 1 changed file with 15 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MeasureInfoFacade.java
View file @
b639112
... | ... | @@ -166,6 +166,12 @@ |
166 | 166 | query.setNeed("true"); |
167 | 167 | query.setSort(" created desc "); |
168 | 168 | List<MeasureUserInfoModel> models = mysqlMeasureUserInfoService.queryMeasureUserInfoList(query); |
169 | + | |
170 | + PatientsQuery patientsQuery = new PatientsQuery(); | |
171 | + patientsQuery.setPcerteTypeId(certType); | |
172 | + patientsQuery.setCardNo(certNo); | |
173 | + List<Patients> patientsList = patientsService.queryPatient1(patientsQuery, "created"); | |
174 | + | |
169 | 175 | if (CollectionUtils.isNotEmpty(models)) |
170 | 176 | { |
171 | 177 | MeasureUserInfoModel userInfoModel = models.get(0); |
... | ... | @@ -186,10 +192,6 @@ |
186 | 192 | } |
187 | 193 | else |
188 | 194 | { |
189 | - PatientsQuery patientsQuery = new PatientsQuery(); | |
190 | - patientsQuery.setPcerteTypeId(certType); | |
191 | - patientsQuery.setCardNo(certNo); | |
192 | - List<Patients> patientsList = patientsService.queryPatient(patientsQuery); | |
193 | 195 | if (CollectionUtils.isNotEmpty(patientsList)) |
194 | 196 | { |
195 | 197 | Patients patients = patientsList.get(0); |
... | ... | @@ -215,6 +217,15 @@ |
215 | 217 | result = getPatientZyInfo(" and ZJH='"+certNo+"'",certType,hospitalId); |
216 | 218 | } |
217 | 219 | } |
220 | + } | |
221 | + | |
222 | + if (CollectionUtils.isNotEmpty(patientsList)) { | |
223 | + Patients patients = patientsList.get(0); | |
224 | + result.setPatientId(patients.getId()); | |
225 | + } | |
226 | + else | |
227 | + { | |
228 | + result.setPatientId(""); | |
218 | 229 | } |
219 | 230 | |
220 | 231 |