|
@@ -21,6 +21,11 @@
|
|
|
<result property="clubCardId" column="club_card_id"/>
|
|
|
<result property="refund" column="refund"/>
|
|
|
<result property="verificationTime" column="verification_time"/>
|
|
|
+
|
|
|
+ <result property="session" column="session"/>
|
|
|
+ <result property="ticketDate" column="ticket_date"/>
|
|
|
+ <result property="siteName" column="site_name"/>
|
|
|
+ <result property="cover" column="cover"/>
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
@@ -81,18 +86,21 @@
|
|
|
|
|
|
<select id="getCourseList" parameterType="bootACourseBO" resultMap="BootACourseResult">
|
|
|
select
|
|
|
- user_id, contact_people, contact_number, registration_time, payment_time, cancellation_time, refund_time,
|
|
|
- payment_status, order_id, ticket_id, order_type, refund_instructions, club_card_id, refund, verification_time
|
|
|
- from beilv_book_a_course
|
|
|
+ bbac.user_id, bbac.contact_people, bbac.contact_number, bbac.registration_time, bbac.payment_time, bbac.cancellation_time, bbac.refund_time,
|
|
|
+ bbac.payment_status, bbac.order_id, bbac.ticket_id, bbac.order_type, bbac.refund_instructions, bbac.club_card_id, bbac.refund, bbac.verification_time,
|
|
|
+ bat.session, bat.ticket_date, bs.name as site_name, bs.cover
|
|
|
+ from beilv_book_a_course bbac
|
|
|
+ left join beilv_admission_ticket bat on bbac.ticket_id = bat.id
|
|
|
+ left join beilv_site bs on bat.site_id = bs.id
|
|
|
<where>
|
|
|
<if test="userId != null and userId != ''">
|
|
|
- and user_id = #{userId}
|
|
|
+ and bbac.user_id = #{userId}
|
|
|
</if>
|
|
|
<if test="paymentStatus != null and paymentStatus != ''">
|
|
|
- and paymen_status = #{paymentStatus}
|
|
|
+ and bbac.paymen_status = #{paymentStatus}
|
|
|
</if>
|
|
|
</where>
|
|
|
- order by registration_time desc
|
|
|
+ order by bbac.registration_time desc
|
|
|
</select>
|
|
|
|
|
|
<select id="getCourseInfo" parameterType="bootACourseBO" resultMap="BootACourseResult">
|