<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.tzld.piaoquan.api.dao.mapper.contentplatform.ContentPlatformDemandVideoMapper">
  <resultMap id="BaseResultMap" type="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideo">
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="dt" jdbcType="VARCHAR" property="dt" />
    <result column="online_action" jdbcType="VARCHAR" property="onlineAction" />
    <result column="channel_name" jdbcType="VARCHAR" property="channelName" />
    <result column="crowd_segment" jdbcType="VARCHAR" property="crowdSegment" />
    <result column="channel_level3" jdbcType="VARCHAR" property="channelLevel3" />
    <result column="demand_id" jdbcType="VARCHAR" property="demandId" />
    <result column="crowd_package" jdbcType="VARCHAR" property="crowdPackage" />
    <result column="conversion_target" jdbcType="VARCHAR" property="conversionTarget" />
    <result column="partner" jdbcType="VARCHAR" property="partner" />
    <result column="account" jdbcType="VARCHAR" property="account" />
    <result column="scene_value" jdbcType="VARCHAR" property="sceneValue" />
    <result column="demand_strategy" jdbcType="VARCHAR" property="demandStrategy" />
    <result column="drive_dimension_time" jdbcType="VARCHAR" property="driveDimensionTime" />
    <result column="dimension" jdbcType="VARCHAR" property="dimension" />
    <result column="demand_filter_sort_strategy" jdbcType="VARCHAR" property="demandFilterSortStrategy" />
    <result column="demand_type" jdbcType="VARCHAR" property="demandType" />
    <result column="demand_content_id" jdbcType="VARCHAR" property="demandContentId" />
    <result column="demand_content_title" jdbcType="VARCHAR" property="demandContentTitle" />
    <result column="demand_content_topic" jdbcType="VARCHAR" property="demandContentTopic" />
    <result column="point_type" jdbcType="VARCHAR" property="pointType" />
    <result column="standard_element" jdbcType="VARCHAR" property="standardElement" />
    <result column="match_generalized_element" jdbcType="VARCHAR" property="matchGeneralizedElement" />
    <result column="match_generalized_point_type" jdbcType="VARCHAR" property="matchGeneralizedPointType" />
    <result column="element_dimension" jdbcType="VARCHAR" property="elementDimension" />
    <result column="category_name" jdbcType="VARCHAR" property="categoryName" />
    <result column="crowd_count" jdbcType="INTEGER" property="crowdCount" />
    <result column="video_count" jdbcType="INTEGER" property="videoCount" />
    <result column="visit_uv" jdbcType="BIGINT" property="visitUv" />
    <result column="uv_ratio" jdbcType="DOUBLE" property="uvRatio" />
    <result column="total_rov" jdbcType="DOUBLE" property="totalRov" />
    <result column="match_experiment_id" jdbcType="VARCHAR" property="matchExperimentId" />
    <result column="match_method" jdbcType="VARCHAR" property="matchMethod" />
    <result column="match_video_filter" jdbcType="VARCHAR" property="matchVideoFilter" />
    <result column="match_sort" jdbcType="VARCHAR" property="matchSort" />
    <result column="video_id" jdbcType="BIGINT" property="videoId" />
    <result column="config_code" jdbcType="VARCHAR" property="configCode" />
    <result column="score" jdbcType="DOUBLE" property="score" />
    <result column="sim" jdbcType="DOUBLE" property="sim" />
    <result column="rov" jdbcType="DOUBLE" property="rov" />
    <result column="match_text" jdbcType="VARCHAR" property="matchText" />
    <result column="title" jdbcType="VARCHAR" property="title" />
    <result column="cover" jdbcType="VARCHAR" property="cover" />
    <result column="video" jdbcType="VARCHAR" property="video" />
    <result column="experiment_id" jdbcType="VARCHAR" property="experimentId" />
    <result column="scene_sum_rov" jdbcType="DOUBLE" property="sceneSumRov" />
    <result column="status" jdbcType="INTEGER" property="status" />
    <result column="create_timestamp" jdbcType="BIGINT" property="createTimestamp" />
    <result column="update_timestamp" jdbcType="BIGINT" property="updateTimestamp" />
    <result column="category" jdbcType="VARCHAR" property="category" />
    <result column="match_exposure_pv" jdbcType="BIGINT" property="matchExposurePv" />
    <result column="match_head_single_return_rate" jdbcType="DOUBLE" property="matchHeadSingleReturnRate" />
    <result column="match_head_distribution_single_return_rate" jdbcType="DOUBLE" property="matchHeadDistributionSingleReturnRate" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause">
    <where>
      <foreach collection="example.oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    id, dt, online_action, channel_name, crowd_segment, channel_level3, demand_id, crowd_package, 
    conversion_target, partner, account, scene_value, demand_strategy, drive_dimension_time, 
    dimension, demand_filter_sort_strategy, demand_type, demand_content_id, demand_content_title, 
    demand_content_topic, point_type, standard_element, match_generalized_element, match_generalized_point_type, 
    element_dimension, category_name, crowd_count, video_count, visit_uv, uv_ratio, total_rov, 
    match_experiment_id, match_method, match_video_filter, match_sort, video_id, config_code, 
    score, sim, rov, match_text, title, cover, video, experiment_id, scene_sum_rov, `status`, 
    create_timestamp, update_timestamp, category, match_exposure_pv, match_head_single_return_rate, 
    match_head_distribution_single_return_rate
  </sql>
  <select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideoExample" resultMap="BaseResultMap">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from content_platform_demand_video
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
    <if test="page != null">
      limit #{page.offset} , #{page.pageSize}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from content_platform_demand_video
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    delete from content_platform_demand_video
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <delete id="deleteByExample" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideoExample">
    delete from content_platform_demand_video
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideo">
    insert into content_platform_demand_video (id, dt, online_action, 
      channel_name, crowd_segment, channel_level3, 
      demand_id, crowd_package, conversion_target, 
      partner, account, scene_value, 
      demand_strategy, drive_dimension_time, dimension, 
      demand_filter_sort_strategy, demand_type, demand_content_id, 
      demand_content_title, demand_content_topic, 
      point_type, standard_element, match_generalized_element, 
      match_generalized_point_type, element_dimension, 
      category_name, crowd_count, video_count, 
      visit_uv, uv_ratio, total_rov, 
      match_experiment_id, match_method, match_video_filter, 
      match_sort, video_id, config_code, 
      score, sim, rov, match_text, 
      title, cover, video, 
      experiment_id, scene_sum_rov, `status`, 
      create_timestamp, update_timestamp, category, 
      match_exposure_pv, match_head_single_return_rate, 
      match_head_distribution_single_return_rate)
    values (#{id,jdbcType=BIGINT}, #{dt,jdbcType=VARCHAR}, #{onlineAction,jdbcType=VARCHAR}, 
      #{channelName,jdbcType=VARCHAR}, #{crowdSegment,jdbcType=VARCHAR}, #{channelLevel3,jdbcType=VARCHAR}, 
      #{demandId,jdbcType=VARCHAR}, #{crowdPackage,jdbcType=VARCHAR}, #{conversionTarget,jdbcType=VARCHAR}, 
      #{partner,jdbcType=VARCHAR}, #{account,jdbcType=VARCHAR}, #{sceneValue,jdbcType=VARCHAR}, 
      #{demandStrategy,jdbcType=VARCHAR}, #{driveDimensionTime,jdbcType=VARCHAR}, #{dimension,jdbcType=VARCHAR}, 
      #{demandFilterSortStrategy,jdbcType=VARCHAR}, #{demandType,jdbcType=VARCHAR}, #{demandContentId,jdbcType=VARCHAR}, 
      #{demandContentTitle,jdbcType=VARCHAR}, #{demandContentTopic,jdbcType=VARCHAR}, 
      #{pointType,jdbcType=VARCHAR}, #{standardElement,jdbcType=VARCHAR}, #{matchGeneralizedElement,jdbcType=VARCHAR}, 
      #{matchGeneralizedPointType,jdbcType=VARCHAR}, #{elementDimension,jdbcType=VARCHAR}, 
      #{categoryName,jdbcType=VARCHAR}, #{crowdCount,jdbcType=INTEGER}, #{videoCount,jdbcType=INTEGER}, 
      #{visitUv,jdbcType=BIGINT}, #{uvRatio,jdbcType=DOUBLE}, #{totalRov,jdbcType=DOUBLE}, 
      #{matchExperimentId,jdbcType=VARCHAR}, #{matchMethod,jdbcType=VARCHAR}, #{matchVideoFilter,jdbcType=VARCHAR}, 
      #{matchSort,jdbcType=VARCHAR}, #{videoId,jdbcType=BIGINT}, #{configCode,jdbcType=VARCHAR}, 
      #{score,jdbcType=DOUBLE}, #{sim,jdbcType=DOUBLE}, #{rov,jdbcType=DOUBLE}, #{matchText,jdbcType=VARCHAR}, 
      #{title,jdbcType=VARCHAR}, #{cover,jdbcType=VARCHAR}, #{video,jdbcType=VARCHAR}, 
      #{experimentId,jdbcType=VARCHAR}, #{sceneSumRov,jdbcType=DOUBLE}, #{status,jdbcType=INTEGER}, 
      #{createTimestamp,jdbcType=BIGINT}, #{updateTimestamp,jdbcType=BIGINT}, #{category,jdbcType=VARCHAR}, 
      #{matchExposurePv,jdbcType=BIGINT}, #{matchHeadSingleReturnRate,jdbcType=DOUBLE}, 
      #{matchHeadDistributionSingleReturnRate,jdbcType=DOUBLE})
  </insert>
  <insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideo">
    insert into content_platform_demand_video
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="dt != null">
        dt,
      </if>
      <if test="onlineAction != null">
        online_action,
      </if>
      <if test="channelName != null">
        channel_name,
      </if>
      <if test="crowdSegment != null">
        crowd_segment,
      </if>
      <if test="channelLevel3 != null">
        channel_level3,
      </if>
      <if test="demandId != null">
        demand_id,
      </if>
      <if test="crowdPackage != null">
        crowd_package,
      </if>
      <if test="conversionTarget != null">
        conversion_target,
      </if>
      <if test="partner != null">
        partner,
      </if>
      <if test="account != null">
        account,
      </if>
      <if test="sceneValue != null">
        scene_value,
      </if>
      <if test="demandStrategy != null">
        demand_strategy,
      </if>
      <if test="driveDimensionTime != null">
        drive_dimension_time,
      </if>
      <if test="dimension != null">
        dimension,
      </if>
      <if test="demandFilterSortStrategy != null">
        demand_filter_sort_strategy,
      </if>
      <if test="demandType != null">
        demand_type,
      </if>
      <if test="demandContentId != null">
        demand_content_id,
      </if>
      <if test="demandContentTitle != null">
        demand_content_title,
      </if>
      <if test="demandContentTopic != null">
        demand_content_topic,
      </if>
      <if test="pointType != null">
        point_type,
      </if>
      <if test="standardElement != null">
        standard_element,
      </if>
      <if test="matchGeneralizedElement != null">
        match_generalized_element,
      </if>
      <if test="matchGeneralizedPointType != null">
        match_generalized_point_type,
      </if>
      <if test="elementDimension != null">
        element_dimension,
      </if>
      <if test="categoryName != null">
        category_name,
      </if>
      <if test="crowdCount != null">
        crowd_count,
      </if>
      <if test="videoCount != null">
        video_count,
      </if>
      <if test="visitUv != null">
        visit_uv,
      </if>
      <if test="uvRatio != null">
        uv_ratio,
      </if>
      <if test="totalRov != null">
        total_rov,
      </if>
      <if test="matchExperimentId != null">
        match_experiment_id,
      </if>
      <if test="matchMethod != null">
        match_method,
      </if>
      <if test="matchVideoFilter != null">
        match_video_filter,
      </if>
      <if test="matchSort != null">
        match_sort,
      </if>
      <if test="videoId != null">
        video_id,
      </if>
      <if test="configCode != null">
        config_code,
      </if>
      <if test="score != null">
        score,
      </if>
      <if test="sim != null">
        sim,
      </if>
      <if test="rov != null">
        rov,
      </if>
      <if test="matchText != null">
        match_text,
      </if>
      <if test="title != null">
        title,
      </if>
      <if test="cover != null">
        cover,
      </if>
      <if test="video != null">
        video,
      </if>
      <if test="experimentId != null">
        experiment_id,
      </if>
      <if test="sceneSumRov != null">
        scene_sum_rov,
      </if>
      <if test="status != null">
        `status`,
      </if>
      <if test="createTimestamp != null">
        create_timestamp,
      </if>
      <if test="updateTimestamp != null">
        update_timestamp,
      </if>
      <if test="category != null">
        category,
      </if>
      <if test="matchExposurePv != null">
        match_exposure_pv,
      </if>
      <if test="matchHeadSingleReturnRate != null">
        match_head_single_return_rate,
      </if>
      <if test="matchHeadDistributionSingleReturnRate != null">
        match_head_distribution_single_return_rate,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=BIGINT},
      </if>
      <if test="dt != null">
        #{dt,jdbcType=VARCHAR},
      </if>
      <if test="onlineAction != null">
        #{onlineAction,jdbcType=VARCHAR},
      </if>
      <if test="channelName != null">
        #{channelName,jdbcType=VARCHAR},
      </if>
      <if test="crowdSegment != null">
        #{crowdSegment,jdbcType=VARCHAR},
      </if>
      <if test="channelLevel3 != null">
        #{channelLevel3,jdbcType=VARCHAR},
      </if>
      <if test="demandId != null">
        #{demandId,jdbcType=VARCHAR},
      </if>
      <if test="crowdPackage != null">
        #{crowdPackage,jdbcType=VARCHAR},
      </if>
      <if test="conversionTarget != null">
        #{conversionTarget,jdbcType=VARCHAR},
      </if>
      <if test="partner != null">
        #{partner,jdbcType=VARCHAR},
      </if>
      <if test="account != null">
        #{account,jdbcType=VARCHAR},
      </if>
      <if test="sceneValue != null">
        #{sceneValue,jdbcType=VARCHAR},
      </if>
      <if test="demandStrategy != null">
        #{demandStrategy,jdbcType=VARCHAR},
      </if>
      <if test="driveDimensionTime != null">
        #{driveDimensionTime,jdbcType=VARCHAR},
      </if>
      <if test="dimension != null">
        #{dimension,jdbcType=VARCHAR},
      </if>
      <if test="demandFilterSortStrategy != null">
        #{demandFilterSortStrategy,jdbcType=VARCHAR},
      </if>
      <if test="demandType != null">
        #{demandType,jdbcType=VARCHAR},
      </if>
      <if test="demandContentId != null">
        #{demandContentId,jdbcType=VARCHAR},
      </if>
      <if test="demandContentTitle != null">
        #{demandContentTitle,jdbcType=VARCHAR},
      </if>
      <if test="demandContentTopic != null">
        #{demandContentTopic,jdbcType=VARCHAR},
      </if>
      <if test="pointType != null">
        #{pointType,jdbcType=VARCHAR},
      </if>
      <if test="standardElement != null">
        #{standardElement,jdbcType=VARCHAR},
      </if>
      <if test="matchGeneralizedElement != null">
        #{matchGeneralizedElement,jdbcType=VARCHAR},
      </if>
      <if test="matchGeneralizedPointType != null">
        #{matchGeneralizedPointType,jdbcType=VARCHAR},
      </if>
      <if test="elementDimension != null">
        #{elementDimension,jdbcType=VARCHAR},
      </if>
      <if test="categoryName != null">
        #{categoryName,jdbcType=VARCHAR},
      </if>
      <if test="crowdCount != null">
        #{crowdCount,jdbcType=INTEGER},
      </if>
      <if test="videoCount != null">
        #{videoCount,jdbcType=INTEGER},
      </if>
      <if test="visitUv != null">
        #{visitUv,jdbcType=BIGINT},
      </if>
      <if test="uvRatio != null">
        #{uvRatio,jdbcType=DOUBLE},
      </if>
      <if test="totalRov != null">
        #{totalRov,jdbcType=DOUBLE},
      </if>
      <if test="matchExperimentId != null">
        #{matchExperimentId,jdbcType=VARCHAR},
      </if>
      <if test="matchMethod != null">
        #{matchMethod,jdbcType=VARCHAR},
      </if>
      <if test="matchVideoFilter != null">
        #{matchVideoFilter,jdbcType=VARCHAR},
      </if>
      <if test="matchSort != null">
        #{matchSort,jdbcType=VARCHAR},
      </if>
      <if test="videoId != null">
        #{videoId,jdbcType=BIGINT},
      </if>
      <if test="configCode != null">
        #{configCode,jdbcType=VARCHAR},
      </if>
      <if test="score != null">
        #{score,jdbcType=DOUBLE},
      </if>
      <if test="sim != null">
        #{sim,jdbcType=DOUBLE},
      </if>
      <if test="rov != null">
        #{rov,jdbcType=DOUBLE},
      </if>
      <if test="matchText != null">
        #{matchText,jdbcType=VARCHAR},
      </if>
      <if test="title != null">
        #{title,jdbcType=VARCHAR},
      </if>
      <if test="cover != null">
        #{cover,jdbcType=VARCHAR},
      </if>
      <if test="video != null">
        #{video,jdbcType=VARCHAR},
      </if>
      <if test="experimentId != null">
        #{experimentId,jdbcType=VARCHAR},
      </if>
      <if test="sceneSumRov != null">
        #{sceneSumRov,jdbcType=DOUBLE},
      </if>
      <if test="status != null">
        #{status,jdbcType=INTEGER},
      </if>
      <if test="createTimestamp != null">
        #{createTimestamp,jdbcType=BIGINT},
      </if>
      <if test="updateTimestamp != null">
        #{updateTimestamp,jdbcType=BIGINT},
      </if>
      <if test="category != null">
        #{category,jdbcType=VARCHAR},
      </if>
      <if test="matchExposurePv != null">
        #{matchExposurePv,jdbcType=BIGINT},
      </if>
      <if test="matchHeadSingleReturnRate != null">
        #{matchHeadSingleReturnRate,jdbcType=DOUBLE},
      </if>
      <if test="matchHeadDistributionSingleReturnRate != null">
        #{matchHeadDistributionSingleReturnRate,jdbcType=DOUBLE},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideoExample" resultType="java.lang.Long">
    select count(*) from content_platform_demand_video
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    update content_platform_demand_video
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=BIGINT},
      </if>
      <if test="record.dt != null">
        dt = #{record.dt,jdbcType=VARCHAR},
      </if>
      <if test="record.onlineAction != null">
        online_action = #{record.onlineAction,jdbcType=VARCHAR},
      </if>
      <if test="record.channelName != null">
        channel_name = #{record.channelName,jdbcType=VARCHAR},
      </if>
      <if test="record.crowdSegment != null">
        crowd_segment = #{record.crowdSegment,jdbcType=VARCHAR},
      </if>
      <if test="record.channelLevel3 != null">
        channel_level3 = #{record.channelLevel3,jdbcType=VARCHAR},
      </if>
      <if test="record.demandId != null">
        demand_id = #{record.demandId,jdbcType=VARCHAR},
      </if>
      <if test="record.crowdPackage != null">
        crowd_package = #{record.crowdPackage,jdbcType=VARCHAR},
      </if>
      <if test="record.conversionTarget != null">
        conversion_target = #{record.conversionTarget,jdbcType=VARCHAR},
      </if>
      <if test="record.partner != null">
        partner = #{record.partner,jdbcType=VARCHAR},
      </if>
      <if test="record.account != null">
        account = #{record.account,jdbcType=VARCHAR},
      </if>
      <if test="record.sceneValue != null">
        scene_value = #{record.sceneValue,jdbcType=VARCHAR},
      </if>
      <if test="record.demandStrategy != null">
        demand_strategy = #{record.demandStrategy,jdbcType=VARCHAR},
      </if>
      <if test="record.driveDimensionTime != null">
        drive_dimension_time = #{record.driveDimensionTime,jdbcType=VARCHAR},
      </if>
      <if test="record.dimension != null">
        dimension = #{record.dimension,jdbcType=VARCHAR},
      </if>
      <if test="record.demandFilterSortStrategy != null">
        demand_filter_sort_strategy = #{record.demandFilterSortStrategy,jdbcType=VARCHAR},
      </if>
      <if test="record.demandType != null">
        demand_type = #{record.demandType,jdbcType=VARCHAR},
      </if>
      <if test="record.demandContentId != null">
        demand_content_id = #{record.demandContentId,jdbcType=VARCHAR},
      </if>
      <if test="record.demandContentTitle != null">
        demand_content_title = #{record.demandContentTitle,jdbcType=VARCHAR},
      </if>
      <if test="record.demandContentTopic != null">
        demand_content_topic = #{record.demandContentTopic,jdbcType=VARCHAR},
      </if>
      <if test="record.pointType != null">
        point_type = #{record.pointType,jdbcType=VARCHAR},
      </if>
      <if test="record.standardElement != null">
        standard_element = #{record.standardElement,jdbcType=VARCHAR},
      </if>
      <if test="record.matchGeneralizedElement != null">
        match_generalized_element = #{record.matchGeneralizedElement,jdbcType=VARCHAR},
      </if>
      <if test="record.matchGeneralizedPointType != null">
        match_generalized_point_type = #{record.matchGeneralizedPointType,jdbcType=VARCHAR},
      </if>
      <if test="record.elementDimension != null">
        element_dimension = #{record.elementDimension,jdbcType=VARCHAR},
      </if>
      <if test="record.categoryName != null">
        category_name = #{record.categoryName,jdbcType=VARCHAR},
      </if>
      <if test="record.crowdCount != null">
        crowd_count = #{record.crowdCount,jdbcType=INTEGER},
      </if>
      <if test="record.videoCount != null">
        video_count = #{record.videoCount,jdbcType=INTEGER},
      </if>
      <if test="record.visitUv != null">
        visit_uv = #{record.visitUv,jdbcType=BIGINT},
      </if>
      <if test="record.uvRatio != null">
        uv_ratio = #{record.uvRatio,jdbcType=DOUBLE},
      </if>
      <if test="record.totalRov != null">
        total_rov = #{record.totalRov,jdbcType=DOUBLE},
      </if>
      <if test="record.matchExperimentId != null">
        match_experiment_id = #{record.matchExperimentId,jdbcType=VARCHAR},
      </if>
      <if test="record.matchMethod != null">
        match_method = #{record.matchMethod,jdbcType=VARCHAR},
      </if>
      <if test="record.matchVideoFilter != null">
        match_video_filter = #{record.matchVideoFilter,jdbcType=VARCHAR},
      </if>
      <if test="record.matchSort != null">
        match_sort = #{record.matchSort,jdbcType=VARCHAR},
      </if>
      <if test="record.videoId != null">
        video_id = #{record.videoId,jdbcType=BIGINT},
      </if>
      <if test="record.configCode != null">
        config_code = #{record.configCode,jdbcType=VARCHAR},
      </if>
      <if test="record.score != null">
        score = #{record.score,jdbcType=DOUBLE},
      </if>
      <if test="record.sim != null">
        sim = #{record.sim,jdbcType=DOUBLE},
      </if>
      <if test="record.rov != null">
        rov = #{record.rov,jdbcType=DOUBLE},
      </if>
      <if test="record.matchText != null">
        match_text = #{record.matchText,jdbcType=VARCHAR},
      </if>
      <if test="record.title != null">
        title = #{record.title,jdbcType=VARCHAR},
      </if>
      <if test="record.cover != null">
        cover = #{record.cover,jdbcType=VARCHAR},
      </if>
      <if test="record.video != null">
        video = #{record.video,jdbcType=VARCHAR},
      </if>
      <if test="record.experimentId != null">
        experiment_id = #{record.experimentId,jdbcType=VARCHAR},
      </if>
      <if test="record.sceneSumRov != null">
        scene_sum_rov = #{record.sceneSumRov,jdbcType=DOUBLE},
      </if>
      <if test="record.status != null">
        `status` = #{record.status,jdbcType=INTEGER},
      </if>
      <if test="record.createTimestamp != null">
        create_timestamp = #{record.createTimestamp,jdbcType=BIGINT},
      </if>
      <if test="record.updateTimestamp != null">
        update_timestamp = #{record.updateTimestamp,jdbcType=BIGINT},
      </if>
      <if test="record.category != null">
        category = #{record.category,jdbcType=VARCHAR},
      </if>
      <if test="record.matchExposurePv != null">
        match_exposure_pv = #{record.matchExposurePv,jdbcType=BIGINT},
      </if>
      <if test="record.matchHeadSingleReturnRate != null">
        match_head_single_return_rate = #{record.matchHeadSingleReturnRate,jdbcType=DOUBLE},
      </if>
      <if test="record.matchHeadDistributionSingleReturnRate != null">
        match_head_distribution_single_return_rate = #{record.matchHeadDistributionSingleReturnRate,jdbcType=DOUBLE},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    update content_platform_demand_video
    set id = #{record.id,jdbcType=BIGINT},
      dt = #{record.dt,jdbcType=VARCHAR},
      online_action = #{record.onlineAction,jdbcType=VARCHAR},
      channel_name = #{record.channelName,jdbcType=VARCHAR},
      crowd_segment = #{record.crowdSegment,jdbcType=VARCHAR},
      channel_level3 = #{record.channelLevel3,jdbcType=VARCHAR},
      demand_id = #{record.demandId,jdbcType=VARCHAR},
      crowd_package = #{record.crowdPackage,jdbcType=VARCHAR},
      conversion_target = #{record.conversionTarget,jdbcType=VARCHAR},
      partner = #{record.partner,jdbcType=VARCHAR},
      account = #{record.account,jdbcType=VARCHAR},
      scene_value = #{record.sceneValue,jdbcType=VARCHAR},
      demand_strategy = #{record.demandStrategy,jdbcType=VARCHAR},
      drive_dimension_time = #{record.driveDimensionTime,jdbcType=VARCHAR},
      dimension = #{record.dimension,jdbcType=VARCHAR},
      demand_filter_sort_strategy = #{record.demandFilterSortStrategy,jdbcType=VARCHAR},
      demand_type = #{record.demandType,jdbcType=VARCHAR},
      demand_content_id = #{record.demandContentId,jdbcType=VARCHAR},
      demand_content_title = #{record.demandContentTitle,jdbcType=VARCHAR},
      demand_content_topic = #{record.demandContentTopic,jdbcType=VARCHAR},
      point_type = #{record.pointType,jdbcType=VARCHAR},
      standard_element = #{record.standardElement,jdbcType=VARCHAR},
      match_generalized_element = #{record.matchGeneralizedElement,jdbcType=VARCHAR},
      match_generalized_point_type = #{record.matchGeneralizedPointType,jdbcType=VARCHAR},
      element_dimension = #{record.elementDimension,jdbcType=VARCHAR},
      category_name = #{record.categoryName,jdbcType=VARCHAR},
      crowd_count = #{record.crowdCount,jdbcType=INTEGER},
      video_count = #{record.videoCount,jdbcType=INTEGER},
      visit_uv = #{record.visitUv,jdbcType=BIGINT},
      uv_ratio = #{record.uvRatio,jdbcType=DOUBLE},
      total_rov = #{record.totalRov,jdbcType=DOUBLE},
      match_experiment_id = #{record.matchExperimentId,jdbcType=VARCHAR},
      match_method = #{record.matchMethod,jdbcType=VARCHAR},
      match_video_filter = #{record.matchVideoFilter,jdbcType=VARCHAR},
      match_sort = #{record.matchSort,jdbcType=VARCHAR},
      video_id = #{record.videoId,jdbcType=BIGINT},
      config_code = #{record.configCode,jdbcType=VARCHAR},
      score = #{record.score,jdbcType=DOUBLE},
      sim = #{record.sim,jdbcType=DOUBLE},
      rov = #{record.rov,jdbcType=DOUBLE},
      match_text = #{record.matchText,jdbcType=VARCHAR},
      title = #{record.title,jdbcType=VARCHAR},
      cover = #{record.cover,jdbcType=VARCHAR},
      video = #{record.video,jdbcType=VARCHAR},
      experiment_id = #{record.experimentId,jdbcType=VARCHAR},
      scene_sum_rov = #{record.sceneSumRov,jdbcType=DOUBLE},
      `status` = #{record.status,jdbcType=INTEGER},
      create_timestamp = #{record.createTimestamp,jdbcType=BIGINT},
      update_timestamp = #{record.updateTimestamp,jdbcType=BIGINT},
      category = #{record.category,jdbcType=VARCHAR},
      match_exposure_pv = #{record.matchExposurePv,jdbcType=BIGINT},
      match_head_single_return_rate = #{record.matchHeadSingleReturnRate,jdbcType=DOUBLE},
      match_head_distribution_single_return_rate = #{record.matchHeadDistributionSingleReturnRate,jdbcType=DOUBLE}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideo">
    update content_platform_demand_video
    <set>
      <if test="dt != null">
        dt = #{dt,jdbcType=VARCHAR},
      </if>
      <if test="onlineAction != null">
        online_action = #{onlineAction,jdbcType=VARCHAR},
      </if>
      <if test="channelName != null">
        channel_name = #{channelName,jdbcType=VARCHAR},
      </if>
      <if test="crowdSegment != null">
        crowd_segment = #{crowdSegment,jdbcType=VARCHAR},
      </if>
      <if test="channelLevel3 != null">
        channel_level3 = #{channelLevel3,jdbcType=VARCHAR},
      </if>
      <if test="demandId != null">
        demand_id = #{demandId,jdbcType=VARCHAR},
      </if>
      <if test="crowdPackage != null">
        crowd_package = #{crowdPackage,jdbcType=VARCHAR},
      </if>
      <if test="conversionTarget != null">
        conversion_target = #{conversionTarget,jdbcType=VARCHAR},
      </if>
      <if test="partner != null">
        partner = #{partner,jdbcType=VARCHAR},
      </if>
      <if test="account != null">
        account = #{account,jdbcType=VARCHAR},
      </if>
      <if test="sceneValue != null">
        scene_value = #{sceneValue,jdbcType=VARCHAR},
      </if>
      <if test="demandStrategy != null">
        demand_strategy = #{demandStrategy,jdbcType=VARCHAR},
      </if>
      <if test="driveDimensionTime != null">
        drive_dimension_time = #{driveDimensionTime,jdbcType=VARCHAR},
      </if>
      <if test="dimension != null">
        dimension = #{dimension,jdbcType=VARCHAR},
      </if>
      <if test="demandFilterSortStrategy != null">
        demand_filter_sort_strategy = #{demandFilterSortStrategy,jdbcType=VARCHAR},
      </if>
      <if test="demandType != null">
        demand_type = #{demandType,jdbcType=VARCHAR},
      </if>
      <if test="demandContentId != null">
        demand_content_id = #{demandContentId,jdbcType=VARCHAR},
      </if>
      <if test="demandContentTitle != null">
        demand_content_title = #{demandContentTitle,jdbcType=VARCHAR},
      </if>
      <if test="demandContentTopic != null">
        demand_content_topic = #{demandContentTopic,jdbcType=VARCHAR},
      </if>
      <if test="pointType != null">
        point_type = #{pointType,jdbcType=VARCHAR},
      </if>
      <if test="standardElement != null">
        standard_element = #{standardElement,jdbcType=VARCHAR},
      </if>
      <if test="matchGeneralizedElement != null">
        match_generalized_element = #{matchGeneralizedElement,jdbcType=VARCHAR},
      </if>
      <if test="matchGeneralizedPointType != null">
        match_generalized_point_type = #{matchGeneralizedPointType,jdbcType=VARCHAR},
      </if>
      <if test="elementDimension != null">
        element_dimension = #{elementDimension,jdbcType=VARCHAR},
      </if>
      <if test="categoryName != null">
        category_name = #{categoryName,jdbcType=VARCHAR},
      </if>
      <if test="crowdCount != null">
        crowd_count = #{crowdCount,jdbcType=INTEGER},
      </if>
      <if test="videoCount != null">
        video_count = #{videoCount,jdbcType=INTEGER},
      </if>
      <if test="visitUv != null">
        visit_uv = #{visitUv,jdbcType=BIGINT},
      </if>
      <if test="uvRatio != null">
        uv_ratio = #{uvRatio,jdbcType=DOUBLE},
      </if>
      <if test="totalRov != null">
        total_rov = #{totalRov,jdbcType=DOUBLE},
      </if>
      <if test="matchExperimentId != null">
        match_experiment_id = #{matchExperimentId,jdbcType=VARCHAR},
      </if>
      <if test="matchMethod != null">
        match_method = #{matchMethod,jdbcType=VARCHAR},
      </if>
      <if test="matchVideoFilter != null">
        match_video_filter = #{matchVideoFilter,jdbcType=VARCHAR},
      </if>
      <if test="matchSort != null">
        match_sort = #{matchSort,jdbcType=VARCHAR},
      </if>
      <if test="videoId != null">
        video_id = #{videoId,jdbcType=BIGINT},
      </if>
      <if test="configCode != null">
        config_code = #{configCode,jdbcType=VARCHAR},
      </if>
      <if test="score != null">
        score = #{score,jdbcType=DOUBLE},
      </if>
      <if test="sim != null">
        sim = #{sim,jdbcType=DOUBLE},
      </if>
      <if test="rov != null">
        rov = #{rov,jdbcType=DOUBLE},
      </if>
      <if test="matchText != null">
        match_text = #{matchText,jdbcType=VARCHAR},
      </if>
      <if test="title != null">
        title = #{title,jdbcType=VARCHAR},
      </if>
      <if test="cover != null">
        cover = #{cover,jdbcType=VARCHAR},
      </if>
      <if test="video != null">
        video = #{video,jdbcType=VARCHAR},
      </if>
      <if test="experimentId != null">
        experiment_id = #{experimentId,jdbcType=VARCHAR},
      </if>
      <if test="sceneSumRov != null">
        scene_sum_rov = #{sceneSumRov,jdbcType=DOUBLE},
      </if>
      <if test="status != null">
        `status` = #{status,jdbcType=INTEGER},
      </if>
      <if test="createTimestamp != null">
        create_timestamp = #{createTimestamp,jdbcType=BIGINT},
      </if>
      <if test="updateTimestamp != null">
        update_timestamp = #{updateTimestamp,jdbcType=BIGINT},
      </if>
      <if test="category != null">
        category = #{category,jdbcType=VARCHAR},
      </if>
      <if test="matchExposurePv != null">
        match_exposure_pv = #{matchExposurePv,jdbcType=BIGINT},
      </if>
      <if test="matchHeadSingleReturnRate != null">
        match_head_single_return_rate = #{matchHeadSingleReturnRate,jdbcType=DOUBLE},
      </if>
      <if test="matchHeadDistributionSingleReturnRate != null">
        match_head_distribution_single_return_rate = #{matchHeadDistributionSingleReturnRate,jdbcType=DOUBLE},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideo">
    update content_platform_demand_video
    set dt = #{dt,jdbcType=VARCHAR},
      online_action = #{onlineAction,jdbcType=VARCHAR},
      channel_name = #{channelName,jdbcType=VARCHAR},
      crowd_segment = #{crowdSegment,jdbcType=VARCHAR},
      channel_level3 = #{channelLevel3,jdbcType=VARCHAR},
      demand_id = #{demandId,jdbcType=VARCHAR},
      crowd_package = #{crowdPackage,jdbcType=VARCHAR},
      conversion_target = #{conversionTarget,jdbcType=VARCHAR},
      partner = #{partner,jdbcType=VARCHAR},
      account = #{account,jdbcType=VARCHAR},
      scene_value = #{sceneValue,jdbcType=VARCHAR},
      demand_strategy = #{demandStrategy,jdbcType=VARCHAR},
      drive_dimension_time = #{driveDimensionTime,jdbcType=VARCHAR},
      dimension = #{dimension,jdbcType=VARCHAR},
      demand_filter_sort_strategy = #{demandFilterSortStrategy,jdbcType=VARCHAR},
      demand_type = #{demandType,jdbcType=VARCHAR},
      demand_content_id = #{demandContentId,jdbcType=VARCHAR},
      demand_content_title = #{demandContentTitle,jdbcType=VARCHAR},
      demand_content_topic = #{demandContentTopic,jdbcType=VARCHAR},
      point_type = #{pointType,jdbcType=VARCHAR},
      standard_element = #{standardElement,jdbcType=VARCHAR},
      match_generalized_element = #{matchGeneralizedElement,jdbcType=VARCHAR},
      match_generalized_point_type = #{matchGeneralizedPointType,jdbcType=VARCHAR},
      element_dimension = #{elementDimension,jdbcType=VARCHAR},
      category_name = #{categoryName,jdbcType=VARCHAR},
      crowd_count = #{crowdCount,jdbcType=INTEGER},
      video_count = #{videoCount,jdbcType=INTEGER},
      visit_uv = #{visitUv,jdbcType=BIGINT},
      uv_ratio = #{uvRatio,jdbcType=DOUBLE},
      total_rov = #{totalRov,jdbcType=DOUBLE},
      match_experiment_id = #{matchExperimentId,jdbcType=VARCHAR},
      match_method = #{matchMethod,jdbcType=VARCHAR},
      match_video_filter = #{matchVideoFilter,jdbcType=VARCHAR},
      match_sort = #{matchSort,jdbcType=VARCHAR},
      video_id = #{videoId,jdbcType=BIGINT},
      config_code = #{configCode,jdbcType=VARCHAR},
      score = #{score,jdbcType=DOUBLE},
      sim = #{sim,jdbcType=DOUBLE},
      rov = #{rov,jdbcType=DOUBLE},
      match_text = #{matchText,jdbcType=VARCHAR},
      title = #{title,jdbcType=VARCHAR},
      cover = #{cover,jdbcType=VARCHAR},
      video = #{video,jdbcType=VARCHAR},
      experiment_id = #{experimentId,jdbcType=VARCHAR},
      scene_sum_rov = #{sceneSumRov,jdbcType=DOUBLE},
      `status` = #{status,jdbcType=INTEGER},
      create_timestamp = #{createTimestamp,jdbcType=BIGINT},
      update_timestamp = #{updateTimestamp,jdbcType=BIGINT},
      category = #{category,jdbcType=VARCHAR},
      match_exposure_pv = #{matchExposurePv,jdbcType=BIGINT},
      match_head_single_return_rate = #{matchHeadSingleReturnRate,jdbcType=DOUBLE},
      match_head_distribution_single_return_rate = #{matchHeadDistributionSingleReturnRate,jdbcType=DOUBLE}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>