123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563 |
- <?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.longarticle.dao.mapper.longarticle.PublishMiniprogramMapper">
- <resultMap id="BaseResultMap" type="com.tzld.piaoquan.longarticle.model.po.longarticle.PublishMiniprogram">
- <id column="id" jdbcType="BIGINT" property="id" />
- <result column="content_id" jdbcType="BIGINT" property="contentId" />
- <result column="plan_account_id" jdbcType="BIGINT" property="planAccountId" />
- <result column="publish_content_id" jdbcType="VARCHAR" property="publishContentId" />
- <result column="app_id" jdbcType="VARCHAR" property="appId" />
- <result column="app_name" jdbcType="VARCHAR" property="appName" />
- <result column="avatar" jdbcType="VARCHAR" property="avatar" />
- <result column="mini_id" jdbcType="INTEGER" property="miniId" />
- <result column="mini_program_type" jdbcType="INTEGER" property="miniProgramType" />
- <result column="video_id" jdbcType="BIGINT" property="videoId" />
- <result column="source" jdbcType="VARCHAR" property="source" />
- <result column="video_title" jdbcType="VARCHAR" property="videoTitle" />
- <result column="video_cover" jdbcType="VARCHAR" property="videoCover" />
- <result column="video_path" jdbcType="VARCHAR" property="videoPath" />
- <result column="production_path" jdbcType="VARCHAR" property="productionPath" />
- <result column="root_source_id" jdbcType="VARCHAR" property="rootSourceId" />
- <result column="root_share_id" jdbcType="VARCHAR" property="rootShareId" />
- <result column="index" jdbcType="INTEGER" property="index" />
- <result column="trace_id" jdbcType="VARCHAR" property="traceId" />
- <result column="wx_url" jdbcType="VARCHAR" property="wxUrl" />
- <result column="crawler_video_id" jdbcType="INTEGER" property="crawlerVideoId" />
- <result column="video_oss_path" jdbcType="VARCHAR" property="videoOssPath" />
- <result column="user_id" jdbcType="VARCHAR" property="userId" />
- <result column="new_video_cover_id" jdbcType="BIGINT" property="newVideoCoverId" />
- <result column="is_delete" jdbcType="INTEGER" property="isDelete" />
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
- <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
- </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, content_id, plan_account_id, publish_content_id, app_id, app_name, avatar, mini_id,
- mini_program_type, video_id, `source`, video_title, video_cover, video_path, production_path,
- root_source_id, root_share_id, `index`, trace_id, wx_url, crawler_video_id, video_oss_path,
- user_id, new_video_cover_id, is_delete, create_time, update_time
- </sql>
- <select id="selectByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.PublishMiniprogramExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from long_articles_publish_miniprogram
- <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 long_articles_publish_miniprogram
- where id = #{id,jdbcType=BIGINT}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
- delete from long_articles_publish_miniprogram
- where id = #{id,jdbcType=BIGINT}
- </delete>
- <delete id="deleteByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.PublishMiniprogramExample">
- delete from long_articles_publish_miniprogram
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.PublishMiniprogram">
- insert into long_articles_publish_miniprogram (id, content_id, plan_account_id,
- publish_content_id, app_id, app_name,
- avatar, mini_id, mini_program_type,
- video_id, `source`, video_title,
- video_cover, video_path, production_path,
- root_source_id, root_share_id, `index`,
- trace_id, wx_url, crawler_video_id,
- video_oss_path, user_id, new_video_cover_id,
- is_delete, create_time, update_time
- )
- values (#{id,jdbcType=BIGINT}, #{contentId,jdbcType=BIGINT}, #{planAccountId,jdbcType=BIGINT},
- #{publishContentId,jdbcType=VARCHAR}, #{appId,jdbcType=VARCHAR}, #{appName,jdbcType=VARCHAR},
- #{avatar,jdbcType=VARCHAR}, #{miniId,jdbcType=INTEGER}, #{miniProgramType,jdbcType=INTEGER},
- #{videoId,jdbcType=BIGINT}, #{source,jdbcType=VARCHAR}, #{videoTitle,jdbcType=VARCHAR},
- #{videoCover,jdbcType=VARCHAR}, #{videoPath,jdbcType=VARCHAR}, #{productionPath,jdbcType=VARCHAR},
- #{rootSourceId,jdbcType=VARCHAR}, #{rootShareId,jdbcType=VARCHAR}, #{index,jdbcType=INTEGER},
- #{traceId,jdbcType=VARCHAR}, #{wxUrl,jdbcType=VARCHAR}, #{crawlerVideoId,jdbcType=INTEGER},
- #{videoOssPath,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{newVideoCoverId,jdbcType=BIGINT},
- #{isDelete,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.PublishMiniprogram">
- insert into long_articles_publish_miniprogram
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="contentId != null">
- content_id,
- </if>
- <if test="planAccountId != null">
- plan_account_id,
- </if>
- <if test="publishContentId != null">
- publish_content_id,
- </if>
- <if test="appId != null">
- app_id,
- </if>
- <if test="appName != null">
- app_name,
- </if>
- <if test="avatar != null">
- avatar,
- </if>
- <if test="miniId != null">
- mini_id,
- </if>
- <if test="miniProgramType != null">
- mini_program_type,
- </if>
- <if test="videoId != null">
- video_id,
- </if>
- <if test="source != null">
- `source`,
- </if>
- <if test="videoTitle != null">
- video_title,
- </if>
- <if test="videoCover != null">
- video_cover,
- </if>
- <if test="videoPath != null">
- video_path,
- </if>
- <if test="productionPath != null">
- production_path,
- </if>
- <if test="rootSourceId != null">
- root_source_id,
- </if>
- <if test="rootShareId != null">
- root_share_id,
- </if>
- <if test="index != null">
- `index`,
- </if>
- <if test="traceId != null">
- trace_id,
- </if>
- <if test="wxUrl != null">
- wx_url,
- </if>
- <if test="crawlerVideoId != null">
- crawler_video_id,
- </if>
- <if test="videoOssPath != null">
- video_oss_path,
- </if>
- <if test="userId != null">
- user_id,
- </if>
- <if test="newVideoCoverId != null">
- new_video_cover_id,
- </if>
- <if test="isDelete != null">
- is_delete,
- </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="contentId != null">
- #{contentId,jdbcType=BIGINT},
- </if>
- <if test="planAccountId != null">
- #{planAccountId,jdbcType=BIGINT},
- </if>
- <if test="publishContentId != null">
- #{publishContentId,jdbcType=VARCHAR},
- </if>
- <if test="appId != null">
- #{appId,jdbcType=VARCHAR},
- </if>
- <if test="appName != null">
- #{appName,jdbcType=VARCHAR},
- </if>
- <if test="avatar != null">
- #{avatar,jdbcType=VARCHAR},
- </if>
- <if test="miniId != null">
- #{miniId,jdbcType=INTEGER},
- </if>
- <if test="miniProgramType != null">
- #{miniProgramType,jdbcType=INTEGER},
- </if>
- <if test="videoId != null">
- #{videoId,jdbcType=BIGINT},
- </if>
- <if test="source != null">
- #{source,jdbcType=VARCHAR},
- </if>
- <if test="videoTitle != null">
- #{videoTitle,jdbcType=VARCHAR},
- </if>
- <if test="videoCover != null">
- #{videoCover,jdbcType=VARCHAR},
- </if>
- <if test="videoPath != null">
- #{videoPath,jdbcType=VARCHAR},
- </if>
- <if test="productionPath != null">
- #{productionPath,jdbcType=VARCHAR},
- </if>
- <if test="rootSourceId != null">
- #{rootSourceId,jdbcType=VARCHAR},
- </if>
- <if test="rootShareId != null">
- #{rootShareId,jdbcType=VARCHAR},
- </if>
- <if test="index != null">
- #{index,jdbcType=INTEGER},
- </if>
- <if test="traceId != null">
- #{traceId,jdbcType=VARCHAR},
- </if>
- <if test="wxUrl != null">
- #{wxUrl,jdbcType=VARCHAR},
- </if>
- <if test="crawlerVideoId != null">
- #{crawlerVideoId,jdbcType=INTEGER},
- </if>
- <if test="videoOssPath != null">
- #{videoOssPath,jdbcType=VARCHAR},
- </if>
- <if test="userId != null">
- #{userId,jdbcType=VARCHAR},
- </if>
- <if test="newVideoCoverId != null">
- #{newVideoCoverId,jdbcType=BIGINT},
- </if>
- <if test="isDelete != null">
- #{isDelete,jdbcType=INTEGER},
- </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.piaoquan.longarticle.model.po.longarticle.PublishMiniprogramExample" resultType="java.lang.Long">
- select count(*) from long_articles_publish_miniprogram
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update long_articles_publish_miniprogram
- <set>
- <if test="record.id != null">
- id = #{record.id,jdbcType=BIGINT},
- </if>
- <if test="record.contentId != null">
- content_id = #{record.contentId,jdbcType=BIGINT},
- </if>
- <if test="record.planAccountId != null">
- plan_account_id = #{record.planAccountId,jdbcType=BIGINT},
- </if>
- <if test="record.publishContentId != null">
- publish_content_id = #{record.publishContentId,jdbcType=VARCHAR},
- </if>
- <if test="record.appId != null">
- app_id = #{record.appId,jdbcType=VARCHAR},
- </if>
- <if test="record.appName != null">
- app_name = #{record.appName,jdbcType=VARCHAR},
- </if>
- <if test="record.avatar != null">
- avatar = #{record.avatar,jdbcType=VARCHAR},
- </if>
- <if test="record.miniId != null">
- mini_id = #{record.miniId,jdbcType=INTEGER},
- </if>
- <if test="record.miniProgramType != null">
- mini_program_type = #{record.miniProgramType,jdbcType=INTEGER},
- </if>
- <if test="record.videoId != null">
- video_id = #{record.videoId,jdbcType=BIGINT},
- </if>
- <if test="record.source != null">
- `source` = #{record.source,jdbcType=VARCHAR},
- </if>
- <if test="record.videoTitle != null">
- video_title = #{record.videoTitle,jdbcType=VARCHAR},
- </if>
- <if test="record.videoCover != null">
- video_cover = #{record.videoCover,jdbcType=VARCHAR},
- </if>
- <if test="record.videoPath != null">
- video_path = #{record.videoPath,jdbcType=VARCHAR},
- </if>
- <if test="record.productionPath != null">
- production_path = #{record.productionPath,jdbcType=VARCHAR},
- </if>
- <if test="record.rootSourceId != null">
- root_source_id = #{record.rootSourceId,jdbcType=VARCHAR},
- </if>
- <if test="record.rootShareId != null">
- root_share_id = #{record.rootShareId,jdbcType=VARCHAR},
- </if>
- <if test="record.index != null">
- `index` = #{record.index,jdbcType=INTEGER},
- </if>
- <if test="record.traceId != null">
- trace_id = #{record.traceId,jdbcType=VARCHAR},
- </if>
- <if test="record.wxUrl != null">
- wx_url = #{record.wxUrl,jdbcType=VARCHAR},
- </if>
- <if test="record.crawlerVideoId != null">
- crawler_video_id = #{record.crawlerVideoId,jdbcType=INTEGER},
- </if>
- <if test="record.videoOssPath != null">
- video_oss_path = #{record.videoOssPath,jdbcType=VARCHAR},
- </if>
- <if test="record.userId != null">
- user_id = #{record.userId,jdbcType=VARCHAR},
- </if>
- <if test="record.newVideoCoverId != null">
- new_video_cover_id = #{record.newVideoCoverId,jdbcType=BIGINT},
- </if>
- <if test="record.isDelete != null">
- is_delete = #{record.isDelete,jdbcType=INTEGER},
- </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">
- update long_articles_publish_miniprogram
- set id = #{record.id,jdbcType=BIGINT},
- content_id = #{record.contentId,jdbcType=BIGINT},
- plan_account_id = #{record.planAccountId,jdbcType=BIGINT},
- publish_content_id = #{record.publishContentId,jdbcType=VARCHAR},
- app_id = #{record.appId,jdbcType=VARCHAR},
- app_name = #{record.appName,jdbcType=VARCHAR},
- avatar = #{record.avatar,jdbcType=VARCHAR},
- mini_id = #{record.miniId,jdbcType=INTEGER},
- mini_program_type = #{record.miniProgramType,jdbcType=INTEGER},
- video_id = #{record.videoId,jdbcType=BIGINT},
- `source` = #{record.source,jdbcType=VARCHAR},
- video_title = #{record.videoTitle,jdbcType=VARCHAR},
- video_cover = #{record.videoCover,jdbcType=VARCHAR},
- video_path = #{record.videoPath,jdbcType=VARCHAR},
- production_path = #{record.productionPath,jdbcType=VARCHAR},
- root_source_id = #{record.rootSourceId,jdbcType=VARCHAR},
- root_share_id = #{record.rootShareId,jdbcType=VARCHAR},
- `index` = #{record.index,jdbcType=INTEGER},
- trace_id = #{record.traceId,jdbcType=VARCHAR},
- wx_url = #{record.wxUrl,jdbcType=VARCHAR},
- crawler_video_id = #{record.crawlerVideoId,jdbcType=INTEGER},
- video_oss_path = #{record.videoOssPath,jdbcType=VARCHAR},
- user_id = #{record.userId,jdbcType=VARCHAR},
- new_video_cover_id = #{record.newVideoCoverId,jdbcType=BIGINT},
- is_delete = #{record.isDelete,jdbcType=INTEGER},
- 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.piaoquan.longarticle.model.po.longarticle.PublishMiniprogram">
- update long_articles_publish_miniprogram
- <set>
- <if test="contentId != null">
- content_id = #{contentId,jdbcType=BIGINT},
- </if>
- <if test="planAccountId != null">
- plan_account_id = #{planAccountId,jdbcType=BIGINT},
- </if>
- <if test="publishContentId != null">
- publish_content_id = #{publishContentId,jdbcType=VARCHAR},
- </if>
- <if test="appId != null">
- app_id = #{appId,jdbcType=VARCHAR},
- </if>
- <if test="appName != null">
- app_name = #{appName,jdbcType=VARCHAR},
- </if>
- <if test="avatar != null">
- avatar = #{avatar,jdbcType=VARCHAR},
- </if>
- <if test="miniId != null">
- mini_id = #{miniId,jdbcType=INTEGER},
- </if>
- <if test="miniProgramType != null">
- mini_program_type = #{miniProgramType,jdbcType=INTEGER},
- </if>
- <if test="videoId != null">
- video_id = #{videoId,jdbcType=BIGINT},
- </if>
- <if test="source != null">
- `source` = #{source,jdbcType=VARCHAR},
- </if>
- <if test="videoTitle != null">
- video_title = #{videoTitle,jdbcType=VARCHAR},
- </if>
- <if test="videoCover != null">
- video_cover = #{videoCover,jdbcType=VARCHAR},
- </if>
- <if test="videoPath != null">
- video_path = #{videoPath,jdbcType=VARCHAR},
- </if>
- <if test="productionPath != null">
- production_path = #{productionPath,jdbcType=VARCHAR},
- </if>
- <if test="rootSourceId != null">
- root_source_id = #{rootSourceId,jdbcType=VARCHAR},
- </if>
- <if test="rootShareId != null">
- root_share_id = #{rootShareId,jdbcType=VARCHAR},
- </if>
- <if test="index != null">
- `index` = #{index,jdbcType=INTEGER},
- </if>
- <if test="traceId != null">
- trace_id = #{traceId,jdbcType=VARCHAR},
- </if>
- <if test="wxUrl != null">
- wx_url = #{wxUrl,jdbcType=VARCHAR},
- </if>
- <if test="crawlerVideoId != null">
- crawler_video_id = #{crawlerVideoId,jdbcType=INTEGER},
- </if>
- <if test="videoOssPath != null">
- video_oss_path = #{videoOssPath,jdbcType=VARCHAR},
- </if>
- <if test="userId != null">
- user_id = #{userId,jdbcType=VARCHAR},
- </if>
- <if test="newVideoCoverId != null">
- new_video_cover_id = #{newVideoCoverId,jdbcType=BIGINT},
- </if>
- <if test="isDelete != null">
- is_delete = #{isDelete,jdbcType=INTEGER},
- </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.piaoquan.longarticle.model.po.longarticle.PublishMiniprogram">
- update long_articles_publish_miniprogram
- set content_id = #{contentId,jdbcType=BIGINT},
- plan_account_id = #{planAccountId,jdbcType=BIGINT},
- publish_content_id = #{publishContentId,jdbcType=VARCHAR},
- app_id = #{appId,jdbcType=VARCHAR},
- app_name = #{appName,jdbcType=VARCHAR},
- avatar = #{avatar,jdbcType=VARCHAR},
- mini_id = #{miniId,jdbcType=INTEGER},
- mini_program_type = #{miniProgramType,jdbcType=INTEGER},
- video_id = #{videoId,jdbcType=BIGINT},
- `source` = #{source,jdbcType=VARCHAR},
- video_title = #{videoTitle,jdbcType=VARCHAR},
- video_cover = #{videoCover,jdbcType=VARCHAR},
- video_path = #{videoPath,jdbcType=VARCHAR},
- production_path = #{productionPath,jdbcType=VARCHAR},
- root_source_id = #{rootSourceId,jdbcType=VARCHAR},
- root_share_id = #{rootShareId,jdbcType=VARCHAR},
- `index` = #{index,jdbcType=INTEGER},
- trace_id = #{traceId,jdbcType=VARCHAR},
- wx_url = #{wxUrl,jdbcType=VARCHAR},
- crawler_video_id = #{crawlerVideoId,jdbcType=INTEGER},
- video_oss_path = #{videoOssPath,jdbcType=VARCHAR},
- user_id = #{userId,jdbcType=VARCHAR},
- new_video_cover_id = #{newVideoCoverId,jdbcType=BIGINT},
- is_delete = #{isDelete,jdbcType=INTEGER},
- create_time = #{createTime,jdbcType=TIMESTAMP},
- update_time = #{updateTime,jdbcType=TIMESTAMP}
- where id = #{id,jdbcType=BIGINT}
- </update>
- </mapper>
|