Commit 2b8efa7949b4c107773a86d6db083ca649f40b3f
1 parent
911e92ec13
Exists in
master
and in
6 other branches
优惠劵查询
Showing 1 changed file with 1 additions and 1 deletions
platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/CouponServiceImpl.java
View file @
2b8efa7
... | ... | @@ -539,7 +539,7 @@ |
539 | 539 | restMap.put("pcerteTypeId", "57e1dd12f0f02e7ca519d6c7"); /** 其他*/ |
540 | 540 | } |
541 | 541 | } else { |
542 | - Patients patients = mongoTemplate.findOne(Query.query(Criteria.where("pid").is(userId)), Patients.class); | |
542 | + Patients patients = mongoTemplate.findOne(Query.query(Criteria.where("pid").is(userId).and("yn").is(1)), Patients.class); | |
543 | 543 | if (patients != null) { |
544 | 544 | restMap.put("vcCardNo", patients.getVcCardNo()); /** 就诊卡号 */ |
545 | 545 | restMap.put("cardNo", patients.getCardNo()); /** 证件号 */ |