delete from course_order
where id = #{id,jdbcType=INTEGER}
insert into course_order (id, cost, course_id,
course_name, create_time, user_id,
status)
values (#{id,jdbcType=INTEGER}, #{cost,jdbcType=INTEGER}, #{courseId,jdbcType=INTEGER},
#{courseName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{userId,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER})
update course_order
set cost = #{cost,jdbcType=INTEGER},
course_id = #{courseId,jdbcType=INTEGER},
course_name = #{courseName,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
user_id = #{userId,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}