fix(优惠券中心):携程全链路调试完成
This commit is contained in:
@@ -89,6 +89,26 @@
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
<!-- 根据携程订单ID查询优惠券 -->
|
||||
<select id="selectByCtripOrderId" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
<include refid="Base_Column_List"/>
|
||||
FROM t_coupon
|
||||
WHERE ctrip_order_id = #{ctripOrderId}
|
||||
AND deleted = 0
|
||||
ORDER BY create_time DESC
|
||||
</select>
|
||||
|
||||
<!-- 根据携程优惠券ID模糊查询优惠券 -->
|
||||
<select id="selectByCtripCouponIdLike" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
<include refid="Base_Column_List"/>
|
||||
FROM t_coupon
|
||||
WHERE ctrip_coupon_id LIKE #{ctripCouponIdPattern}
|
||||
AND deleted = 0
|
||||
ORDER BY create_time DESC
|
||||
</select>
|
||||
|
||||
<!-- 根据订单号查询使用的优惠券 -->
|
||||
<select id="selectByUsedOrderNo" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
|
||||
Reference in New Issue
Block a user