fix(优惠券中心):优惠券中心业务和携程接口对接打通

This commit is contained in:
2025-08-07 03:57:13 +08:00
parent 5aa8f61d71
commit 0dd7f4a0d4
11 changed files with 873 additions and 215 deletions
@@ -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>