Commit b3f869972d90c7fa50d9ad716099f6a34f496c3a

Authored by yangfei

Merge branch 'master' of https://git.healthbaby.com.cn/jiangjiazhi/regional-platform

Showing 1 changed file

platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/CouponServiceImpl.java View file @ b3f8699
... ... @@ -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 }