insert into content_platform_gzh_plan (`type`, publish_stage, account_id, scene, external_id, select_video_type, stage_publish_status, create_account_id, create_timestamp, update_timestamp) values (#{record.type}, #{record.publishStage}, #{record.accountId}, #{record.scene}, #{record.externalId}, #{record.selectVideoType}, #{record.stagePublishStatus}, #{record.createAccountId}, #{record.createTimestamp}, #{record.updateTimestamp}) insert into content_platform_video (dt, video_id, category, title, cover, video, score, create_timestamp) values (#{item.dt}, #{item.videoId}, #{item.category}, #{item.title}, #{item.cover}, #{item.video}, #{item.score}, #{item.createTimestamp}) insert into content_platform_illegal_video (date_str, video_id, content, title, create_timestamp) values (#{item.dateStr}, #{item.videoId}, #{item.content}, #{item.title}, #{item.createTimestamp}) insert into content_platform_video_agg (dt, video_id, category, title, cover, video, score, create_timestamp) values (#{item.dt}, #{item.videoId}, #{item.category}, #{item.title}, #{item.cover}, #{item.video}, #{item.score}, #{item.createTimestamp}) insert into content_platform_qw_plan (`type`, scene, page_url, root_source_id, create_account_id, create_timestamp, update_timestamp ) values (#{item.type}, #{item.scene}, #{item.pageUrl}, #{item.rootSourceId}, #{item.createAccountId}, #{item.createTimestamp}, #{item.updateTimestamp} ) insert into content_platform_qw_plan (`type`, sub_channel, scene, page_url, root_source_id, create_account_id, create_timestamp, update_timestamp) values (#{record.type}, #{record.subChannel}, #{record.scene}, #{record.pageUrl}, #{record.rootSourceId}, #{record.createAccountId}, #{record.createTimestamp}, #{record.updateTimestamp}) update content_platform_video set status = #{status}, update_timestamp = #{now} where video_id = #{videoId} and status = #{oldStatus} update content_platform_video_agg set status = #{status}, update_timestamp = #{now} where video_id = #{videoId} and status = #{oldStatus} delete from content_platform_video where dt = #{dt} delete from content_platform_video_agg where dt = #{dt} delete from content_platform_video_datastat_agg where dt = #{dt} delete from content_platform_video_datastat where dt = #{dt} insert into content_platform_video_datastat (dt, video_id, `type`, channel, first_level, fission0, fission_rate, create_timestamp) values (#{item.dt}, #{item.videoId}, #{item.type}, #{item.channel}, #{item.firstLevel}, #{item.fission0}, #{item.fissionRate}, #{item.createTimestamp}) insert into content_platform_video_datastat_agg (dt, video_id, `type`, channel, first_level, fission0, fission_rate, create_timestamp) values (#{item.dt}, #{item.videoId}, #{item.type}, #{item.channel}, #{item.firstLevel}, #{item.fission0}, #{item.fissionRate}, #{item.createTimestamp}) update content_platform_video set status = 0, update_timestamp = #{now} where dt = #{dt} and video_id not in #{item}