Commit 395b15dd737c32e4248b0d9b8c27ac669b384b8e
1 parent
6e85962d29
Exists in
master
and in
6 other branches
1
Showing 1 changed file with 2 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
395b15d
| ... | ... | @@ -161,12 +161,12 @@ |
| 161 | 161 | BabyModel babyModel1 = null; |
| 162 | 162 | if(org.apache.commons.lang.StringUtils.isNotEmpty(parentId)){ |
| 163 | 163 | BabyModelQuery babyModelQuery=new BabyModelQuery(); |
| 164 | - babyModelQuery.setParentId(parentId); | |
| 164 | + babyModelQuery.setId(parentId); | |
| 165 | 165 | List<BabyModel> patients1 = babyBookbuildingService.queryBabyBuildByCond(babyModelQuery); |
| 166 | 166 | if(CollectionUtils.isNotEmpty(patients1)){ |
| 167 | 167 | babyModel1=patients1.get(0); |
| 168 | 168 | } |
| 169 | - if (org.apache.commons.lang.StringUtils.isEmpty(pid)) { | |
| 169 | + if (babyModel1!=null&org.apache.commons.lang.StringUtils.isEmpty(pid)) { | |
| 170 | 170 | pid = babyModel1.getPid(); |
| 171 | 171 | } |
| 172 | 172 | } |