|
|
@@ -20,16 +20,17 @@
|
|
|
<result property="originalPrice" column="original_price"/>
|
|
|
<result property="memberPrice" column="member_price"/>
|
|
|
<result property="paymentId" column="payment_id"/>
|
|
|
+ <result property="voucherPrice" column="voucher_price"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectVipCardLogVo">
|
|
|
select a.id, a.user_id, a.bus_id, a.order_type, a.payment_status, a.create_time, a.payment_type, a.payment_time, a.cancellation_time,
|
|
|
- a.verify_time, a.refund_time, a.practical_money, a.original_price, a.member_price, a.payment_id from beilv_vip_card_log a
|
|
|
+ a.verify_time, a.refund_time, a.practical_money, a.original_price, a.member_price, a.payment_id, a.voucher_price from beilv_vip_card_log a
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectVipCardLogList" parameterType="VipCardLog" resultMap="VipCardLogResult">
|
|
|
select a.id, a.user_id, a.bus_id, a.order_type, a.payment_status, a.create_time, a.payment_type, a.payment_time, a.cancellation_time,
|
|
|
- a.verify_time, a.refund_time, a.practical_money, a.original_price, a.member_price, a.payment_id, b.username, b.mobile from beilv_vip_card_log a
|
|
|
+ a.verify_time, a.refund_time, a.practical_money, a.original_price, a.member_price, a.payment_id, b.username, b.mobile, a.voucher_price from beilv_vip_card_log a
|
|
|
left join sys_member b on a.user_id = b.id
|
|
|
<where>
|
|
|
<if test="username != null and username != ''">and b.username like concat('%',#{username},'%')</if>
|
|
|
@@ -75,6 +76,7 @@
|
|
|
<if test="paymentId != null">payment_id,</if>
|
|
|
<if test="competitionName != null">competition_name,</if>
|
|
|
<if test="competitionMobile != null">competition_mobile,</if>
|
|
|
+ <if test="voucherPrice != null">voucher_price,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
|
@@ -94,6 +96,7 @@
|
|
|
<if test="paymentId != null">#{paymentId},</if>
|
|
|
<if test="competitionName != null">#{competitionName},</if>
|
|
|
<if test="competitionMobile != null">#{competitionMobile},</if>
|
|
|
+ <if test="voucherPrice != null">#{voucherPrice},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -115,6 +118,7 @@
|
|
|
<if test="memberPrice != null">member_price = #{memberPrice},</if>
|
|
|
<if test="paymentId != null">payment_id = #{paymentId},</if>
|
|
|
<if test="refundPrice != null">refund_price = #{refundPrice},</if>
|
|
|
+ <if test="voucherPrice != null">voucher_price = #{voucherPrice},</if>
|
|
|
</trim>
|
|
|
<where>
|
|
|
<if test="id != null and id != ''">
|
|
|
@@ -170,7 +174,8 @@
|
|
|
c.name siteName,
|
|
|
b.site_type siteType,
|
|
|
b.session session,
|
|
|
- b.ticket_date ticketDate
|
|
|
+ b.ticket_date ticketDate,
|
|
|
+ a.voucher_price voucherPrice
|
|
|
from beilv_vip_card_log a
|
|
|
left join beilv_admission_ticket b on a.bus_id = b.id
|
|
|
left join beilv_site c on b.site_id = c.id
|
|
|
@@ -207,6 +212,7 @@
|
|
|
b.competition_state competitionState,
|
|
|
b.publish_time publishTime,
|
|
|
b.competition_img competitionImg,
|
|
|
+ a.voucher_price voucherPrice
|
|
|
COALESCE(a.competition_name, c.username) AS competitionName,
|
|
|
COALESCE(a.competition_mobile, c.mobile) AS competitionMobile
|
|
|
from beilv_vip_card_log a
|