You've already forked FrameTour-BE
优惠券
This commit is contained in:
@@ -5,4 +5,18 @@
|
||||
resultType="com.ycwl.basic.model.pc.couponRecord.entity.CouponRecordEntity">
|
||||
select * from coupon_record where member_id = #{memberId} and coupon_id in (select id from coupon where scenic_id = #{scenicId} and FIND_IN_SET(#{goodsId},config_ids))
|
||||
</select>
|
||||
|
||||
<select id="queryByMemberIdAndFaceId"
|
||||
resultType="com.ycwl.basic.model.pc.couponRecord.entity.CouponRecordEntity">
|
||||
select * from coupon_record where member_id = #{memberId} and face_id = #{faceId}
|
||||
</select>
|
||||
|
||||
<select id="queryByMemberIdAndFaceIdAndType"
|
||||
resultType="com.ycwl.basic.model.pc.couponRecord.entity.CouponRecordEntity">
|
||||
select cr.*
|
||||
from coupon_record cr
|
||||
inner join coupon c on cr.coupon_id = c.id
|
||||
where cr.member_id = #{memberId} and cr.face_id = #{faceId} and c.type = #{type}
|
||||
limit 1
|
||||
</select>
|
||||
</mapper>
|
Reference in New Issue
Block a user