123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559 |
- <?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>
- </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"/>
- </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"/>
- </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},
- </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>
|