Commit 8fb6c2a1290beb0650c9eff6ded1a9b849ff8aec
1 parent
3649b2cbf6
Exists in
master
and in
1 other branch
修改新电子病历
Showing 1 changed file with 7 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java
View file @
8fb6c2a
... | ... | @@ -136,7 +136,13 @@ |
136 | 136 | patientsQuery1.setType(patients.getType()); |
137 | 137 | patientsQuery1.setHospitalId(referralApplyOrderModel.getTransferredHospital()); |
138 | 138 | List<Patients> patientsList = patientsService.queryPatient(patientsQuery1); |
139 | - if (CollectionUtils.isEmpty(patientsList)) { | |
139 | + | |
140 | + OrganizationQuery organizationQuery = new OrganizationQuery(); | |
141 | + organizationQuery.setYn(YnEnums.YES.getId()); | |
142 | + organizationQuery.setName(referralApplyOrderModel.getTransferredHospital()); | |
143 | + List<Organization> organization = organizationService.queryOrganization(organizationQuery); | |
144 | + | |
145 | + if (CollectionUtils.isEmpty(patientsList)&&CollectionUtils.isNotEmpty(organization)) { | |
140 | 146 | //在转入的医院建档 |
141 | 147 | patients.setId(null); |
142 | 148 | patients.setHospitalId(referralApplyOrderModel.getTransferredHospital()); |