|
@@ -148,4 +148,67 @@
|
|
|
(payment_status = 'payment_status_to_be_paid' or payment_status = 'payment_status_have_paid')
|
|
(payment_status = 'payment_status_to_be_paid' or payment_status = 'payment_status_have_paid')
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
+ <select id="selectYueQiuList" parameterType="VipCardLog" resultType="map">
|
|
|
|
|
+ select
|
|
|
|
|
+ a.id orderId,
|
|
|
|
|
+ a.user_id userId,
|
|
|
|
|
+ a.bus_id busId,
|
|
|
|
|
+ a.order_type orderType,
|
|
|
|
|
+ a.payment_status paymentStatus,
|
|
|
|
|
+ a.create_time createTime,
|
|
|
|
|
+ a.payment_type paymentType,
|
|
|
|
|
+ a.payment_time paymentTime,
|
|
|
|
|
+ a.verify_time verifyTime,
|
|
|
|
|
+ a.practical_money parcticalMoney,
|
|
|
|
|
+ d.venue_name venueName,
|
|
|
|
|
+ d.address,
|
|
|
|
|
+ c.name siteName,
|
|
|
|
|
+ b.site_type siteType,
|
|
|
|
|
+ b.session session,
|
|
|
|
|
+ b.ticket_date ticketDate
|
|
|
|
|
+ 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
|
|
|
|
|
+ left join beilv_venue d on b.venue_id = d.id
|
|
|
|
|
+ <where>
|
|
|
|
|
+ and (payment_status = 'payment_status_have_paid' or payment_status = 'payment_status_verification')
|
|
|
|
|
+ <if test="userId ! =null and userId ! =''">
|
|
|
|
|
+ and a.user_id = #{userId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="selectCanSaiList" parameterType="VipCardLog" resultType="map">
|
|
|
|
|
+ select
|
|
|
|
|
+ a.id orderId,
|
|
|
|
|
+ a.user_id userId,
|
|
|
|
|
+ a.bus_id busId,
|
|
|
|
|
+ a.order_type orderType,
|
|
|
|
|
+ a.payment_status paymentStatus,
|
|
|
|
|
+ a.create_time createTime,
|
|
|
|
|
+ a.payment_type paymentType,
|
|
|
|
|
+ a.payment_time paymentTime,
|
|
|
|
|
+ a.verify_time verifyTime,
|
|
|
|
|
+ a.practical_money parcticalMoney,
|
|
|
|
|
+ b.competition_title competitionTitle,
|
|
|
|
|
+ b.competition_type competitionType,
|
|
|
|
|
+ b.team_max teamMax,
|
|
|
|
|
+ b.competition_place competitionPlace,
|
|
|
|
|
+ b.apply_start_time applyStartTime,
|
|
|
|
|
+ b.apply_end_time applyEndTime,
|
|
|
|
|
+ b.apply_before_time applyBeforeTime,
|
|
|
|
|
+ b.registration_notes registrationNotes,
|
|
|
|
|
+ b.competition_state competitionState,
|
|
|
|
|
+ b.publish_time publishTime,
|
|
|
|
|
+ b.competition_img competitionImg
|
|
|
|
|
+ from beilv_vip_card_log a
|
|
|
|
|
+ left join beilv_competition b on a.bus_id = b.id
|
|
|
|
|
+ <where>
|
|
|
|
|
+ and (payment_status = 'payment_status_have_paid' or payment_status = 'payment_status_verification')
|
|
|
|
|
+ <if test="userId ! =null and userId ! =''">
|
|
|
|
|
+ and a.user_id = #{userId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
</mapper>
|
|
</mapper>
|