fix(优惠券中心):优惠券中心业务和携程接口对接打通
This commit is contained in:
@@ -119,4 +119,12 @@
|
||||
AND valid_end_time < NOW()
|
||||
</update>
|
||||
|
||||
<!-- 检查用户手机号和携程优惠券ID是否已存在 -->
|
||||
<select id="countByUserPhoneAndCtripCouponId" resultType="int">
|
||||
SELECT COUNT(*)
|
||||
FROM t_coupon
|
||||
WHERE user_phone = #{userPhone}
|
||||
AND ctrip_coupon_id = #{ctripCouponId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user