select * from fs_user_course_video
insert into fs_user_course_video
file_id,
title,
description,
video_url,
thumbnail,
duration,
update_time,
create_time,
talent_id,
course_id,
status,
course_sort,
file_name,
is_del,
question_bank_id,
line_one,
line_two,
line_three,
upload_type,
red_packet_money,
file_size,
file_key,
round,
package_json,
is_transcode,
transcode_file_key,
view_start_time,
view_end_time,
last_join_time,
#{fileId},
#{title},
#{description},
#{videoUrl},
#{thumbnail},
#{duration},
#{updateTime},
#{createTime},
#{talentId},
#{courseId},
#{status},
#{courseSort},
#{fileName},
#{isDel},
#{questionBankId},
#{lineOne},
#{lineTwo},
#{lineThree},
#{uploadType},
#{redPacketMoney},
#{fileSize},
#{fileKey},
#{round},
#{packageJson},
#{isTranscode},
#{transcodeFileKey},
#{viewStartTime},
#{viewEndTime},
#{lastJoinTime},
insert into fs_user_course_video
(
title,
video_url,
thumbnail,
duration,
course_id,
status,
course_sort,
file_name,
question_bank_id,
line_one,
line_two,
line_three,
red_packet_money,
file_size,
file_key,
is_transcode
)
values
(
#{item.title},
#{item.videoUrl},
#{item.thumbnail},
#{item.duration},
#{item.courseId},
#{item.status},
#{item.courseSort},
#{item.fileName},
#{item.questionBankId},
#{item.lineOne},
#{item.lineTwo},
#{item.lineThree},
#{item.redPacketMoney},
#{item.fileSize},
#{item.fileKey},
#{item.isTranscode}
)
update fs_user_course_video
file_id = #{fileId},
title = #{title},
description = #{description},
video_url = #{videoUrl},
thumbnail = #{thumbnail},
duration = #{duration},
update_time = #{updateTime},
create_time = #{createTime},
talent_id = #{talentId},
course_id = #{courseId},
status = #{status},
course_sort = #{courseSort},
file_name = #{fileName},
is_del = #{isDel},
question_bank_id = #{questionBankId},
line_one = #{lineOne},
line_two = #{lineTwo},
line_three = #{lineThree},
upload_type = #{uploadType},
red_packet_money = #{redPacketMoney},
file_size = #{fileSize},
file_key = #{fileKey},
round = #{round},
package_json = #{packageJson},
is_transcode = #{isTranscode},
transcode_file_key = #{transcodeFileKey},
view_start_time = #{viewStartTime},
view_end_time = #{viewEndTime},
last_join_time = #{lastJoinTime},
where video_id = #{videoId}
update fs_user_course_video set is_del = 1 where video_id = #{videoId}
update fs_user_course_video set is_del = 1 where video_id in
#{videoId}
update fs_user_course_video set view_start_time = #{viewStartTime},view_end_time = #{viewEndTime},last_join_time = #{lastJoinTime} where video_id in
#{videoId}
update fs_user_course_video set red_packet_money = #{redPacketMoney} where video_id = #{videoId}