Commit ee84821d6eac10c3a00b16f1635c1e980b11e5ec
1 parent
13231f210b
Exists in
master
and in
6 other branches
验证产检券接口返回参数新增 证件号+证件类型+就诊卡号
Showing 1 changed file with 8 additions and 0 deletions
platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/CouponServiceImpl.java
View file @
ee84821
| ... | ... | @@ -252,6 +252,14 @@ |
| 252 | 252 | |
| 253 | 253 | Map<String, Object> restMap = new HashMap<>(); |
| 254 | 254 | restMap.put("userId", couponInfo.getUserId()); |
| 255 | + Patients patients = mongoTemplate.findOne(Query.query(Criteria.where("pid").is(couponInfo.getUserId())), Patients.class); | |
| 256 | + if(patients != null) { | |
| 257 | + restMap.put("vcCardNo", patients.getVcCardNo()); /** 就诊卡号 */ | |
| 258 | + restMap.put("hcertificateNum", patients.getHcertificateNum()); /** 证件号 */ | |
| 259 | + restMap.put("hcertificateTypeId", patients.getHcertificateTypeId()); /** 证件类型id */ | |
| 260 | + } | |
| 261 | + | |
| 262 | + | |
| 255 | 263 | return RespBuilder.buildSuccess(restMap); |
| 256 | 264 | } |
| 257 | 265 |