select id, dept_id, user_id,type, user_name,drive_time,stu_sign_state,coach_sign_state,stu_signin_time, stu_signout_time,coach_signin_time,coach_signout_time,order_time, time_period, coach_id, coach_name, account_type, create_time, creator, update_time, updater from drive_school_reservation_course
insert into drive_school_reservation_course
id,
dept_id,
user_id,
user_name,
order_time,
time_period,
coach_id,
coach_name,
account_type,
type,
create_time,
creator,
update_time,
updater,
#{id},
#{deptId},
#{userId},
#{userName},
#{orderTime},
#{timePeriod},
#{coachId},
#{coachName},
#{accountType},
#{type},
#{createTime},
#{creator},
#{updateTime},
#{updater},
insert into drive_school_reservation_course (user_id, order_time, time_period, coach_name, create_time) values (#{userId}, #{currentDate}, #{period}, #{instructorName}, now())
update drive_school_reservation_course
dept_id = #{deptId},
user_id = #{userId},
user_name = #{userName},
stu_sign_state = #{stuSignState},
coach_sign_state = #{coachSignState},
stu_signin_time = #{stuSigninTime},
stu_signout_time = #{stuSignoutTime},
coach_signin_time = #{coachSigninTime},
coach_signout_time = #{coachSignoutTime},
drive_time = #{driveTime},
order_time = #{orderTime},
time_period = #{timePeriod},
coach_id = #{coachId},
coach_name = #{coachName},
account_type = #{accountType},
create_time = #{createTime},
creator = #{creator},
update_time = #{updateTime},
updater = #{updater},
audit_status = #{auditStatus},
refuse_reason = #{refuseReason},
where id = #{id}
update drive_school_reservation_course set coach_name = #{coachName} where id = #{id}
delete from drive_school_reservation_course where id = #{id}
delete from drive_school_reservation_course where id in
#{id}
update drive_school_reservation_course
refuse_reason = #{refuseReason},
audit_status = #{auditStatus},
where id = #{id}