Commit dde712ae928bcae89b8aa9859d14fd74072bc8ad
1 parent
cf7756a1a3
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 8 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MicroelementFacade.java
View file @
dde712a
... | ... | @@ -120,6 +120,10 @@ |
120 | 120 | { |
121 | 121 | Map data = new HashMap(); |
122 | 122 | Patients patients = patientsService.findOnePatientById(model.getPatientId()); |
123 | + if (patients == null) | |
124 | + { | |
125 | + continue; | |
126 | + } | |
123 | 127 | data.put("id",model.getId()); |
124 | 128 | data.put("userName",patients.getUsername()); |
125 | 129 | data.put("phone",patients.getPhone()); |
... | ... | @@ -183,6 +187,10 @@ |
183 | 187 | { |
184 | 188 | Map data = new HashMap(); |
185 | 189 | BabyModel babyModel = babyBookbuildingService.queryBabyBuildById(model.getPatientId()); |
190 | + if (babyModel == null) | |
191 | + { | |
192 | + continue; | |
193 | + } | |
186 | 194 | data.put("id",model.getId()); |
187 | 195 | data.put("userName",babyModel.getName()); |
188 | 196 | data.put("phone",babyModel.getMphone()); |