|
@@ -18,6 +18,12 @@
|
|
|
<result property="competitionId" column="competition_id"/>
|
|
|
<result property="orderType" column="order_type"/>
|
|
|
<result property="refundInstructions" column="refund_instructions"/>
|
|
|
+ <result property="verificationTime" column="verification_time"/>
|
|
|
+ <result property="amountActuallyPaid" column="amount_actually_paid"/>
|
|
|
+ <result property="competitionTitle" column="competition_title"/>
|
|
|
+ <result property="competitionExpense" column="competition_expense"/>
|
|
|
+ <result property="viewingTicket" column="viewing_ticket"/>
|
|
|
+ <result property="competitionImg" column="competition_img"/>
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
@@ -59,6 +65,7 @@
|
|
|
<if test="paymentTime != null">payment_time = #{paymentTime},</if>
|
|
|
<if test="cancellationTime != null">cancellation_time = #{cancellationTime},</if>
|
|
|
<if test="refundTime != null">refund_time = #{refundTime},</if>
|
|
|
+ <if test="verificationTime != null">verification_time = #{verificationTime},</if>
|
|
|
<if test="paymentStatus != null">payment_status = #{paymentStatus},</if>
|
|
|
<if test="refundInstructions != null">refund_instructions = #{refundInstructions},</if>
|
|
|
</trim>
|
|
@@ -74,18 +81,20 @@
|
|
|
|
|
|
<select id="getStadimList" parameterType="stadiumBO" resultMap="StadiumResult">
|
|
|
select
|
|
|
- id, user_id, contact_people, contact_number, registration_time, payment_time,
|
|
|
- cancellation_time, refund_time, payment_status, order_id, competition_id, order_type, refund_instructions
|
|
|
- from beilv_book_a_race
|
|
|
+ ar.id, ar.user_id, ar.contact_people, ar.contact_number, ar.registration_time, ar.payment_time,
|
|
|
+ ar.cancellation_time, ar.refund_time, ar.payment_status, ar.order_id, ar.competition_id, ar.order_type, ar.refund_instructions,
|
|
|
+ ar.verification_time, ar.amount_actually_paid ,bc.competition_title, bc.competition_expense, bc.viewing_ticket, bc.competition_img
|
|
|
+ from beilv_book_a_race ar
|
|
|
+ left join beilv_competition bc on ar.competition_id = bc.id
|
|
|
<where>
|
|
|
<if test="userId != null and userId != ''">
|
|
|
- and user_id = #{userId}
|
|
|
+ and ar.user_id = #{userId}
|
|
|
</if>
|
|
|
<if test="orderType != null and orderType != ''">
|
|
|
- and order_type = #{orderType}
|
|
|
+ and ar.order_type = #{orderType}
|
|
|
</if>
|
|
|
<if test="paymentStatus != null and paymentStatus != ''">
|
|
|
- and payment_status = #{paymentStatus}
|
|
|
+ and ar.payment_status = #{paymentStatus}
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|