select a.id, a.competition_title, a.competition_type, a.person_max, a.team_max,
a.competition_place, a.apply_start_time, a.apply_end_time, a.apply_before_time,
a.competition_maximum, a.competition_expense, a.viewing_ticket,
a.competition_details, a.registration_notes, a.competition_state,
a.create_time, a.create_by, a.create_name, a.update_time, a.update_by, a.update_name, a.publish_time, a.publish_by, a.publish_name, a.competition_img
from beilv_competition a
insert into beilv_competition
competition_title,
competition_type,
person_max,
team_max,
competition_place,
apply_start_time,
apply_end_time,
apply_before_time,
competition_maximum,
competition_expense,
viewing_ticket,
competition_details,
registration_notes,
competition_state,
create_time,
update_time,
publish_time,
create_by,
update_by,
publish_by,
create_name,
update_name,
publish_name,
competition_img,
#{competitionTitle},
#{competitionType},
#{personMax},
#{teamMax},
#{competitionPlace},
#{applyStartTime},
#{applyEndTime},
#{applyBeforeTime},
#{competitionMaximum},
#{competitionExpense},
#{viewingTicket},
#{competitionDetails},
#{registrationNotes},
#{competitionState},
#{createTime},
#{updateTime},
#{publishTime},
#{createBy},
#{updateBy},
#{publishBy},
#{createName},
#{updateName},
#{publishName},
#{competitionImg},
update beilv_competition
competition_title = #{competitionTitle},
competition_type = #{competitionType},
person_max = #{personMax},
team_max = #{teamMax},
competition_place = #{competitionPlace},
apply_start_time = #{applyStartTime},
apply_end_time = #{applyEndTime},
apply_before_time = #{applyBeforeTime},
competition_maximum = #{competitionMaximum},
competition_expense = #{competitionExpense},
viewing_ticket = #{viewingTicket},
competition_details = #{competitionDetails},
registration_notes = #{registrationNotes},
competition_state = #{competitionState},
update_time = #{updateTime},
update_by = #{updateBy},
update_name = #{updateName},
competition_img = #{competitionImg},
where id = #{id}
delete from beilv_competition where id = #{id}
delete from beilv_competition where id in
#{id}
update beilv_competition set
competition_state = #{competitionState},
publish_time = #{publishTime},
publish_by = #{publishBy},
publish_name = #{publishName}
where id = #{id}
update beilv_book_a_race
set payment_status = #{paymentStatus},
verification_time = #{verificationTime}
where
competition_id = #{competitionId}
and
payment_status = 'payment_status_have_paid'