Commit 39d0e34c3d843e99ac6f575a56f46a443a7fb12c
1 parent
72469b6f70
Exists in
master
and in
6 other branches
工位统计
Showing 1 changed file with 2 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientSyncMysqlFacade.java
View file @
39d0e34
... | ... | @@ -3921,7 +3921,8 @@ |
3921 | 3921 | result.put("mommyName",model.getMname()); |
3922 | 3922 | result.put("mommyPhone",model.getMphone()); |
3923 | 3923 | result.put("mommyCertNo",model.getMcertNo()); |
3924 | - String buildHospital = organizationService.getOrganization(Integer.parseInt(model.getHospitalId())).getName(); | |
3924 | + Organization org = organizationService.getOrganization(Integer.parseInt(model.getHospitalId())); | |
3925 | + String buildHospital = org == null ? "" : org.getName(); | |
3925 | 3926 | result.put("buildHospital",buildHospital); |
3926 | 3927 | result.put("babyId",model.getId()); |
3927 | 3928 | results.add(result); |
3928 | 3929 | |
... | ... | @@ -3961,9 +3962,7 @@ |
3961 | 3962 | patientsQuery.setPage(page); |
3962 | 3963 | patientsQuery.setLimit(limit); |
3963 | 3964 | patientsQuery.setNeed("Need"); |
3964 | - | |
3965 | 3965 | List<Patients> datas = patientsService.queryPatient(patientsQuery); |
3966 | - System.out.println("55555555555"+patientsQuery.convertToQuery().convertToMongoQuery().toString()); | |
3967 | 3966 | if (CollectionUtils.isNotEmpty(datas)) |
3968 | 3967 | { |
3969 | 3968 | for (Patients model : datas) |