Commit d4c1f8d21e8aba7cd3df2918898b99b128d2910f
1 parent
044590c79d
Exists in
master
and in
6 other branches
bbbbbb
Showing 2 changed files with 2 additions and 2 deletions
platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml
View file @
d4c1f8d
... | ... | @@ -118,7 +118,7 @@ |
118 | 118 | </select> |
119 | 119 | |
120 | 120 | <select id="findUrl" parameterType="string" resultType="map"> |
121 | - SELECT create_hospital_id, user_id FROM coupon_info where sequence_id = #{id} | |
121 | + SELECT create_hospital_id, user_id FROM coupon_info where sequence_id = #{id} order by create_date desc limit 0,1 | |
122 | 122 | </select> |
123 | 123 | |
124 | 124 | <update id="invalid" parameterType="map"> |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/MongoUtil.java
View file @
d4c1f8d
... | ... | @@ -691,7 +691,7 @@ |
691 | 691 | |
692 | 692 | public String getPid(String parentId) { |
693 | 693 | Patients patients = mongoTemplate.findById(parentId, Patients.class); |
694 | - return patients == null ? null : patients.getPid(); | |
694 | + return patients == null || patients.getYn() == 1 ? null : patients.getPid(); | |
695 | 695 | } |
696 | 696 | } |