Commit ccce24eb2f8649be2b6e5eef7f552f582b40f07e
1 parent
c1f237df44
Exists in
master
and in
6 other branches
统计
Showing 1 changed file with 16 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientSyncMysqlFacade.java
View file @
ccce24e
| ... | ... | @@ -3317,10 +3317,22 @@ |
| 3317 | 3317 | String streetId) |
| 3318 | 3318 | { |
| 3319 | 3319 | OrganizationQuery organizationQuery = new OrganizationQuery(); |
| 3320 | - organizationQuery.setProvinceId(provinceId); | |
| 3321 | - organizationQuery.setCityId(cityId); | |
| 3322 | - organizationQuery.setAreaId(areaId); | |
| 3323 | - organizationQuery.setStreetId(streetId); | |
| 3320 | + if (StringUtils.isNotEmpty(provinceId)) | |
| 3321 | + { | |
| 3322 | + organizationQuery.setProvinceId(provinceId); | |
| 3323 | + } | |
| 3324 | + if (StringUtils.isNotEmpty(cityId)) | |
| 3325 | + { | |
| 3326 | + organizationQuery.setCityId(cityId); | |
| 3327 | + } | |
| 3328 | + if (StringUtils.isNotEmpty(areaId)) | |
| 3329 | + { | |
| 3330 | + organizationQuery.setAreaId(areaId); | |
| 3331 | + } | |
| 3332 | + if (StringUtils.isNotEmpty(streetId)) | |
| 3333 | + { | |
| 3334 | + organizationQuery.setStreetId(streetId); | |
| 3335 | + } | |
| 3324 | 3336 | List<Organization> organizations = organizationService.queryHospitals(organizationQuery); |
| 3325 | 3337 | List<Map<String,String>> list = new ArrayList<>(); |
| 3326 | 3338 | if (CollectionUtils.isNotEmpty(organizations)) |