Commit c820d3303f33268cf19a7b01171099afaae70127
1 parent
077edadc2c
Exists in
master
and in
1 other branch
儿童追访区域
Showing 2 changed files with 11 additions and 2 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/BabyBookbuildingService.java
View file @
c820d33
... | ... | @@ -106,6 +106,15 @@ |
106 | 106 | return CollectionUtils.isNotEmpty(list) ? list.get(0) : null; |
107 | 107 | } |
108 | 108 | |
109 | + | |
110 | + public BabyModel queryBabyById(String id) { | |
111 | + BabyModelQuery babyQuery = new BabyModelQuery(); | |
112 | + babyQuery.setId(id); | |
113 | + MongoQuery query = babyQuery.convertToQuery(); | |
114 | + List<BabyModel> list = babyBookBuildingDao.queryBabyWithQuery(query); | |
115 | + return CollectionUtils.isNotEmpty(list) ? list.get(0) : null; | |
116 | + } | |
117 | + | |
109 | 118 | public List<BabyModel> queryBabyBuildByCond(BabyModelQuery babyQuery,String sortkey,Sort.Direction sort) { |
110 | 119 | MongoQuery query = babyQuery.convertToQuery(); |
111 | 120 | if (StringUtils.isNotEmpty(babyQuery.getNeed())) { |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BabyAfterVisitServiceImpl.java
View file @
c820d33
... | ... | @@ -182,7 +182,7 @@ |
182 | 182 | if (request.isArea()) |
183 | 183 | { |
184 | 184 | objectMap.put("hospitalName", CommonsHelper.getHospitalName(model.getHospitalId(), organizationService)); |
185 | - BabyModel babyModel = babyBookbuildingService.queryBabyBuildById(model.getBabyId()); | |
185 | + BabyModel babyModel = babyBookbuildingService.queryBabyById(model.getBabyId()); | |
186 | 186 | String address = ""; |
187 | 187 | if (babyModel != null) |
188 | 188 | { |
... | ... | @@ -510,7 +510,7 @@ |
510 | 510 | if (request.isArea()) |
511 | 511 | { |
512 | 512 | objectMap.put("hospitalName", CommonsHelper.getHospitalName(model.getHospitalId(), organizationService)); |
513 | - BabyModel babyModel = babyBookbuildingService.queryBabyBuildById(model.getBabyId()); | |
513 | + BabyModel babyModel = babyBookbuildingService.queryBabyById(model.getBabyId()); | |
514 | 514 | if (babyModel != null) |
515 | 515 | { |
516 | 516 | objectMap.put("address", CommonsHelper.getResidence(babyModel.getProvinceId(), babyModel.getCityId(), |