支付
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,254 @@
|
||||
<?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.zhwl.travelagency.order.mapper.ZdyTravelAgencyOrderSalesRecordMapper">
|
||||
|
||||
<resultMap type="ZdyTravelAgencyOrderSalesRecord" id="ZdyTravelAgencyOrderSalesRecordResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="summaryTime" column="summary_time"/>
|
||||
<result property="travelAgencyId" column="travel_agency_id"/>
|
||||
<result property="ticketId" column="ticket_id"/>
|
||||
<result property="salesOrderQuantity" column="sales_order_quantity"/>
|
||||
<result property="salesOrderPrice" column="sales_order_price"/>
|
||||
<result property="refundOrderQuantity" column="refund_order_quantity"/>
|
||||
<result property="refundOrderPrice" column="refund_order_price"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="com.zhwl.travelagency.order.vo.ZdyTravelAgencyOrderSalesRecordVO"
|
||||
id="ZdyTravelAgencyOrderSalesRecordResultVO">
|
||||
<result property="summaryTime" column="summary_time"/>
|
||||
<result property="ticketName" column="ticket_name"/>
|
||||
<result property="ticketSalesPrice" column="ticket_sales_price"/>
|
||||
<result property="ticketSettlementPrice" column="ticket_settlement_price"/>
|
||||
<result property="salesOrderQuantity" column="sales_order_quantity"/>
|
||||
<result property="salesOrderPrice" column="sales_order_price"/>
|
||||
<result property="refundOrderQuantity" column="refund_order_quantity"/>
|
||||
<result property="refundOrderPrice" column="refund_order_price"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectZdyTravelAgencyOrderSalesRecordVo">
|
||||
select id,
|
||||
summary_time,
|
||||
travel_agency_id,
|
||||
ticket_id,
|
||||
sales_order_quantity,
|
||||
sales_order_price,
|
||||
refund_order_quantity,
|
||||
refund_order_price
|
||||
from zdy_travel_agency_order_sales_record
|
||||
</sql>
|
||||
|
||||
<select id="selectZdyTravelAgencyOrderSalesRecordList" parameterType="ZdyTravelAgencyOrderSalesRecord"
|
||||
resultMap="ZdyTravelAgencyOrderSalesRecordResult">
|
||||
<include refid="selectZdyTravelAgencyOrderSalesRecordVo"/>
|
||||
<where>
|
||||
<if test="summaryTime != null ">
|
||||
and summary_time = #{summaryTime}
|
||||
</if>
|
||||
<if test="travelAgencyId != null ">
|
||||
and travel_agency_id = #{travelAgencyId}
|
||||
</if>
|
||||
<if test="ticketId != null ">
|
||||
and ticket_id = #{ticketId}
|
||||
</if>
|
||||
<if test="salesOrderQuantity != null ">
|
||||
and sales_order_quantity = #{salesOrderQuantity}
|
||||
</if>
|
||||
<if test="salesOrderPrice != null ">
|
||||
and sales_order_price = #{salesOrderPrice}
|
||||
</if>
|
||||
<if test="refundOrderQuantity != null ">
|
||||
and refund_order_quantity = #{refundOrderQuantity}
|
||||
</if>
|
||||
<if test="refundOrderPrice != null ">
|
||||
and refund_order_price = #{refundOrderPrice}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectZdyTravelAgencyOrderSalesRecordListReport"
|
||||
parameterType="com.zhwl.travelagency.order.dto.ZdyTravelAgencyOrderSalesRecordDTO"
|
||||
resultMap="ZdyTravelAgencyOrderSalesRecordResultVO">
|
||||
select summary_time,
|
||||
b.name ticket_name,
|
||||
b.sales_rice ticket_sales_price,
|
||||
c.settlement_price ticket_settlement_price,
|
||||
sales_order_quantity,
|
||||
sales_order_price,
|
||||
refund_order_quantity,
|
||||
refund_order_price
|
||||
from zdy_travel_agency_order_sales_record a
|
||||
left join zdy_ticket b on a.ticket_id = b.id
|
||||
left join zdy_travel_agency_ticket_authorization c on c.travel_agency_id=a.travel_agency_id and c.ticket_id=a.ticket_id
|
||||
left join zdy_travel_agency_info i on i.id = a.travel_agency_id
|
||||
<where>
|
||||
<if test="travelAgencyId != null ">
|
||||
and a.travel_agency_id = #{travelAgencyId}
|
||||
</if>
|
||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||
and date_format(a.summary_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
||||
</if>
|
||||
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
||||
and date_format(a.summary_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
||||
</if>
|
||||
<if test="ticketName != null and ticketName != ''">
|
||||
and b.name like concat('%',#{ticketName},'%')
|
||||
</if>
|
||||
${params.dataScope}
|
||||
</where>
|
||||
order by summary_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectZdyTravelAgencyOrderSalesRecordById" parameterType="Long"
|
||||
resultMap="ZdyTravelAgencyOrderSalesRecordResult">
|
||||
<include refid="selectZdyTravelAgencyOrderSalesRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertZdyTravelAgencyOrderSalesRecord" parameterType="ZdyTravelAgencyOrderSalesRecord"
|
||||
useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into zdy_travel_agency_order_sales_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="summaryTime != null">summary_time,
|
||||
</if>
|
||||
<if test="travelAgencyId != null">travel_agency_id,
|
||||
</if>
|
||||
<if test="ticketId != null">ticket_id,
|
||||
</if>
|
||||
<if test="salesOrderQuantity != null">sales_order_quantity,
|
||||
</if>
|
||||
<if test="salesOrderPrice != null">sales_order_price,
|
||||
</if>
|
||||
<if test="refundOrderQuantity != null">refund_order_quantity,
|
||||
</if>
|
||||
<if test="refundOrderPrice != null">refund_order_price,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="summaryTime != null">#{summaryTime},
|
||||
</if>
|
||||
<if test="travelAgencyId != null">#{travelAgencyId},
|
||||
</if>
|
||||
<if test="ticketId != null">#{ticketId},
|
||||
</if>
|
||||
<if test="salesOrderQuantity != null">#{salesOrderQuantity},
|
||||
</if>
|
||||
<if test="salesOrderPrice != null">#{salesOrderPrice},
|
||||
</if>
|
||||
<if test="refundOrderQuantity != null">#{refundOrderQuantity},
|
||||
</if>
|
||||
<if test="refundOrderPrice != null">#{refundOrderPrice},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateZdyTravelAgencyOrderSalesRecord" parameterType="ZdyTravelAgencyOrderSalesRecord">
|
||||
update zdy_travel_agency_order_sales_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="summaryTime != null">summary_time =
|
||||
#{summaryTime},
|
||||
</if>
|
||||
<if test="travelAgencyId != null">travel_agency_id =
|
||||
#{travelAgencyId},
|
||||
</if>
|
||||
<if test="ticketId != null">ticket_id =
|
||||
#{ticketId},
|
||||
</if>
|
||||
<if test="salesOrderQuantity != null">sales_order_quantity =
|
||||
#{salesOrderQuantity},
|
||||
</if>
|
||||
<if test="salesOrderPrice != null">sales_order_price =
|
||||
#{salesOrderPrice},
|
||||
</if>
|
||||
<if test="refundOrderQuantity != null">refund_order_quantity =
|
||||
#{refundOrderQuantity},
|
||||
</if>
|
||||
<if test="refundOrderPrice != null">refund_order_price =
|
||||
#{refundOrderPrice},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteZdyTravelAgencyOrderSalesRecordById" parameterType="Long">
|
||||
delete
|
||||
from zdy_travel_agency_order_sales_record
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteZdyTravelAgencyOrderSalesRecordByIds" parameterType="String">
|
||||
delete from zdy_travel_agency_order_sales_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<insert id="insertAndUpdate"
|
||||
parameterType="com.zhwl.travelagency.order.domain.ZdyTravelAgencyOrderSalesRecord">
|
||||
insert into zdy_travel_agency_order_sales_record (
|
||||
summary_time,
|
||||
travel_agency_id,
|
||||
ticket_id,
|
||||
sales_order_quantity,
|
||||
sales_order_price,
|
||||
refund_order_quantity,
|
||||
refund_order_price
|
||||
)
|
||||
values
|
||||
(
|
||||
#{summaryTime},
|
||||
#{travelAgencyId},
|
||||
#{ticketId},
|
||||
#{salesOrderQuantity},
|
||||
#{salesOrderPrice},
|
||||
#{refundOrderQuantity},
|
||||
#{refundOrderPrice}
|
||||
)
|
||||
on duplicate key
|
||||
update
|
||||
<trim suffixOverrides=",">
|
||||
summary_time = summary_time,
|
||||
travel_agency_id = travel_agency_id,
|
||||
ticket_id = ticket_id,
|
||||
<if test="salesOrderQuantity!=null">
|
||||
sales_order_quantity = ifnull(sales_order_quantity,0) + values(sales_order_quantity),
|
||||
</if>
|
||||
<if test="salesOrderPrice!=null">
|
||||
sales_order_price = ifnull(sales_order_price,0) + values(sales_order_price),
|
||||
</if>
|
||||
<if test="refundOrderQuantity!=null">
|
||||
refund_order_quantity = ifnull(refund_order_quantity,0) + values(refund_order_quantity),
|
||||
</if>
|
||||
<if test="refundOrderPrice!=null">
|
||||
refund_order_price =ifnull(refund_order_price,0) + values(refund_order_price),
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<select id="summary" parameterType="com.zhwl.travelagency.order.dto.ZdyTravelAgencyOrderSalesRecordDTO"
|
||||
resultMap="ZdyTravelAgencyOrderSalesRecordResultVO">
|
||||
select sum(ifnull(sales_order_quantity, 0)) sales_order_quantity,
|
||||
sum(ifnull(sales_order_price, 0)) sales_order_price,
|
||||
sum(ifnull(refund_order_quantity, 0)) refund_order_quantity,
|
||||
sum(ifnull(refund_order_price, 0)) refund_order_price
|
||||
from zdy_travel_agency_order_sales_record a left join zdy_ticket b on a.ticket_id = b.id
|
||||
left join zdy_travel_agency_info i on a.travel_agency_id = i.id
|
||||
<where>
|
||||
<if test="travelAgencyId != null ">
|
||||
and a.travel_agency_id = #{travelAgencyId}
|
||||
</if>
|
||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||
and date_format(a.summary_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
||||
</if>
|
||||
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
||||
and date_format(a.summary_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
||||
</if>
|
||||
<if test="ticketName != null and ticketName != ''">
|
||||
and b.name like concat('%',#{ticketName},'%')
|
||||
</if>
|
||||
${params.dataScope}
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
@@ -0,0 +1,740 @@
|
||||
<?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.zhwl.travelagency.order.mapper.ZdyTravelAgencyTicketMapper">
|
||||
|
||||
<resultMap type="com.zhwl.travelagency.order.vo.ZdyTravelAgencyTicketVO" id="TravelAgencyTicketVOResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="scenicId" column="scenic_id"/>
|
||||
<result property="salesRice" column="sales_rice"/>
|
||||
<result property="price" column="price"/>
|
||||
<result property="image" column="image"/>
|
||||
<result property="classify" column="classify"/>
|
||||
<result property="groundingFlag" column="grounding_flag"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="scenicName" column="scenic_name"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="inventory" column="inventory"/>
|
||||
<result property="flag" column="flag"/>
|
||||
<result property="minPrice" column="minPrice"/>
|
||||
<result property="refundRule" column="refund_rule"/>
|
||||
<result property="refundRuleName" column="refundRuleName"/>
|
||||
<result property="isFee" column="is_fee"/>
|
||||
<result property="classifyName" column="classifyName"/>
|
||||
<result property="isOrder" column="is_order"/>
|
||||
<result property="validityStartTime" column="validity_start_time"/>
|
||||
<result property="validityEndTime" column="validity_end_time"/>
|
||||
<result property="groupId" column="group_id"/>
|
||||
<result property="bookingNotice" column="booking_notice"/>
|
||||
<result property="beforeDay" column="before_day"/>
|
||||
<result property="isOrderQuantity" column="is_order_quantity"/>
|
||||
<result property="orderQuantity" column="order_quantity"/>
|
||||
<result property="authenticationType" column="authentication_type"/>
|
||||
<result property="verifySettings" column="verify_settings"/>
|
||||
<result property="isPurchaseDate" column="is_purchase_date"/>
|
||||
<result property="purchStartDate" column="purch_start_date"/>
|
||||
<result property="purchEndDate" column="purch_end_date"/>
|
||||
<result property="ticketValidityPeriod" column="ticket_validity_period"/>
|
||||
<result property="buyPeriodDay" column="buy_period_day"/>
|
||||
<result property="adjust" column="adjust"/>
|
||||
<result property="groupName" column="groupName"/>
|
||||
<result property="groupId" column="group_id"/>
|
||||
<result property="classifyName" column="classifyName"/>
|
||||
<result property="admissionAddress" column="admission_address"/>
|
||||
<result property="admissionTime" column="admission_time"/>
|
||||
<result property="sales" column="sales"/>
|
||||
<result property="image11" column="image11"/>
|
||||
<result property="image43" column="image43"/>
|
||||
<result property="feeType" column="fee_type"/>
|
||||
<result property="deductionFees" column="deduction_fees"/>
|
||||
<result property="deductionFeesUnit" column="deduction_fees_unit"/>
|
||||
<result property="refundDay" column="refund_day"/>
|
||||
<result property="qrcodeRule" column="qrcode_rule"/>
|
||||
<result property="isRefundCheck" column="is_refund_check"/>
|
||||
<result property="settlementPrice" column="settlement_price11"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<resultMap type="ZdyTicketOrderVo" id="ZdyTicketOrderResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="orderCode" column="order_code"/>
|
||||
<result property="orderPrepayId" column="order_prepay_id"/>
|
||||
<result property="scenicId" column="scenic_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="buyQuantity" column="buy_quantity"/>
|
||||
<result property="totalPrice" column="total_price"/>
|
||||
<result property="orderSource" column="order_source"/>
|
||||
<result property="paymentType" column="payment_type"/>
|
||||
<result property="paymentMethod" column="payment_method"/>
|
||||
<result property="paymentTime" column="payment_time"/>
|
||||
<result property="refundStatus" column="refund_status"/>
|
||||
<result property="refundTime" column="refund_time"/>
|
||||
<result property="verificationType" column="verification_type"/>
|
||||
<result property="verificationTime" column="verification_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="userName" column="userName"/>
|
||||
<result property="mobilePhone" column="mobilePhone"/>
|
||||
<result property="identityCard" column="identityCard"/>
|
||||
<result property="scenicName" column="scenicName"/>
|
||||
<result property="tradeSession" column="trade_session"/>
|
||||
<result property="tradeSession" column="trade_session"/>
|
||||
<result property="tourId" column="tour_id"/>
|
||||
<result property="touristSource" column="tourist_source"/>
|
||||
<result property="toursNum" column="tours_num"/>
|
||||
<result property="travelAgencyId" column="travel_agency_id"/>
|
||||
<result property="paymentScene" column="payment_scene"/>
|
||||
<collection property="orderItemList" javaType="java.util.List" ofType="ZdyTicketOrderItem"
|
||||
select="selectZdyOrderItemByOrderId" column="id"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="selectZdyOrderItemByOrderId" parameterType="Long"
|
||||
resultMap="ZdyTicketOrderItemResult">
|
||||
select a.*,
|
||||
CASE
|
||||
WHEN a.user_id = 0 THEN
|
||||
a.user_name
|
||||
ELSE u.`name`
|
||||
END user_name,
|
||||
u.mobile AS mobilePhone,
|
||||
CASE
|
||||
WHEN a.user_id = 0 THEN
|
||||
a.identity_card
|
||||
ELSE u.id_card
|
||||
END identity_card
|
||||
from zdy_ticket_order_item a
|
||||
left join zdy_user u on u.id = a.user_id
|
||||
where a.order_id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<resultMap type="ZdyTicketOrderItem" id="ZdyTicketOrderItemResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="orderCode" column="order_code"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="userName" column="user_name"/>
|
||||
<result property="identityCard" column="identity_card"/>
|
||||
<result property="price" column="price"/>
|
||||
<result property="buyQuantity" column="buy_quantity"/>
|
||||
<result property="totalPrice" column="total_price"/>
|
||||
<result property="paymentType" column="payment_type"/>
|
||||
<result property="paymentMethod" column="payment_method"/>
|
||||
<result property="paymentTime" column="payment_time"/>
|
||||
<result property="refundStatus" column="refund_status"/>
|
||||
<result property="refundTime" column="refund_time"/>
|
||||
<result property="verificationType" column="verification_type"/>
|
||||
<result property="verificationTime" column="verification_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="ticketId" column="ticket_id"/>
|
||||
<result property="scenicId" column="scenic_id"/>
|
||||
<result property="classify" column="classify"/>
|
||||
<result property="ticketName" column="ticket_name"/>
|
||||
<result property="groupId" column="group_id"/>
|
||||
<result property="authenticationType" column="authentication_type"/>
|
||||
<result property="qrcodeRule" column="qrcode_rule"/>
|
||||
<result property="refundRule" column="refund_rule"/>
|
||||
<result property="refundDay" column="refund_day"/>
|
||||
<result property="isFee" column="is_fee"/>
|
||||
<result property="feeType" column="fee_type"/>
|
||||
<result property="deductionFees" column="deduction_fees"/>
|
||||
<result property="deductionFeesUnit" column="deduction_fees_unit"/>
|
||||
<result property="deductionJson" column="deduction_json"/>
|
||||
<result property="orderSource" column="order_source"/>
|
||||
<result property="tourId" column="tour_id"/>
|
||||
<result property="mobilePhone" column="mobilePhone"/>
|
||||
<result property="isRefundCheck" column="is_refund_check"/>
|
||||
<result property="settlementPrice" column="settlement_price"/>
|
||||
<result property="tradeSession" column="trade_session"/>
|
||||
<result property="applicablePeriod" column="applicable_period"/>
|
||||
<result property="timeQuantum" column="time_quantum"/>
|
||||
<result property="deptId" column="dept_id"/>
|
||||
<collection property="ticketOrderDetailList" javaType="java.util.List" ofType="ZdyTicketOrderDetailReturnVo"
|
||||
select="selectZdyOrderDetailByOrderId" column="id"/>
|
||||
</resultMap>
|
||||
<resultMap type="ZdyTicketOrderDetailReturnVo" id="ZdyTicketOrderDetailResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="orderItemId" column="order_item_id"/>
|
||||
<result property="ticketId" column="ticket_id"/>
|
||||
<result property="userTouristId" column="user_tourist_id"/>
|
||||
<result property="identityCard" column="identityCard"/>
|
||||
<result property="userName" column="userName"/>
|
||||
<result property="mobilePhone" column="mobilePhone"/>
|
||||
<result property="ticketPrice" column="ticket_price"/>
|
||||
<result property="buyQuantity" column="buy_quantity"/>
|
||||
<result property="orderTime" column="order_time"/>
|
||||
<result property="paymentType" column="payment_type"/>
|
||||
<result property="paymentMethod" column="payment_method"/>
|
||||
<result property="paymentTime" column="payment_time"/>
|
||||
<result property="refundEndTime" column="refund_end_time"/>
|
||||
<result property="verificationCode" column="verification_code"/>
|
||||
<result property="availableStartTime" column="available_start_time"/>
|
||||
<result property="availableEndTime" column="available_end_time"/>
|
||||
<result property="verificationType" column="verification_type"/>
|
||||
<result property="verificationTime" column="verification_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="productTotalPrice" column="product_total_price"/>
|
||||
<result property="payableAmount" column="payable_amount"/>
|
||||
<result property="actuaAmount" column="actua_amount"/>
|
||||
<result property="verificationUserId" column="verification_user_id"/>
|
||||
<result property="verificationUserName" column="verification_user_name"/>
|
||||
<result property="refundStatus" column="refund_status"/>
|
||||
<result property="verificationMun" column="verification_mun"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="canVerificationMun" column="can_verification_mun"/>
|
||||
<result property="identityCard" column="identityCard"/>
|
||||
<result property="userName" column="userName"/>
|
||||
<result property="mobilePhone" column="mobilePhone"/>
|
||||
<result property="activationStatus" column="activation_status"/>
|
||||
<result property="activationTime" column="activation_time"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<select id="selectZdyOrderDetailByOrderId" parameterType="Long"
|
||||
resultMap="ZdyTicketOrderDetailResult">
|
||||
select d.*,
|
||||
CASE
|
||||
WHEN d.user_tourist_id = 0 THEN
|
||||
d.user_name
|
||||
ELSE u.`name`
|
||||
END userName,
|
||||
u.mobile as mobilePhone,
|
||||
CASE
|
||||
WHEN d.user_tourist_id = 0 THEN
|
||||
d.identity_card
|
||||
ELSE u.id_card
|
||||
END identityCard
|
||||
from zdy_ticket_order_detail d
|
||||
LEFT JOIN zdy_user_tourist u ON u.id = d.user_tourist_id
|
||||
where d.order_item_id = #{id}
|
||||
order by d.verification_type
|
||||
</select>
|
||||
|
||||
<resultMap type="ZdyTicketRefundRule" id="ZdyTicketRefundRuleResult">
|
||||
<result property="id" column="sub_id"/>
|
||||
<result property="ticketId" column="sub_ticket_id"/>
|
||||
<result property="day" column="sub_day"/>
|
||||
<result property="deductionFees" column="sub_deduction_fees"/>
|
||||
<result property="deductionFeesUnit" column="sub_deduction_fees_unit"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<resultMap type="ZdyTicketOrderRefundVo" id="ZdyTicketOrderRefundResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="refundCode" column="refund_code"/>
|
||||
<result property="orderPrepayId" column="order_prepay_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="refundQuantity" column="refund_quantity"/>
|
||||
<result property="totalPrice" column="total_price"/>
|
||||
<result property="totalFee" column="total_fee"/>
|
||||
<result property="actualPrice" column="actual_price"/>
|
||||
<result property="refundStatus" column="refund_status"/>
|
||||
<result property="refundTime" column="refund_time"/>
|
||||
<result property="personalRefundType" column="personal_refund_type"/>
|
||||
<result property="businessRefundType" column="business_refund_type"/>
|
||||
<result property="refundDescribe" column="refund_describe"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="userName" column="userName"/>
|
||||
<result property="userPhone" column="userPhone"/>
|
||||
<result property="tourId" column="tour_id"/>
|
||||
<result property="refundSource" column="refund_source"/>
|
||||
<result property="travelAgencyId" column="travel_agency_id"/>
|
||||
<result property="orderTime" column="orderTime"/>
|
||||
<result property="orderCode" column="orderCode"/>
|
||||
<collection property="orderRefundItemList" javaType="java.util.List" ofType="ZdyTicketOrderRefundItem"
|
||||
select="selectZdyTicketOrderRefundItemByRefundId" column="id"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="ZdyTicketOrderRefundItem" id="ZdyTicketOrderRefundItemResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="refundId" column="refund_id"/>
|
||||
<result property="orderItemId" column="order_item_id"/>
|
||||
<result property="ticketClassify" column="ticket_classify"/>
|
||||
<result property="ticketId" column="ticket_id"/>
|
||||
<result property="refundQuantity" column="refund_quantity"/>
|
||||
<result property="totalPrice" column="total_price"/>
|
||||
<result property="totalFee" column="total_fee"/>
|
||||
<result property="actualPrice" column="actual_price"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="ticketName" column="ticket_name"/>
|
||||
<result property="settlementPrice" column="settlement_price"/>
|
||||
<result property="deptId" column="dept_id"/>
|
||||
<collection property="refundDetailList" javaType="java.util.List" ofType="ZdyTicketOrderRefundDetail"
|
||||
select="selectZdyTicketOrderRefundDetailByRefundId" column="id"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="ZdyTicketOrderRefundDetail" id="ZdyTicketOrderRefundDetailResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="orderDetailId" column="order_detail_id"/>
|
||||
<result property="refundItemId" column="refund_item_id"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- a.grounding_flag = 1 虽已授权但是下架,这里查询已上架的门票 -->
|
||||
<select id="selectSalesTickets" parameterType="com.zhwl.travelagency.order.dto.ZdyTravelAgencyTicketDTO"
|
||||
resultMap="TravelAgencyTicketVOResult">
|
||||
select a.*,b.settlement_price as settlement_price11
|
||||
from zdy_ticket a
|
||||
inner join zdy_travel_agency_ticket_authorization b on a.id = b.ticket_id
|
||||
left join zdy_travel_agency_info i on b.travel_agency_id = i.id
|
||||
<where>
|
||||
a.del_flag = '0' and a.grounding_flag = 1
|
||||
<if test="ticketName != null and ticketName!=''">
|
||||
and a.name like concat('%', #{ticketName},'%')
|
||||
</if>
|
||||
<if test="travelAgencyId != null">
|
||||
and b.travel_agency_id = #{travelAgencyId}
|
||||
</if>
|
||||
${params.dataScope}
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectZdyTicketRefundRuleByTicketId" parameterType="Long"
|
||||
resultMap="ZdyTicketRefundRuleResult">
|
||||
select id as sub_id,
|
||||
ticket_id as sub_ticket_id, day as sub_day, deduction_fees as sub_deduction_fees, deduction_fees_unit as sub_deduction_fees_unit
|
||||
from zdy_ticket_refund_rule
|
||||
where ticket_id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectZdyTicketOrderList" parameterType="com.zhwl.ticket.order.dto.ZdyTicketOrderDto"
|
||||
resultMap="ZdyTicketOrderResult">
|
||||
SELECT
|
||||
a.id,
|
||||
a.order_code,
|
||||
a.order_prepay_id,
|
||||
a.scenic_id,
|
||||
a.user_id,
|
||||
a.buy_quantity,
|
||||
a.total_price,
|
||||
a.order_source,
|
||||
a.payment_type,
|
||||
a.payment_method,
|
||||
a.payment_time,
|
||||
a.refund_status,
|
||||
a.refund_time,
|
||||
a.verification_type,
|
||||
a.verification_time,
|
||||
a.create_by,
|
||||
a.create_time,
|
||||
a.update_by,
|
||||
a.update_time,
|
||||
a.del_flag,
|
||||
CASE
|
||||
WHEN a.user_id = 0 THEN
|
||||
a.user_name ELSE u.`name`
|
||||
END userName,
|
||||
u.mobile AS mobilePhone,
|
||||
CASE
|
||||
WHEN a.user_id = 0 THEN
|
||||
a.identity_card ELSE u.id_card
|
||||
END identityCard,
|
||||
zs.scenic_name AS scenicName,
|
||||
a.trade_session,
|
||||
a.tour_id,
|
||||
a.tourist_source,
|
||||
a.tours_num,
|
||||
a.travel_agency_id,
|
||||
a.payment_scene
|
||||
FROM
|
||||
zdy_ticket_order a
|
||||
LEFT JOIN zdy_user u ON u.id = a.user_id
|
||||
LEFT JOIN zdy_scenic zs ON zs.id = a.scenic_id
|
||||
<where>
|
||||
a.del_flag = '0'
|
||||
<if test="orderCode != null and orderCode != ''">
|
||||
and a.order_code = #{orderCode}
|
||||
</if>
|
||||
<if test="orderPrepayId != null and orderPrepayId != ''">
|
||||
and a.order_prepay_id = #{orderPrepayId}
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
and a.user_id = #{userId}
|
||||
</if>
|
||||
<if test="paymentType != null and paymentType != ''">
|
||||
and a.payment_type = #{paymentType}
|
||||
</if>
|
||||
<if test="paymentMethod != null and paymentMethod != ''">
|
||||
and a.payment_method = #{paymentMethod}
|
||||
</if>
|
||||
<if test="orderSource != null and orderSource != ''">
|
||||
and a.order_source = #{orderSource}
|
||||
</if>
|
||||
<if test="travelAgencyId != null ">
|
||||
and a.travel_agency_id = #{travelAgencyId}
|
||||
</if>
|
||||
<if test="buyer != null and buyer != ''">
|
||||
and (a.user_name like concat('%', #{buyer}, '%') or u.name like concat('%', #{buyer}, '%'))
|
||||
</if>
|
||||
<if test="noOrderSource != null and noOrderSource != ''">
|
||||
and a.order_source != #{noOrderSource}
|
||||
</if>
|
||||
AND a.id IN (SELECT DISTINCT item.order_id
|
||||
FROM
|
||||
zdy_ticket_order_detail detail
|
||||
LEFT JOIN zdy_ticket_order_item item ON item.id = detail.order_item_id
|
||||
LEFT JOIN zdy_user_tourist ut ON ut.id = detail.user_tourist_id
|
||||
left join sys_dept d on d.dept_id = item.dept_id
|
||||
<where>
|
||||
<if test="verificationType != null and verificationType != ''">
|
||||
and detail.verification_type = #{verificationType}
|
||||
</if>
|
||||
<if test="verificationCode != null and verificationCode != ''">
|
||||
and (detail.verification_code = #{verificationCode} or item.order_code = #{verificationCode})
|
||||
</if>
|
||||
<if test="orderStartTime != null and orderEndTime != null">
|
||||
and detail.order_time between #{orderStartTime} and #{orderEndTime}
|
||||
</if>
|
||||
<if test="userName != null and userName != ''">
|
||||
and (detail.user_name like concat('%', #{userName}, '%') or ut.`name` like concat('%', #{userName},
|
||||
'%') or item.user_name like concat('%', #{userName}, '%'))
|
||||
</if>
|
||||
<if test="mobilePhone != null and mobilePhone != ''">
|
||||
and ut.mobile = #{mobilePhone}
|
||||
</if>
|
||||
<if test="identityCard != null and identityCard != ''">
|
||||
and (detail.identity_card = #{identityCard} or ut.id_card = #{identityCard} or item.identity_card =
|
||||
#{identityCard})
|
||||
</if>
|
||||
<if test="refundStatus != null and refundStatus != ''">
|
||||
and detail.refund_status IN ( 0, 100, 3 )
|
||||
</if>
|
||||
<if test="ticketName != null and ticketName != ''">
|
||||
and item.ticket_name like concat('%', #{ticketName}, '%')
|
||||
</if>
|
||||
<if test="classifyList != null and classifyList != ''">
|
||||
and (item.classify in
|
||||
<foreach item="classify" collection="classifyList" open="(" separator="," close=")">
|
||||
#{classify}
|
||||
</foreach>
|
||||
)
|
||||
</if>
|
||||
<if test="activationStatus != null and activationStatus != ''">
|
||||
and detail.activation_status = #{activationStatus}
|
||||
</if>
|
||||
<if test="activationStartTime != null and activationEndTime != null">
|
||||
and detail.activation_time between #{activationStartTime} and #{activationEndTime}
|
||||
</if>
|
||||
${params.dataScope}
|
||||
</where>
|
||||
)
|
||||
</where>
|
||||
order by a.id desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectZdyTicketOrderListNoDataScope" parameterType="com.zhwl.ticket.order.dto.ZdyTicketOrderDto"
|
||||
resultMap="ZdyTicketOrderResult">
|
||||
SELECT
|
||||
a.id,
|
||||
a.order_code,
|
||||
a.order_prepay_id,
|
||||
a.scenic_id,
|
||||
a.user_id,
|
||||
a.buy_quantity,
|
||||
a.total_price,
|
||||
a.order_source,
|
||||
a.payment_type,
|
||||
a.payment_method,
|
||||
a.payment_time,
|
||||
a.refund_status,
|
||||
a.refund_time,
|
||||
a.verification_type,
|
||||
a.verification_time,
|
||||
a.create_by,
|
||||
a.create_time,
|
||||
a.update_by,
|
||||
a.update_time,
|
||||
a.del_flag,
|
||||
CASE
|
||||
WHEN a.user_id = 0 THEN
|
||||
a.user_name ELSE u.`name`
|
||||
END userName,
|
||||
u.mobile AS mobilePhone,
|
||||
CASE
|
||||
WHEN a.user_id = 0 THEN
|
||||
a.identity_card ELSE u.id_card
|
||||
END identityCard,
|
||||
zs.scenic_name AS scenicName,
|
||||
a.trade_session,
|
||||
a.tour_id,
|
||||
a.tourist_source,
|
||||
a.tours_num,
|
||||
a.travel_agency_id,
|
||||
a.payment_scene
|
||||
FROM
|
||||
zdy_ticket_order a
|
||||
LEFT JOIN zdy_user u ON u.id = a.user_id
|
||||
LEFT JOIN zdy_scenic zs ON zs.id = a.scenic_id
|
||||
<where>
|
||||
a.del_flag = '0'
|
||||
<if test="orderCode != null and orderCode != ''">
|
||||
and a.order_code = #{orderCode}
|
||||
</if>
|
||||
<if test="orderPrepayId != null and orderPrepayId != ''">
|
||||
and a.order_prepay_id = #{orderPrepayId}
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
and a.user_id = #{userId}
|
||||
</if>
|
||||
<if test="paymentType != null and paymentType != ''">
|
||||
and a.payment_type = #{paymentType}
|
||||
</if>
|
||||
<if test="paymentMethod != null and paymentMethod != ''">
|
||||
and a.payment_method = #{paymentMethod}
|
||||
</if>
|
||||
<if test="orderSource != null and orderSource != ''">
|
||||
and a.order_source = #{orderSource}
|
||||
</if>
|
||||
<if test="travelAgencyId != null ">
|
||||
and a.travel_agency_id = #{travelAgencyId}
|
||||
</if>
|
||||
<if test="buyer != null and buyer != ''">
|
||||
and (a.user_name like concat('%', #{buyer}, '%') or u.name like concat('%', #{buyer}, '%'))
|
||||
</if>
|
||||
<if test="noOrderSource != null and noOrderSource != ''">
|
||||
and a.order_source != #{noOrderSource}
|
||||
</if>
|
||||
AND a.id IN (SELECT DISTINCT item.order_id
|
||||
FROM
|
||||
zdy_ticket_order_detail detail
|
||||
LEFT JOIN zdy_ticket_order_item item ON item.id = detail.order_item_id
|
||||
LEFT JOIN zdy_user_tourist ut ON ut.id = detail.user_tourist_id
|
||||
left join sys_dept d on d.dept_id = item.dept_id
|
||||
<where>
|
||||
<if test="verificationType != null and verificationType != ''">
|
||||
and detail.verification_type = #{verificationType}
|
||||
</if>
|
||||
<if test="verificationCode != null and verificationCode != ''">
|
||||
and (detail.verification_code = #{verificationCode} or item.order_code = #{verificationCode})
|
||||
</if>
|
||||
<if test="orderStartTime != null and orderEndTime != null">
|
||||
and detail.order_time between #{orderStartTime} and #{orderEndTime}
|
||||
</if>
|
||||
<if test="userName != null and userName != ''">
|
||||
and (detail.user_name like concat('%', #{userName}, '%') or ut.`name` like concat('%', #{userName},
|
||||
'%') or item.user_name like concat('%', #{userName}, '%'))
|
||||
</if>
|
||||
<if test="mobilePhone != null and mobilePhone != ''">
|
||||
and ut.mobile = #{mobilePhone}
|
||||
</if>
|
||||
<if test="identityCard != null and identityCard != ''">
|
||||
and (detail.identity_card = #{identityCard} or ut.id_card = #{identityCard} or item.identity_card =
|
||||
#{identityCard})
|
||||
</if>
|
||||
<if test="refundStatus != null and refundStatus != ''">
|
||||
and detail.refund_status IN ( 0, 100, 3 )
|
||||
</if>
|
||||
<if test="ticketName != null and ticketName != ''">
|
||||
and item.ticket_name like concat('%', #{ticketName}, '%')
|
||||
</if>
|
||||
<if test="classifyList != null and classifyList != ''">
|
||||
and (item.classify in
|
||||
<foreach item="classify" collection="classifyList" open="(" separator="," close=")">
|
||||
#{classify}
|
||||
</foreach>
|
||||
)
|
||||
</if>
|
||||
<if test="activationStatus != null and activationStatus != ''">
|
||||
and detail.activation_status = #{activationStatus}
|
||||
</if>
|
||||
<if test="activationStartTime != null and activationEndTime != null">
|
||||
and detail.activation_time between #{activationStartTime} and #{activationEndTime}
|
||||
</if>
|
||||
</where>
|
||||
)
|
||||
</where>
|
||||
order by a.id desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectZdyTicketOrderRefundList" parameterType="com.zhwl.ticket.order.dto.ZdyTicketOrderRefundDto"
|
||||
resultMap="ZdyTicketOrderRefundResult">
|
||||
<include refid="selectZdyTicketOrderRefundVo"/>
|
||||
<where>
|
||||
tor.del_flag = '0'
|
||||
<if test="orderId != null and orderId != ''">
|
||||
and tor.order_id = #{orderId}
|
||||
</if>
|
||||
<if test="refundCode != null and refundCode != ''">
|
||||
and tor.refund_code = #{refundCode}
|
||||
</if>
|
||||
<if test="orderPrepayId != null ">
|
||||
and tor.order_prepay_id = #{orderPrepayId}
|
||||
</if>
|
||||
<if test="userId != null ">
|
||||
and tor.user_id = #{userId}
|
||||
</if>
|
||||
<if test="refundStatus != null and refundStatus != ''">
|
||||
and tor.refund_status = #{refundStatus}
|
||||
</if>
|
||||
<if test="orderCode != null and orderCode != ''">
|
||||
and o.order_code = #{orderCode}
|
||||
</if>
|
||||
<if test="userName != null and userName != ''">
|
||||
and (us.name like concat('%',#{userName},'%') or us.nickname like concat('%',#{userName},'%'))
|
||||
</if>
|
||||
<if test="refundStartTime != null and refundEndTime != null">
|
||||
and tor.create_time between #{refundStartTime} and #{refundEndTime}
|
||||
</if>
|
||||
<if test="tourId != null">
|
||||
and tor.tour_id = #{tourId}
|
||||
</if>
|
||||
<if test="refundSource != null and refundSource != ''">
|
||||
and tor.refund_source = #{refundSource}
|
||||
</if>
|
||||
<if test="travelAgencyId != null">
|
||||
and o.travel_agency_id = #{travelAgencyId}
|
||||
</if>
|
||||
AND tor.id IN (SELECT DISTINCT item.refund_id
|
||||
FROM
|
||||
zdy_ticket_order_refund_item item
|
||||
left join sys_dept d on d.dept_id = item.dept_id
|
||||
<where>
|
||||
${params.dataScope}
|
||||
</where>
|
||||
)
|
||||
</where>
|
||||
order by tor.create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
<sql id="selectZdyTicketOrderRefundVo">
|
||||
SELECT tor.id,
|
||||
tor.order_id,
|
||||
tor.refund_code,
|
||||
tor.order_prepay_id,
|
||||
tor.user_id,
|
||||
tor.refund_quantity,
|
||||
tor.total_price,
|
||||
tor.total_fee,
|
||||
tor.actual_price,
|
||||
tor.refund_status,
|
||||
tor.refund_time,
|
||||
tor.personal_refund_type,
|
||||
tor.business_refund_type,
|
||||
tor.refund_describe,
|
||||
tor.create_time,
|
||||
tor.update_time,
|
||||
tor.create_by,
|
||||
tor.tour_id,
|
||||
o.order_code as orderCode,
|
||||
tor.refund_source,
|
||||
o.travel_agency_id,
|
||||
o.create_time orderTime,
|
||||
CASE
|
||||
WHEN (us.NAME IS NULL OR us.NAME = '') THEN
|
||||
us.nickname
|
||||
ELSE us.NAME
|
||||
END AS userName,
|
||||
us.mobile AS userPhone
|
||||
FROM zdy_ticket_order_refund tor
|
||||
LEFT JOIN zdy_ticket_order o ON o.id = tor.order_id
|
||||
LEFT JOIN zdy_user us ON us.id = tor.user_id
|
||||
</sql>
|
||||
|
||||
|
||||
<select id="selectZdyTicketOrderRefundDetailByRefundId" parameterType="Long"
|
||||
resultMap="ZdyTicketOrderRefundDetailResult">
|
||||
select *
|
||||
from zdy_ticket_order_refund_detail
|
||||
where refund_item_id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectZdyTicketOrderRefundListNoDataScope"
|
||||
parameterType="com.zhwl.ticket.order.dto.ZdyTicketOrderRefundDto"
|
||||
resultMap="ZdyTicketOrderRefundResult">
|
||||
<include refid="selectZdyTicketOrderRefundVo"/>
|
||||
<where>
|
||||
tor.del_flag = '0'
|
||||
<if test="orderId != null and orderId != ''">
|
||||
and tor.order_id = #{orderId}
|
||||
</if>
|
||||
<if test="refundCode != null and refundCode != ''">
|
||||
and tor.refund_code = #{refundCode}
|
||||
</if>
|
||||
<if test="orderPrepayId != null ">
|
||||
and tor.order_prepay_id = #{orderPrepayId}
|
||||
</if>
|
||||
<if test="userId != null ">
|
||||
and tor.user_id = #{userId}
|
||||
</if>
|
||||
<if test="refundStatus != null and refundStatus != ''">
|
||||
and tor.refund_status = #{refundStatus}
|
||||
</if>
|
||||
<if test="orderCode != null and orderCode != ''">
|
||||
and o.order_code = #{orderCode}
|
||||
</if>
|
||||
<if test="userName != null and userName != ''">
|
||||
and (us.name like concat('%',#{userName},'%') or us.nickname like concat('%',#{userName},'%'))
|
||||
</if>
|
||||
<if test="refundStartTime != null and refundEndTime != null">
|
||||
and tor.create_time between #{refundStartTime} and #{refundEndTime}
|
||||
</if>
|
||||
<if test="tourId != null">
|
||||
and tor.tour_id = #{tourId}
|
||||
</if>
|
||||
<if test="refundSource != null and refundSource != ''">
|
||||
and tor.refund_source = #{refundSource}
|
||||
</if>
|
||||
<if test="travelAgencyId != null">
|
||||
and o.travel_agency_id = #{travelAgencyId}
|
||||
</if>
|
||||
AND tor.id IN (SELECT DISTINCT item.refund_id
|
||||
FROM
|
||||
zdy_ticket_order_refund_item item
|
||||
left join sys_dept d on d.dept_id = item.dept_id
|
||||
)
|
||||
</where>
|
||||
order by tor.create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectZdyTicketOrderRefundItemByRefundId" parameterType="Long"
|
||||
resultMap="ZdyTicketOrderRefundItemResult">
|
||||
SELECT tor.id,
|
||||
tor.order_item_id,
|
||||
tor.refund_id,
|
||||
tor.ticket_id,
|
||||
tor.refund_quantity,
|
||||
tor.total_price,
|
||||
tor.total_fee,
|
||||
tor.actual_price,
|
||||
tor.create_time,
|
||||
tor.update_time,
|
||||
tor.ticket_classify,
|
||||
tor.ticket_name,
|
||||
tor.dept_id,
|
||||
o.order_code as orderCode
|
||||
FROM zdy_ticket_order_refund_item tor
|
||||
LEFT JOIN zdy_ticket_order_item o ON o.id = tor.order_item_id
|
||||
where tor.refund_id = #{id}
|
||||
</select>
|
||||
</mapper>
|
Reference in New Issue
Block a user