39 lines
1.1 KiB
XML
39 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.central.coupon.mapper.CtripContactMapper">
|
|
|
|
<!-- 根据订单ID查询联系人列表 -->
|
|
<select id="selectByOrderId" resultType="com.central.coupon.entity.CtripContact">
|
|
SELECT
|
|
id,
|
|
order_id,
|
|
name,
|
|
mobile,
|
|
email,
|
|
create_time,
|
|
update_time,
|
|
deleted
|
|
FROM t_ctrip_contact
|
|
WHERE order_id = #{orderId}
|
|
AND deleted = 0
|
|
ORDER BY id ASC
|
|
</select>
|
|
|
|
<!-- 根据手机号查询联系人列表 -->
|
|
<select id="selectByMobile" resultType="com.central.coupon.entity.CtripContact">
|
|
SELECT
|
|
id,
|
|
order_id,
|
|
name,
|
|
mobile,
|
|
email,
|
|
create_time,
|
|
update_time,
|
|
deleted
|
|
FROM t_ctrip_contact
|
|
WHERE mobile = #{mobile}
|
|
AND deleted = 0
|
|
ORDER BY create_time DESC
|
|
</select>
|
|
|
|
</mapper> |