select chapter_id, course_id, pid, level, type, chapter_name, url_type, chapter_url, video_duration, is_video, remarks, sort, status, publication_time, publisher, create_time, create_by, update_time, update_by, delete_time, delete_by, del_flag, views_num from tb_course_chapter
insert into tb_course_chapter
course_id,
pid,
level,
type,
chapter_name,
url_type,
chapter_url,
video_duration,
is_video,
remarks,
sort,
status,
publication_time,
publisher,
create_time,
create_by,
update_time,
update_by,
delete_time,
delete_by,
del_flag,
views_num,
#{courseId},
#{pid},
#{level},
#{type},
#{chapterName},
#{urlType},
#{chapterUrl},
#{videoDuration},
#{isVideo},
#{remarks},
#{sort},
#{status},
#{publicationTime},
#{publisher},
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
#{deleteTime},
#{deleteBy},
#{delFlag},
#{viewsNum},
update tb_course_chapter
course_id = #{courseId},
pid = #{pid},
level = #{level},
type = #{type},
chapter_name = #{chapterName},
url_type = #{urlType},
chapter_url = #{chapterUrl},
video_duration = #{videoDuration},
is_video = #{isVideo},
remarks = #{remarks},
sort = #{sort},
status = #{status},
publication_time = #{publicationTime},
publisher = #{publisher},
create_time = #{createTime},
create_by = #{createBy},
update_time = #{updateTime},
update_by = #{updateBy},
delete_time = #{deleteTime},
delete_by = #{deleteBy},
del_flag = #{delFlag},
views_num = #{viewsNum},
where chapter_id = #{chapterId}
delete from tb_course_chapter where chapter_id = #{chapterId}
delete from tb_course_chapter where chapter_id in
#{chapterId}