Commit 7659676e5fae98a3da25835c326b7d9d893c01fa
1 parent
57e87c6a08
Exists in
master
and in
6 other branches
更新
Showing 1 changed file with 5 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java
View file @
7659676
... | ... | @@ -5665,13 +5665,15 @@ |
5665 | 5665 | return deliverMap; |
5666 | 5666 | } |
5667 | 5667 | |
5668 | + List<Patients> list; | |
5668 | 5669 | String patientId = getPatientId(idCard); |
5669 | 5670 | if (StringUtils.isNotEmpty(patientId)) { |
5670 | - patientsQuery.setId(patientId); | |
5671 | + list = mongoTemplate.find(Query.query(Criteria.where("id").is(patientId)), Patients.class); | |
5672 | + } else { | |
5673 | + list = patientsService.queryPatient1(patientsQuery, "created"); | |
5671 | 5674 | } |
5672 | 5675 | |
5673 | 5676 | List<Map<String, Object>> deliverList = new ArrayList<>(); |
5674 | - List<Patients> list = patientsService.queryPatient1(patientsQuery, "created"); | |
5675 | 5677 | |
5676 | 5678 | if (CollectionUtils.isNotEmpty(list)) { |
5677 | 5679 | for (Patients pat : list) { |
... | ... | @@ -5918,7 +5920,7 @@ |
5918 | 5920 | if (StringUtils.isNotEmpty(sourceId)) { |
5919 | 5921 | return sourceId; |
5920 | 5922 | } else { |
5921 | - return personModel.getId(); | |
5923 | + return patientsModel.getId(); | |
5922 | 5924 | } |
5923 | 5925 | } |
5924 | 5926 | } |