Commit 55edc1b79f5d3165bde510b3e7b67dcf1e3bd9da
1 parent
0cd6e70348
Exists in
master
and in
6 other branches
bug修复
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 @
55edc1b
| ... | ... | @@ -257,7 +257,7 @@ |
| 257 | 257 | return RespBuilder.buildErro(ResponseCode.COUPON_NOT_AVAILABLE, patientsInfo); |
| 258 | 258 | } |
| 259 | 259 | |
| 260 | - PersonModel person = mongoTemplate.findById(couponInfo.getId(), PersonModel.class); | |
| 260 | + PersonModel person = mongoTemplate.findById(couponInfo.getUsedId(), PersonModel.class); | |
| 261 | 261 | |
| 262 | 262 | /** 验证时间 */ |
| 263 | 263 | if(!validateDate(couponInfo.getUserId(), Integer.parseInt(data.get("actual_start").toString()), Integer.parseInt(data.get("actual_end").toString()), Integer.parseInt(data.get("unit_type").toString()), |