ehlxr 1 éve
szülő
commit
8be5367703

+ 7 - 4
etl-core/src/main/java/com/tzld/crawler/etl/model/po/CrawlerVideo.java

@@ -219,8 +219,8 @@ public class CrawlerVideo {
 
     /**
      * Database Column Remarks:
-     * 高
-     * <p>
+     *   
+     *
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column crawler_video.height
      *
@@ -230,8 +230,8 @@ public class CrawlerVideo {
 
     /**
      * Database Column Remarks:
-     * 标题权重分
-     * <p>
+     *   标题权重分
+     *
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column crawler_video.title_score
      *
@@ -746,6 +746,7 @@ public class CrawlerVideo {
      * This method returns the value of the database column crawler_video.title_score
      *
      * @return the value of crawler_video.title_score
+     *
      * @mbg.generated
      */
     public Double getTitleScore() {
@@ -757,6 +758,7 @@ public class CrawlerVideo {
      * This method sets the value of the database column crawler_video.title_score
      *
      * @param titleScore the value for crawler_video.title_score
+     *
      * @mbg.generated
      */
     public void setTitleScore(Double titleScore) {
@@ -768,6 +770,7 @@ public class CrawlerVideo {
      * This method returns the value of the database column crawler_video.create_time
      *
      * @return the value of crawler_video.create_time
+     *
      * @mbg.generated
      */
     public Date getCreateTime() {

+ 509 - 511
etl-core/src/main/resources/mapper/CrawlerVideoMapper.xml

@@ -1,559 +1,557 @@
 <?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.crawler.etl.dao.mapper.CrawlerVideoMapper">
-    <resultMap id="BaseResultMap" type="com.tzld.crawler.etl.model.po.CrawlerVideo">
-        <!--
-          WARNING - @mbg.generated
-          This element is automatically generated by MyBatis Generator, do not modify.
-        -->
-        <id column="id" jdbcType="BIGINT" property="id"/>
-        <result column="video_id" jdbcType="BIGINT" property="videoId"/>
-        <result column="user_id" jdbcType="BIGINT" property="userId"/>
-        <result column="out_user_id" jdbcType="VARCHAR" property="outUserId"/>
-        <result column="platform" jdbcType="VARCHAR" property="platform"/>
-        <result column="strategy" jdbcType="VARCHAR" property="strategy"/>
-        <result column="out_video_id" jdbcType="VARCHAR" property="outVideoId"/>
-        <result column="video_title" jdbcType="VARCHAR" property="videoTitle"/>
-        <result column="cover_url" jdbcType="VARCHAR" property="coverUrl"/>
-        <result column="video_url" jdbcType="VARCHAR" property="videoUrl"/>
-        <result column="duration" jdbcType="BIGINT" property="duration"/>
-        <result column="publish_time" jdbcType="VARCHAR" property="publishTime"/>
-        <result column="play_cnt" jdbcType="INTEGER" property="playCnt"/>
-        <result column="like_cnt" jdbcType="INTEGER" property="likeCnt"/>
-        <result column="share_cnt" jdbcType="INTEGER" property="shareCnt"/>
-        <result column="collection_cnt" jdbcType="INTEGER" property="collectionCnt"/>
-        <result column="comment_cnt" jdbcType="INTEGER" property="commentCnt"/>
-        <result column="crawler_rule" jdbcType="CHAR" property="crawlerRule"/>
-        <result column="width" jdbcType="INTEGER" property="width"/>
-        <result column="height" jdbcType="INTEGER" property="height"/>
-        <result column="title_score" jdbcType="DOUBLE" property="titleScore"/>
-        <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
-        <result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
-    </resultMap>
-    <sql id="Example_Where_Clause">
-        <!--
-          WARNING - @mbg.generated
-          This element is automatically generated by MyBatis Generator, do not modify.
-        -->
-        <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>
+  <resultMap id="BaseResultMap" type="com.tzld.crawler.etl.model.po.CrawlerVideo">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="id" jdbcType="BIGINT" property="id"/>
+    <result column="video_id" jdbcType="BIGINT" property="videoId"/>
+    <result column="user_id" jdbcType="BIGINT" property="userId"/>
+    <result column="out_user_id" jdbcType="VARCHAR" property="outUserId"/>
+    <result column="platform" jdbcType="VARCHAR" property="platform"/>
+    <result column="strategy" jdbcType="VARCHAR" property="strategy"/>
+    <result column="out_video_id" jdbcType="VARCHAR" property="outVideoId"/>
+    <result column="video_title" jdbcType="VARCHAR" property="videoTitle"/>
+    <result column="cover_url" jdbcType="VARCHAR" property="coverUrl"/>
+    <result column="video_url" jdbcType="VARCHAR" property="videoUrl"/>
+    <result column="duration" jdbcType="BIGINT" property="duration"/>
+    <result column="publish_time" jdbcType="VARCHAR" property="publishTime"/>
+    <result column="play_cnt" jdbcType="INTEGER" property="playCnt"/>
+    <result column="like_cnt" jdbcType="INTEGER" property="likeCnt"/>
+    <result column="share_cnt" jdbcType="INTEGER" property="shareCnt"/>
+    <result column="collection_cnt" jdbcType="INTEGER" property="collectionCnt"/>
+    <result column="comment_cnt" jdbcType="INTEGER" property="commentCnt"/>
+    <result column="crawler_rule" jdbcType="CHAR" property="crawlerRule"/>
+    <result column="width" jdbcType="INTEGER" property="width"/>
+    <result column="height" jdbcType="INTEGER" property="height"/>
+    <result column="title_score" jdbcType="DOUBLE" property="titleScore"/>
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <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>
-        </where>
-    </sql>
-    <sql id="Update_By_Example_Where_Clause">
-        <!--
-          WARNING - @mbg.generated
-          This element is automatically generated by MyBatis Generator, do not modify.
-        -->
-        <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">
-        <!--
-          WARNING - @mbg.generated
-          This element is automatically generated by MyBatis Generator, do not modify.
-        -->
-        id, video_id, user_id, out_user_id, platform, strategy, out_video_id, video_title,
-        cover_url, video_url, duration, publish_time, play_cnt, like_cnt, share_cnt, collection_cnt,
-        comment_cnt, crawler_rule, width, height, title_score, create_time, update_time
-    </sql>
-    <select id="selectByExample" parameterType="com.tzld.crawler.etl.model.po.CrawlerVideoExample"
-            resultMap="BaseResultMap">
-        <!--
-          WARNING - @mbg.generated
-          This element is automatically generated by MyBatis Generator, do not modify.
-        -->
-        select
-        <if test="distinct">
-            distinct
-        </if>
-        <include refid="Base_Column_List"/>
-        from crawler_video
-        <if test="_parameter != null">
-            <include refid="Example_Where_Clause"/>
-        </if>
-        <if test="orderByClause != null">
-            order by ${orderByClause}
-        </if>
-    </select>
-    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
-        <!--
-          WARNING - @mbg.generated
-          This element is automatically generated by MyBatis Generator, do not modify.
-        -->
-        select
-        <include refid="Base_Column_List"/>
-        from crawler_video
-        where id = #{id,jdbcType=BIGINT}
-    </select>
-    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
-        <!--
-          WARNING - @mbg.generated
-          This element is automatically generated by MyBatis Generator, do not modify.
-        -->
-        delete from crawler_video
-        where id = #{id,jdbcType=BIGINT}
-    </delete>
-    <delete id="deleteByExample" parameterType="com.tzld.crawler.etl.model.po.CrawlerVideoExample">
-        <!--
-          WARNING - @mbg.generated
-          This element is automatically generated by MyBatis Generator, do not modify.
-        -->
-        delete from crawler_video
-        <if test="_parameter != null">
-            <include refid="Example_Where_Clause"/>
+          </trim>
         </if>
-    </delete>
-    <insert id="insert" parameterType="com.tzld.crawler.etl.model.po.CrawlerVideo">
-        <!--
-          WARNING - @mbg.generated
-          This element is automatically generated by MyBatis Generator, do not modify.
-        -->
-        insert into crawler_video (id, video_id, user_id,
-        out_user_id, platform, strategy,
-        out_video_id, video_title, cover_url,
-        video_url, duration, publish_time,
-        play_cnt, like_cnt, share_cnt,
-        collection_cnt, comment_cnt, crawler_rule,
-        width, height, title_score,
-        create_time, update_time)
-        values (#{id,jdbcType=BIGINT}, #{videoId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT},
-        #{outUserId,jdbcType=VARCHAR}, #{platform,jdbcType=VARCHAR}, #{strategy,jdbcType=VARCHAR},
-        #{outVideoId,jdbcType=VARCHAR}, #{videoTitle,jdbcType=VARCHAR}, #{coverUrl,jdbcType=VARCHAR},
-        #{videoUrl,jdbcType=VARCHAR}, #{duration,jdbcType=BIGINT}, #{publishTime,jdbcType=VARCHAR},
-        #{playCnt,jdbcType=INTEGER}, #{likeCnt,jdbcType=INTEGER}, #{shareCnt,jdbcType=INTEGER},
-        #{collectionCnt,jdbcType=INTEGER}, #{commentCnt,jdbcType=INTEGER}, #{crawlerRule,jdbcType=CHAR},
-        #{width,jdbcType=INTEGER}, #{height,jdbcType=INTEGER}, #{titleScore,jdbcType=DOUBLE},
-        #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
-    </insert>
-    <insert id="insertSelective" parameterType="com.tzld.crawler.etl.model.po.CrawlerVideo">
-        <!--
-          WARNING - @mbg.generated
-          This element is automatically generated by MyBatis Generator, do not modify.
-        -->
-        insert into crawler_video
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="id != null">
-                id,
-            </if>
-            <if test="videoId != null">
-                video_id,
-            </if>
-            <if test="userId != null">
-                user_id,
-            </if>
-            <if test="outUserId != null">
-                out_user_id,
-            </if>
-            <if test="platform != null">
-                platform,
-            </if>
-            <if test="strategy != null">
-                strategy,
-            </if>
-            <if test="outVideoId != null">
-                out_video_id,
-            </if>
-            <if test="videoTitle != null">
-                video_title,
-            </if>
-            <if test="coverUrl != null">
-                cover_url,
-            </if>
-            <if test="videoUrl != null">
-                video_url,
-            </if>
-            <if test="duration != null">
-                duration,
-            </if>
-            <if test="publishTime != null">
-                publish_time,
-            </if>
-            <if test="playCnt != null">
-                play_cnt,
-            </if>
-            <if test="likeCnt != null">
-                like_cnt,
-            </if>
-            <if test="shareCnt != null">
-                share_cnt,
-            </if>
-            <if test="collectionCnt != null">
-                collection_cnt,
-            </if>
-            <if test="commentCnt != null">
-                comment_cnt,
-            </if>
-            <if test="crawlerRule != null">
-                crawler_rule,
-            </if>
-            <if test="width != null">
-                width,
-            </if>
-            <if test="height != null">
-                height,
-            </if>
-            <if test="titleScore != null">
-                title_score,
-            </if>
-            <if test="createTime != null">
-                create_time,
-            </if>
-            <if test="updateTime != null">
-                update_time,
-            </if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="id != null">
-                #{id,jdbcType=BIGINT},
-            </if>
-            <if test="videoId != null">
-                #{videoId,jdbcType=BIGINT},
-            </if>
-            <if test="userId != null">
-                #{userId,jdbcType=BIGINT},
-            </if>
-            <if test="outUserId != null">
-                #{outUserId,jdbcType=VARCHAR},
-            </if>
-            <if test="platform != null">
-                #{platform,jdbcType=VARCHAR},
-            </if>
-            <if test="strategy != null">
-                #{strategy,jdbcType=VARCHAR},
-            </if>
-            <if test="outVideoId != null">
-                #{outVideoId,jdbcType=VARCHAR},
-            </if>
-            <if test="videoTitle != null">
-                #{videoTitle,jdbcType=VARCHAR},
-            </if>
-            <if test="coverUrl != null">
-                #{coverUrl,jdbcType=VARCHAR},
-            </if>
-            <if test="videoUrl != null">
-                #{videoUrl,jdbcType=VARCHAR},
-            </if>
-            <if test="duration != null">
-                #{duration,jdbcType=BIGINT},
-            </if>
-            <if test="publishTime != null">
-                #{publishTime,jdbcType=VARCHAR},
-            </if>
-            <if test="playCnt != null">
-                #{playCnt,jdbcType=INTEGER},
-            </if>
-            <if test="likeCnt != null">
-                #{likeCnt,jdbcType=INTEGER},
-            </if>
-            <if test="shareCnt != null">
-                #{shareCnt,jdbcType=INTEGER},
-            </if>
-            <if test="collectionCnt != null">
-                #{collectionCnt,jdbcType=INTEGER},
-            </if>
-            <if test="commentCnt != null">
-                #{commentCnt,jdbcType=INTEGER},
-            </if>
-            <if test="crawlerRule != null">
-                #{crawlerRule,jdbcType=CHAR},
-            </if>
-            <if test="width != null">
-                #{width,jdbcType=INTEGER},
-            </if>
-            <if test="height != null">
-                #{height,jdbcType=INTEGER},
-            </if>
-            <if test="titleScore != null">
-                #{titleScore,jdbcType=DOUBLE},
-            </if>
-            <if test="createTime != null">
-                #{createTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="updateTime != null">
-                #{updateTime,jdbcType=TIMESTAMP},
-            </if>
-        </trim>
-    </insert>
-    <select id="countByExample" parameterType="com.tzld.crawler.etl.model.po.CrawlerVideoExample"
-            resultType="java.lang.Long">
-        <!--
-          WARNING - @mbg.generated
-          This element is automatically generated by MyBatis Generator, do not modify.
-        -->
-        select count(*) from crawler_video
-        <if test="_parameter != null">
-            <include refid="Example_Where_Clause"/>
-        </if>
-    </select>
-    <update id="updateByExampleSelective" parameterType="map">
-        <!--
-          WARNING - @mbg.generated
-          This element is automatically generated by MyBatis Generator, do not modify.
-        -->
-        update crawler_video
-        <set>
-            <if test="record.id != null">
-                id = #{record.id,jdbcType=BIGINT},
-            </if>
-            <if test="record.videoId != null">
-                video_id = #{record.videoId,jdbcType=BIGINT},
-            </if>
-            <if test="record.userId != null">
-                user_id = #{record.userId,jdbcType=BIGINT},
-            </if>
-            <if test="record.outUserId != null">
-                out_user_id = #{record.outUserId,jdbcType=VARCHAR},
-            </if>
-            <if test="record.platform != null">
-                platform = #{record.platform,jdbcType=VARCHAR},
-            </if>
-            <if test="record.strategy != null">
-                strategy = #{record.strategy,jdbcType=VARCHAR},
-            </if>
-            <if test="record.outVideoId != null">
-                out_video_id = #{record.outVideoId,jdbcType=VARCHAR},
-            </if>
-            <if test="record.videoTitle != null">
-                video_title = #{record.videoTitle,jdbcType=VARCHAR},
-            </if>
-            <if test="record.coverUrl != null">
-                cover_url = #{record.coverUrl,jdbcType=VARCHAR},
-            </if>
-            <if test="record.videoUrl != null">
-                video_url = #{record.videoUrl,jdbcType=VARCHAR},
-            </if>
-            <if test="record.duration != null">
-                duration = #{record.duration,jdbcType=BIGINT},
-            </if>
-            <if test="record.publishTime != null">
-                publish_time = #{record.publishTime,jdbcType=VARCHAR},
-            </if>
-            <if test="record.playCnt != null">
-                play_cnt = #{record.playCnt,jdbcType=INTEGER},
-            </if>
-            <if test="record.likeCnt != null">
-                like_cnt = #{record.likeCnt,jdbcType=INTEGER},
-            </if>
-            <if test="record.shareCnt != null">
-                share_cnt = #{record.shareCnt,jdbcType=INTEGER},
-            </if>
-            <if test="record.collectionCnt != null">
-                collection_cnt = #{record.collectionCnt,jdbcType=INTEGER},
-            </if>
-            <if test="record.commentCnt != null">
-                comment_cnt = #{record.commentCnt,jdbcType=INTEGER},
-            </if>
-            <if test="record.crawlerRule != null">
-                crawler_rule = #{record.crawlerRule,jdbcType=CHAR},
-            </if>
-            <if test="record.width != null">
-                width = #{record.width,jdbcType=INTEGER},
-            </if>
-            <if test="record.height != null">
-                height = #{record.height,jdbcType=INTEGER},
-            </if>
-            <if test="record.titleScore != null">
-                title_score = #{record.titleScore,jdbcType=DOUBLE},
-            </if>
-            <if test="record.createTime != null">
-                create_time = #{record.createTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="record.updateTime != null">
-                update_time = #{record.updateTime,jdbcType=TIMESTAMP},
-            </if>
-        </set>
-        <if test="_parameter != null">
-            <include refid="Update_By_Example_Where_Clause"/>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <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>
-    </update>
-    <update id="updateByExample" parameterType="map">
-        <!--
-          WARNING - @mbg.generated
-          This element is automatically generated by MyBatis Generator, do not modify.
-        -->
-        update crawler_video
-        set id = #{record.id,jdbcType=BIGINT},
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    id, video_id, user_id, out_user_id, platform, strategy, out_video_id, video_title,
+    cover_url, video_url, duration, publish_time, play_cnt, like_cnt, share_cnt, collection_cnt,
+    comment_cnt, crawler_rule, width, height, title_score, create_time, update_time
+  </sql>
+  <select id="selectByExample" parameterType="com.tzld.crawler.etl.model.po.CrawlerVideoExample"
+          resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List"/>
+    from crawler_video
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause"/>
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <include refid="Base_Column_List"/>
+    from crawler_video
+    where id = #{id,jdbcType=BIGINT}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from crawler_video
+    where id = #{id,jdbcType=BIGINT}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.tzld.crawler.etl.model.po.CrawlerVideoExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from crawler_video
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause"/>
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.tzld.crawler.etl.model.po.CrawlerVideo">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into crawler_video (id, video_id, user_id,
+    out_user_id, platform, strategy,
+    out_video_id, video_title, cover_url,
+    video_url, duration, publish_time,
+    play_cnt, like_cnt, share_cnt,
+    collection_cnt, comment_cnt, crawler_rule,
+    width, height, title_score,
+    create_time, update_time)
+    values (#{id,jdbcType=BIGINT}, #{videoId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT},
+    #{outUserId,jdbcType=VARCHAR}, #{platform,jdbcType=VARCHAR}, #{strategy,jdbcType=VARCHAR},
+    #{outVideoId,jdbcType=VARCHAR}, #{videoTitle,jdbcType=VARCHAR}, #{coverUrl,jdbcType=VARCHAR},
+    #{videoUrl,jdbcType=VARCHAR}, #{duration,jdbcType=BIGINT}, #{publishTime,jdbcType=VARCHAR},
+    #{playCnt,jdbcType=INTEGER}, #{likeCnt,jdbcType=INTEGER}, #{shareCnt,jdbcType=INTEGER},
+    #{collectionCnt,jdbcType=INTEGER}, #{commentCnt,jdbcType=INTEGER}, #{crawlerRule,jdbcType=CHAR},
+    #{width,jdbcType=INTEGER}, #{height,jdbcType=INTEGER}, #{titleScore,jdbcType=DOUBLE},
+    #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
+  </insert>
+  <insert id="insertSelective" parameterType="com.tzld.crawler.etl.model.po.CrawlerVideo">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into crawler_video
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="videoId != null">
+        video_id,
+      </if>
+      <if test="userId != null">
+        user_id,
+      </if>
+      <if test="outUserId != null">
+        out_user_id,
+      </if>
+      <if test="platform != null">
+        platform,
+      </if>
+      <if test="strategy != null">
+        strategy,
+      </if>
+      <if test="outVideoId != null">
+        out_video_id,
+      </if>
+      <if test="videoTitle != null">
+        video_title,
+      </if>
+      <if test="coverUrl != null">
+        cover_url,
+      </if>
+      <if test="videoUrl != null">
+        video_url,
+      </if>
+      <if test="duration != null">
+        duration,
+      </if>
+      <if test="publishTime != null">
+        publish_time,
+      </if>
+      <if test="playCnt != null">
+        play_cnt,
+      </if>
+      <if test="likeCnt != null">
+        like_cnt,
+      </if>
+      <if test="shareCnt != null">
+        share_cnt,
+      </if>
+      <if test="collectionCnt != null">
+        collection_cnt,
+      </if>
+      <if test="commentCnt != null">
+        comment_cnt,
+      </if>
+      <if test="crawlerRule != null">
+        crawler_rule,
+      </if>
+      <if test="width != null">
+        width,
+      </if>
+      <if test="height != null">
+        height,
+      </if>
+      <if test="titleScore != null">
+        title_score,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+      <if test="updateTime != null">
+        update_time,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=BIGINT},
+      </if>
+      <if test="videoId != null">
+        #{videoId,jdbcType=BIGINT},
+      </if>
+      <if test="userId != null">
+        #{userId,jdbcType=BIGINT},
+      </if>
+      <if test="outUserId != null">
+        #{outUserId,jdbcType=VARCHAR},
+      </if>
+      <if test="platform != null">
+        #{platform,jdbcType=VARCHAR},
+      </if>
+      <if test="strategy != null">
+        #{strategy,jdbcType=VARCHAR},
+      </if>
+      <if test="outVideoId != null">
+        #{outVideoId,jdbcType=VARCHAR},
+      </if>
+      <if test="videoTitle != null">
+        #{videoTitle,jdbcType=VARCHAR},
+      </if>
+      <if test="coverUrl != null">
+        #{coverUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="videoUrl != null">
+        #{videoUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="duration != null">
+        #{duration,jdbcType=BIGINT},
+      </if>
+      <if test="publishTime != null">
+        #{publishTime,jdbcType=VARCHAR},
+      </if>
+      <if test="playCnt != null">
+        #{playCnt,jdbcType=INTEGER},
+      </if>
+      <if test="likeCnt != null">
+        #{likeCnt,jdbcType=INTEGER},
+      </if>
+      <if test="shareCnt != null">
+        #{shareCnt,jdbcType=INTEGER},
+      </if>
+      <if test="collectionCnt != null">
+        #{collectionCnt,jdbcType=INTEGER},
+      </if>
+      <if test="commentCnt != null">
+        #{commentCnt,jdbcType=INTEGER},
+      </if>
+      <if test="crawlerRule != null">
+        #{crawlerRule,jdbcType=CHAR},
+      </if>
+      <if test="width != null">
+        #{width,jdbcType=INTEGER},
+      </if>
+      <if test="height != null">
+        #{height,jdbcType=INTEGER},
+      </if>
+      <if test="titleScore != null">
+        #{titleScore,jdbcType=DOUBLE},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.tzld.crawler.etl.model.po.CrawlerVideoExample"
+          resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from crawler_video
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause"/>
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update crawler_video
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=BIGINT},
+      </if>
+      <if test="record.videoId != null">
         video_id = #{record.videoId,jdbcType=BIGINT},
+      </if>
+      <if test="record.userId != null">
         user_id = #{record.userId,jdbcType=BIGINT},
+      </if>
+      <if test="record.outUserId != null">
         out_user_id = #{record.outUserId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.platform != null">
         platform = #{record.platform,jdbcType=VARCHAR},
+      </if>
+      <if test="record.strategy != null">
         strategy = #{record.strategy,jdbcType=VARCHAR},
+      </if>
+      <if test="record.outVideoId != null">
         out_video_id = #{record.outVideoId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.videoTitle != null">
         video_title = #{record.videoTitle,jdbcType=VARCHAR},
+      </if>
+      <if test="record.coverUrl != null">
         cover_url = #{record.coverUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="record.videoUrl != null">
         video_url = #{record.videoUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="record.duration != null">
         duration = #{record.duration,jdbcType=BIGINT},
+      </if>
+      <if test="record.publishTime != null">
         publish_time = #{record.publishTime,jdbcType=VARCHAR},
+      </if>
+      <if test="record.playCnt != null">
         play_cnt = #{record.playCnt,jdbcType=INTEGER},
+      </if>
+      <if test="record.likeCnt != null">
         like_cnt = #{record.likeCnt,jdbcType=INTEGER},
+      </if>
+      <if test="record.shareCnt != null">
         share_cnt = #{record.shareCnt,jdbcType=INTEGER},
+      </if>
+      <if test="record.collectionCnt != null">
         collection_cnt = #{record.collectionCnt,jdbcType=INTEGER},
+      </if>
+      <if test="record.commentCnt != null">
         comment_cnt = #{record.commentCnt,jdbcType=INTEGER},
+      </if>
+      <if test="record.crawlerRule != null">
         crawler_rule = #{record.crawlerRule,jdbcType=CHAR},
+      </if>
+      <if test="record.width != null">
         width = #{record.width,jdbcType=INTEGER},
+      </if>
+      <if test="record.height != null">
         height = #{record.height,jdbcType=INTEGER},
+      </if>
+      <if test="record.titleScore != null">
         title_score = #{record.titleScore,jdbcType=DOUBLE},
+      </if>
+      <if test="record.createTime != null">
         create_time = #{record.createTime,jdbcType=TIMESTAMP},
-        update_time = #{record.updateTime,jdbcType=TIMESTAMP}
-        <if test="_parameter != null">
-            <include refid="Update_By_Example_Where_Clause"/>
-        </if>
-    </update>
-    <update id="updateByPrimaryKeySelective" parameterType="com.tzld.crawler.etl.model.po.CrawlerVideo">
-        <!--
-          WARNING - @mbg.generated
-          This element is automatically generated by MyBatis Generator, do not modify.
-        -->
-        update crawler_video
-        <set>
-            <if test="videoId != null">
-                video_id = #{videoId,jdbcType=BIGINT},
-            </if>
-            <if test="userId != null">
-                user_id = #{userId,jdbcType=BIGINT},
-            </if>
-            <if test="outUserId != null">
-                out_user_id = #{outUserId,jdbcType=VARCHAR},
-            </if>
-            <if test="platform != null">
-                platform = #{platform,jdbcType=VARCHAR},
-            </if>
-            <if test="strategy != null">
-                strategy = #{strategy,jdbcType=VARCHAR},
-            </if>
-            <if test="outVideoId != null">
-                out_video_id = #{outVideoId,jdbcType=VARCHAR},
-            </if>
-            <if test="videoTitle != null">
-                video_title = #{videoTitle,jdbcType=VARCHAR},
-            </if>
-            <if test="coverUrl != null">
-                cover_url = #{coverUrl,jdbcType=VARCHAR},
-            </if>
-            <if test="videoUrl != null">
-                video_url = #{videoUrl,jdbcType=VARCHAR},
-            </if>
-            <if test="duration != null">
-                duration = #{duration,jdbcType=BIGINT},
-            </if>
-            <if test="publishTime != null">
-                publish_time = #{publishTime,jdbcType=VARCHAR},
-            </if>
-            <if test="playCnt != null">
-                play_cnt = #{playCnt,jdbcType=INTEGER},
-            </if>
-            <if test="likeCnt != null">
-                like_cnt = #{likeCnt,jdbcType=INTEGER},
-            </if>
-            <if test="shareCnt != null">
-                share_cnt = #{shareCnt,jdbcType=INTEGER},
-            </if>
-            <if test="collectionCnt != null">
-                collection_cnt = #{collectionCnt,jdbcType=INTEGER},
-            </if>
-            <if test="commentCnt != null">
-                comment_cnt = #{commentCnt,jdbcType=INTEGER},
-            </if>
-            <if test="crawlerRule != null">
-                crawler_rule = #{crawlerRule,jdbcType=CHAR},
-            </if>
-            <if test="width != null">
-                width = #{width,jdbcType=INTEGER},
-            </if>
-            <if test="height != null">
-                height = #{height,jdbcType=INTEGER},
-            </if>
-            <if test="titleScore != null">
-                title_score = #{titleScore,jdbcType=DOUBLE},
-            </if>
-            <if test="createTime != null">
-                create_time = #{createTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="updateTime != null">
-                update_time = #{updateTime,jdbcType=TIMESTAMP},
-            </if>
-        </set>
-        where id = #{id,jdbcType=BIGINT}
-    </update>
-    <update id="updateByPrimaryKey" parameterType="com.tzld.crawler.etl.model.po.CrawlerVideo">
-        <!--
-          WARNING - @mbg.generated
-          This element is automatically generated by MyBatis Generator, do not modify.
-        -->
-        update crawler_video
-        set video_id = #{videoId,jdbcType=BIGINT},
+      </if>
+      <if test="record.updateTime != null">
+        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause"/>
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update crawler_video
+    set id = #{record.id,jdbcType=BIGINT},
+    video_id = #{record.videoId,jdbcType=BIGINT},
+    user_id = #{record.userId,jdbcType=BIGINT},
+    out_user_id = #{record.outUserId,jdbcType=VARCHAR},
+    platform = #{record.platform,jdbcType=VARCHAR},
+    strategy = #{record.strategy,jdbcType=VARCHAR},
+    out_video_id = #{record.outVideoId,jdbcType=VARCHAR},
+    video_title = #{record.videoTitle,jdbcType=VARCHAR},
+    cover_url = #{record.coverUrl,jdbcType=VARCHAR},
+    video_url = #{record.videoUrl,jdbcType=VARCHAR},
+    duration = #{record.duration,jdbcType=BIGINT},
+    publish_time = #{record.publishTime,jdbcType=VARCHAR},
+    play_cnt = #{record.playCnt,jdbcType=INTEGER},
+    like_cnt = #{record.likeCnt,jdbcType=INTEGER},
+    share_cnt = #{record.shareCnt,jdbcType=INTEGER},
+    collection_cnt = #{record.collectionCnt,jdbcType=INTEGER},
+    comment_cnt = #{record.commentCnt,jdbcType=INTEGER},
+    crawler_rule = #{record.crawlerRule,jdbcType=CHAR},
+    width = #{record.width,jdbcType=INTEGER},
+    height = #{record.height,jdbcType=INTEGER},
+    title_score = #{record.titleScore,jdbcType=DOUBLE},
+    create_time = #{record.createTime,jdbcType=TIMESTAMP},
+    update_time = #{record.updateTime,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause"/>
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.tzld.crawler.etl.model.po.CrawlerVideo">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update crawler_video
+    <set>
+      <if test="videoId != null">
+        video_id = #{videoId,jdbcType=BIGINT},
+      </if>
+      <if test="userId != null">
         user_id = #{userId,jdbcType=BIGINT},
+      </if>
+      <if test="outUserId != null">
         out_user_id = #{outUserId,jdbcType=VARCHAR},
+      </if>
+      <if test="platform != null">
         platform = #{platform,jdbcType=VARCHAR},
+      </if>
+      <if test="strategy != null">
         strategy = #{strategy,jdbcType=VARCHAR},
+      </if>
+      <if test="outVideoId != null">
         out_video_id = #{outVideoId,jdbcType=VARCHAR},
+      </if>
+      <if test="videoTitle != null">
         video_title = #{videoTitle,jdbcType=VARCHAR},
+      </if>
+      <if test="coverUrl != null">
         cover_url = #{coverUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="videoUrl != null">
         video_url = #{videoUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="duration != null">
         duration = #{duration,jdbcType=BIGINT},
+      </if>
+      <if test="publishTime != null">
         publish_time = #{publishTime,jdbcType=VARCHAR},
+      </if>
+      <if test="playCnt != null">
         play_cnt = #{playCnt,jdbcType=INTEGER},
+      </if>
+      <if test="likeCnt != null">
         like_cnt = #{likeCnt,jdbcType=INTEGER},
+      </if>
+      <if test="shareCnt != null">
         share_cnt = #{shareCnt,jdbcType=INTEGER},
+      </if>
+      <if test="collectionCnt != null">
         collection_cnt = #{collectionCnt,jdbcType=INTEGER},
+      </if>
+      <if test="commentCnt != null">
         comment_cnt = #{commentCnt,jdbcType=INTEGER},
+      </if>
+      <if test="crawlerRule != null">
         crawler_rule = #{crawlerRule,jdbcType=CHAR},
+      </if>
+      <if test="width != null">
         width = #{width,jdbcType=INTEGER},
+      </if>
+      <if test="height != null">
         height = #{height,jdbcType=INTEGER},
+      </if>
+      <if test="titleScore != null">
         title_score = #{titleScore,jdbcType=DOUBLE},
+      </if>
+      <if test="createTime != null">
         create_time = #{createTime,jdbcType=TIMESTAMP},
-        update_time = #{updateTime,jdbcType=TIMESTAMP}
-        where id = #{id,jdbcType=BIGINT}
-    </update>
+      </if>
+      <if test="updateTime != null">
+        update_time = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.tzld.crawler.etl.model.po.CrawlerVideo">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update crawler_video
+    set video_id = #{videoId,jdbcType=BIGINT},
+    user_id = #{userId,jdbcType=BIGINT},
+    out_user_id = #{outUserId,jdbcType=VARCHAR},
+    platform = #{platform,jdbcType=VARCHAR},
+    strategy = #{strategy,jdbcType=VARCHAR},
+    out_video_id = #{outVideoId,jdbcType=VARCHAR},
+    video_title = #{videoTitle,jdbcType=VARCHAR},
+    cover_url = #{coverUrl,jdbcType=VARCHAR},
+    video_url = #{videoUrl,jdbcType=VARCHAR},
+    duration = #{duration,jdbcType=BIGINT},
+    publish_time = #{publishTime,jdbcType=VARCHAR},
+    play_cnt = #{playCnt,jdbcType=INTEGER},
+    like_cnt = #{likeCnt,jdbcType=INTEGER},
+    share_cnt = #{shareCnt,jdbcType=INTEGER},
+    collection_cnt = #{collectionCnt,jdbcType=INTEGER},
+    comment_cnt = #{commentCnt,jdbcType=INTEGER},
+    crawler_rule = #{crawlerRule,jdbcType=CHAR},
+    width = #{width,jdbcType=INTEGER},
+    height = #{height,jdbcType=INTEGER},
+    title_score = #{titleScore,jdbcType=DOUBLE},
+    create_time = #{createTime,jdbcType=TIMESTAMP},
+    update_time = #{updateTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=BIGINT}
+  </update>
 </mapper>