72 lines
2.0 KiB
XML
72 lines
2.0 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.CtripVoucherMapper">
|
|
|
|
<!-- 根据订单ID查询凭证列表 -->
|
|
<select id="selectByOrderId" resultType="com.central.coupon.entity.CtripVoucher">
|
|
SELECT
|
|
id,
|
|
order_id,
|
|
item_id,
|
|
voucher_id,
|
|
voucher_code,
|
|
voucher_type,
|
|
voucher_data,
|
|
voucher_seat_info,
|
|
create_time,
|
|
update_time,
|
|
create_by,
|
|
update_by,
|
|
remark,
|
|
tenant_id
|
|
FROM t_ctrip_voucher
|
|
WHERE order_id = #{orderId}
|
|
AND deleted = 0
|
|
ORDER BY id ASC
|
|
</select>
|
|
|
|
<!-- 根据凭证编号查询凭证 -->
|
|
<select id="selectByVoucherId" resultType="com.central.coupon.entity.CtripVoucher">
|
|
SELECT
|
|
id,
|
|
order_id,
|
|
item_id,
|
|
voucher_id,
|
|
voucher_code,
|
|
voucher_type,
|
|
voucher_data,
|
|
voucher_seat_info,
|
|
create_time,
|
|
update_time,
|
|
create_by,
|
|
update_by,
|
|
remark,
|
|
tenant_id
|
|
FROM t_ctrip_voucher
|
|
WHERE voucher_id = #{voucherId}
|
|
AND deleted = 0
|
|
</select>
|
|
|
|
<!-- 根据凭证码查询凭证 -->
|
|
<select id="selectByVoucherCode" resultType="com.central.coupon.entity.CtripVoucher">
|
|
SELECT
|
|
id,
|
|
order_id,
|
|
item_id,
|
|
voucher_id,
|
|
voucher_code,
|
|
voucher_type,
|
|
voucher_data,
|
|
voucher_seat_info,
|
|
create_time,
|
|
update_time,
|
|
create_by,
|
|
update_by,
|
|
remark,
|
|
tenant_id
|
|
FROM t_ctrip_voucher
|
|
WHERE voucher_code = #{voucherCode}
|
|
AND deleted = 0
|
|
</select>
|
|
|
|
</mapper> |