fix(优惠券中心):新增用户查询优惠券逻辑接口,和用户核销优惠券逻辑
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user