fix(优惠券中心):新增用户查询优惠券逻辑接口,和用户核销优惠券逻辑
This commit is contained in:
@@ -23,4 +23,11 @@
|
||||
ORDER BY create_time DESC
|
||||
</select>
|
||||
|
||||
<!-- 根据商品ID查询核销记录 -->
|
||||
<select id="selectByItemId" resultType="com.central.coupon.entity.CtripConsumed">
|
||||
SELECT * FROM t_ctrip_consumed
|
||||
WHERE item_id = #{itemId}
|
||||
ORDER BY create_time DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -7,42 +7,33 @@
|
||||
SELECT
|
||||
id,
|
||||
order_id,
|
||||
contact_name,
|
||||
contact_phone,
|
||||
contact_email,
|
||||
contact_type,
|
||||
name,
|
||||
mobile,
|
||||
email,
|
||||
create_time,
|
||||
update_time,
|
||||
create_by,
|
||||
update_by,
|
||||
remark,
|
||||
tenant_id
|
||||
deleted
|
||||
FROM t_ctrip_contact
|
||||
WHERE order_id = #{orderId}
|
||||
AND deleted = 0
|
||||
ORDER BY id ASC
|
||||
</select>
|
||||
|
||||
<!-- 根据订单ID和联系人类型查询联系人 -->
|
||||
<select id="selectByOrderIdAndType" resultType="com.central.coupon.entity.CtripContact">
|
||||
<!-- 根据手机号查询联系人列表 -->
|
||||
<select id="selectByMobile" resultType="com.central.coupon.entity.CtripContact">
|
||||
SELECT
|
||||
id,
|
||||
order_id,
|
||||
contact_name,
|
||||
contact_phone,
|
||||
contact_email,
|
||||
contact_type,
|
||||
name,
|
||||
mobile,
|
||||
email,
|
||||
create_time,
|
||||
update_time,
|
||||
create_by,
|
||||
update_by,
|
||||
remark,
|
||||
tenant_id
|
||||
deleted
|
||||
FROM t_ctrip_contact
|
||||
WHERE order_id = #{orderId}
|
||||
AND contact_type = #{contactType}
|
||||
WHERE mobile = #{mobile}
|
||||
AND deleted = 0
|
||||
ORDER BY id ASC
|
||||
ORDER BY create_time DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -114,4 +114,32 @@
|
||||
ORDER BY id ASC
|
||||
</select>
|
||||
|
||||
<!-- 根据手机号查询乘客列表 -->
|
||||
<select id="selectByPhone" resultType="com.central.coupon.entity.CtripPassenger">
|
||||
SELECT
|
||||
id,
|
||||
order_id,
|
||||
item_id,
|
||||
passenger_id,
|
||||
passenger_name,
|
||||
passenger_type,
|
||||
id_type,
|
||||
id_number,
|
||||
phone,
|
||||
gender,
|
||||
birth_date,
|
||||
age_type,
|
||||
nationality_code,
|
||||
nationality_name,
|
||||
remark,
|
||||
create_time,
|
||||
update_time,
|
||||
create_by,
|
||||
update_by,
|
||||
tenant_id
|
||||
FROM t_ctrip_passenger
|
||||
WHERE phone = #{phone}
|
||||
ORDER BY create_time DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user