fix(优惠券中心):携程接口优化
This commit is contained in:
@@ -18,6 +18,9 @@
|
||||
total_price,
|
||||
currency,
|
||||
quantity,
|
||||
voucher_id,
|
||||
passenger_id,
|
||||
passenger_voucher_id,
|
||||
create_time,
|
||||
update_time,
|
||||
create_by,
|
||||
@@ -46,6 +49,9 @@
|
||||
total_price,
|
||||
currency,
|
||||
quantity,
|
||||
voucher_id,
|
||||
passenger_id,
|
||||
passenger_voucher_id,
|
||||
create_time,
|
||||
update_time,
|
||||
create_by,
|
||||
@@ -73,6 +79,9 @@
|
||||
total_price,
|
||||
currency,
|
||||
quantity,
|
||||
voucher_id,
|
||||
passenger_id,
|
||||
passenger_voucher_id,
|
||||
create_time,
|
||||
update_time,
|
||||
create_by,
|
||||
@@ -85,4 +94,37 @@
|
||||
AND deleted = 0
|
||||
</select>
|
||||
|
||||
<!-- 根据携程订单号和订单项编号查询订单项 -->
|
||||
<select id="selectByOtaOrderIdAndItemId" resultType="com.central.coupon.entity.CtripOrderItem">
|
||||
SELECT
|
||||
oi.id,
|
||||
oi.order_id,
|
||||
oi.item_id,
|
||||
oi.item_name,
|
||||
oi.item_type,
|
||||
oi.plu,
|
||||
oi.use_start_date,
|
||||
oi.use_end_date,
|
||||
oi.price,
|
||||
oi.sale_price,
|
||||
oi.total_price,
|
||||
oi.currency,
|
||||
oi.quantity,
|
||||
oi.voucher_id,
|
||||
oi.passenger_id,
|
||||
oi.passenger_voucher_id,
|
||||
oi.create_time,
|
||||
oi.update_time,
|
||||
oi.create_by,
|
||||
oi.update_by,
|
||||
oi.remark,
|
||||
oi.tenant_id
|
||||
FROM t_ctrip_order_item oi
|
||||
INNER JOIN t_ctrip_order o ON oi.order_id = o.id
|
||||
WHERE o.ota_order_id = #{otaOrderId}
|
||||
AND oi.item_id = #{itemId}
|
||||
AND oi.deleted = 0
|
||||
AND o.deleted = 0
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user