select log_id, user_id, video_id, create_time, qw_external_contact_id, internet_traffic, qw_user_id, company_user_id, company_id, course_id, uu_id, project, period_id from fs_course_traffic_log insert into fs_course_traffic_log user_id, video_id, create_time, qw_external_contact_id, internet_traffic, qw_user_id, company_user_id, company_id, course_id, uu_id, #{userId}, #{videoId}, #{createTime}, #{qwExternalContactId}, #{internetTraffic}, #{qwUserId}, #{companyUserId}, #{companyId}, #{courseId}, #{uuId}, insert into fs_course_traffic_log user_id, video_id, create_time, qw_external_contact_id, internet_traffic, qw_user_id, company_user_id, company_id, course_id, uu_id, #{userId}, #{videoId}, #{createTime}, #{qwExternalContactId}, #{internetTraffic}, #{qwUserId}, #{companyUserId}, #{companyId}, #{courseId}, #{uuId}, on duplicate key update internet_traffic = #{internetTraffic}, update fs_course_traffic_log user_id = #{userId}, video_id = #{videoId}, create_time = #{createTime}, qw_external_contact_id = #{qwExternalContactId}, internet_traffic = #{internetTraffic}, qw_user_id = #{qwUserId}, company_user_id = #{companyUserId}, company_id = #{companyId}, course_id = #{courseId}, uu_id = #{uuId}, where log_id = #{logId} delete from fs_course_traffic_log where log_id = #{logId} delete from fs_course_traffic_log where log_id in #{logId} insert into fs_course_traffic_log ( log_id, user_id, video_id, create_time, qw_external_contact_id, internet_traffic, qw_user_id, company_user_id, company_id, course_id, uu_id, project, period_id ) values (#{item.logId},#{item.userId},#{item.videoId},#{item.createTime},#{item.qwExternalContactId},#{item.internetTraffic},#{item.qwUserId} ,#{item.companyUserId},#{item.companyId},#{item.courseId},#{item.uuId},#{item.project},#{item.periodId})