id, root_source_id, channel, partner_id, account_id, creative_id, article_id, card_id,
package_id, `status`, is_delete, create_time, update_time
update external_channel
set `status` = 2,
update_time = NOW()
where `status` = 0
and is_delete = 0
and create_time < #{timeoutTime}
insert ignore into external_channel (
root_source_id,
`status`,
is_delete,
create_time,
update_time
) values
(
#{item.rootSourceId,jdbcType=VARCHAR},
0,
0,
#{item.createTime,jdbcType=TIMESTAMP},
#{item.updateTime,jdbcType=TIMESTAMP}
)
update external_channel
set video_id = #{item.videoId,jdbcType=BIGINT},
update_time = NOW()
where id = #{item.id,jdbcType=BIGINT}