Commit f9b8d944c598d4f46116fb6eb0be340c84ce7159
1 parent
3f88cd32eb
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 @
f9b8d94
| ... | ... | @@ -740,7 +740,7 @@ |
| 740 | 740 | BabyModel baby = mongoTemplate.findOne(Query.query(Criteria.where("pid").is(userId)), BabyModel.class); |
| 741 | 741 | midDate = baby.getBirth(); |
| 742 | 742 | } else { |
| 743 | - Patients patient = mongoTemplate.findOne(Query.query(Criteria.where("pid").is(userId)), Patients.class); | |
| 743 | + Patients patient = mongoTemplate.findOne(Query.query(Criteria.where("pid").is(userId)).with(new Sort(Sort.Direction.DESC, "created")), Patients.class); | |
| 744 | 744 | |
| 745 | 745 | if (personType == 1 || couponType == 4) { /** 孕妇根据末次月经对比 分娩券按照末次月经对比 */ |
| 746 | 746 | midDate = patient.getLastMenses(); |