Commit 895d1261225f89c37ec7fbb40d4819831fa44224
1 parent
766cb55279
Exists in
master
and in
6 other branches
bug修复
Showing 1 changed file with 2 additions and 2 deletions
platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/CouponServiceImpl.java
View file @
895d126
| ... | ... | @@ -246,12 +246,12 @@ |
| 246 | 246 | if(CollectionUtils.isEmpty(patients)) { |
| 247 | 247 | return types; |
| 248 | 248 | } |
| 249 | - List<MaternalDeliverModel> deliverModels = mongoTemplate.find(Query.query(Criteria.where("pid").is(patients.get(0).getId())), MaternalDeliverModel.class); | |
| 249 | + List<MaternalDeliverModel> deliverModels = mongoTemplate.find(Query.query(Criteria.where("pid").is(patients.get(0).getPid())), MaternalDeliverModel.class); | |
| 250 | 250 | if(CollectionUtils.isNotEmpty(deliverModels)) { |
| 251 | 251 | isChildbirth = true; |
| 252 | 252 | } |
| 253 | 253 | |
| 254 | - List<DischargeAbstractMotherModel> motherModels = mongoTemplate.find(Query.query(Criteria.where("patientId").is(patients.get(0).getId())), DischargeAbstractMotherModel.class); | |
| 254 | + List<DischargeAbstractMotherModel> motherModels = mongoTemplate.find(Query.query(Criteria.where("patientId").is(patients.get(0).getPid())), DischargeAbstractMotherModel.class); | |
| 255 | 255 | if(CollectionUtils.isNotEmpty(motherModels)) { |
| 256 | 256 | isHospital = true; |
| 257 | 257 | } |