Commit 8d33f558225cabd82b453f05f4ee9f1d25f31ef8
1 parent
f9092f952b
Exists in
master
and in
6 other branches
证件类型修改为孕妇的
Showing 1 changed file with 3 additions and 8 deletions
platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/CouponServiceImpl.java
View file @
8d33f55
| ... | ... | @@ -327,17 +327,12 @@ |
| 327 | 327 | restMap.put("vcCardNo", baby.getVcCardNo()); /** 就诊卡号 */ |
| 328 | 328 | // restMap.put("cardNo", baby.getCardNo()); /** 证件号 */ |
| 329 | 329 | restMap.put("cardNo", person.getCardNo()); /** 证件号 */ |
| 330 | - Patients patients = mongoTemplate.findById(baby.getParentId(), Patients.class); | |
| 330 | + Patients patients = mongoTemplate.findOne(Query.query(Criteria.where("pid").is(userId)), Patients.class); | |
| 331 | 331 | if(patients != null) { |
| 332 | 332 | restMap.put("pcerteTypeId", patients.getPcerteTypeId()); /** 证件类型id */ |
| 333 | 333 | } else { |
| 334 | - BasicConfig basicConfig = mongoTemplate.findOne(Query.query(Criteria.where("name").is("证件类型")), BasicConfig.class); | |
| 335 | - if(basicConfig != null) { | |
| 336 | - BasicConfig other = mongoTemplate.findOne(Query.query(Criteria.where("parentId").is(basicConfig.getId()).and("name").is("其他")), BasicConfig.class); | |
| 337 | - if(other != null) { | |
| 338 | - restMap.put("pcerteTypeId", other.getId()); | |
| 339 | - } | |
| 340 | - } | |
| 334 | + restMap.put("pcerteTypeId", "57e1dd12f0f02e7ca519d6c7"); /** 证件类型id */ | |
| 335 | + | |
| 341 | 336 | } |
| 342 | 337 | } else { |
| 343 | 338 | Patients patients = mongoTemplate.findOne(Query.query(Criteria.where("pid").is(userId)), Patients.class); |