|
@@ -5,6 +5,8 @@
|
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
|
<result column="strategy" jdbcType="VARCHAR" property="strategy" />
|
|
<result column="strategy" jdbcType="VARCHAR" property="strategy" />
|
|
|
<result column="sort" jdbcType="INTEGER" property="sort" />
|
|
<result column="sort" jdbcType="INTEGER" property="sort" />
|
|
|
|
|
+ <result column="batch" jdbcType="VARCHAR" property="batch" />
|
|
|
|
|
+ <result column="batch_sort" jdbcType="INTEGER" property="batchSort" />
|
|
|
<result column="strategy_dt" jdbcType="VARCHAR" property="strategyDt" />
|
|
<result column="strategy_dt" jdbcType="VARCHAR" property="strategyDt" />
|
|
|
<result column="gh_id" jdbcType="VARCHAR" property="ghId" />
|
|
<result column="gh_id" jdbcType="VARCHAR" property="ghId" />
|
|
|
<result column="msg_type" jdbcType="INTEGER" property="msgType" />
|
|
<result column="msg_type" jdbcType="INTEGER" property="msgType" />
|
|
@@ -80,8 +82,8 @@
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
- id, strategy, sort, strategy_dt, gh_id, msg_type, title, cover_url, mini_app_id,
|
|
|
|
|
- mini_page_path, mini_video_id, root_source_id, page_path_url_id, news_publish_content_id,
|
|
|
|
|
|
|
+ id, strategy, sort, batch, batch_sort, strategy_dt, gh_id, msg_type, title, cover_url,
|
|
|
|
|
+ mini_app_id, mini_page_path, mini_video_id, root_source_id, page_path_url_id, news_publish_content_id,
|
|
|
plan_id, is_delete, create_time, update_time
|
|
plan_id, is_delete, create_time, update_time
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketDataExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketDataExample" resultMap="BaseResultMap">
|
|
@@ -102,7 +104,7 @@
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
- select
|
|
|
|
|
|
|
+ select
|
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
|
from cgi_reply_bucket_data
|
|
from cgi_reply_bucket_data
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
@@ -118,25 +120,22 @@
|
|
|
</if>
|
|
</if>
|
|
|
</delete>
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketData">
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketData">
|
|
|
- insert into cgi_reply_bucket_data (id, strategy, sort,
|
|
|
|
|
- strategy_dt, gh_id, msg_type,
|
|
|
|
|
- title, cover_url, mini_app_id,
|
|
|
|
|
- mini_page_path, mini_video_id, root_source_id,
|
|
|
|
|
- page_path_url_id, news_publish_content_id, plan_id,
|
|
|
|
|
- is_delete, create_time, update_time
|
|
|
|
|
- )
|
|
|
|
|
- values (#{id,jdbcType=BIGINT}, #{strategy,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER},
|
|
|
|
|
- #{strategyDt,jdbcType=VARCHAR}, #{ghId,jdbcType=VARCHAR}, #{msgType,jdbcType=INTEGER},
|
|
|
|
|
- #{title,jdbcType=VARCHAR}, #{coverUrl,jdbcType=VARCHAR}, #{miniAppId,jdbcType=VARCHAR},
|
|
|
|
|
- #{miniPagePath,jdbcType=VARCHAR}, #{miniVideoId,jdbcType=BIGINT}, #{rootSourceId,jdbcType=VARCHAR},
|
|
|
|
|
- #{pagePathUrlId,jdbcType=BIGINT}, #{newsPublishContentId,jdbcType=VARCHAR}, #{planId,jdbcType=VARCHAR},
|
|
|
|
|
- #{isDelete,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ insert into cgi_reply_bucket_data (id, strategy, sort,
|
|
|
|
|
+ batch, batch_sort, strategy_dt,
|
|
|
|
|
+ gh_id, msg_type, title,
|
|
|
|
|
+ cover_url, mini_app_id, mini_page_path,
|
|
|
|
|
+ mini_video_id, root_source_id, page_path_url_id,
|
|
|
|
|
+ news_publish_content_id, plan_id, is_delete,
|
|
|
|
|
+ create_time, update_time)
|
|
|
|
|
+ values (#{id,jdbcType=BIGINT}, #{strategy,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER},
|
|
|
|
|
+ #{batch,jdbcType=VARCHAR}, #{batchSort,jdbcType=INTEGER}, #{strategyDt,jdbcType=VARCHAR},
|
|
|
|
|
+ #{ghId,jdbcType=VARCHAR}, #{msgType,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR},
|
|
|
|
|
+ #{coverUrl,jdbcType=VARCHAR}, #{miniAppId,jdbcType=VARCHAR}, #{miniPagePath,jdbcType=VARCHAR},
|
|
|
|
|
+ #{miniVideoId,jdbcType=BIGINT}, #{rootSourceId,jdbcType=VARCHAR}, #{pagePathUrlId,jdbcType=BIGINT},
|
|
|
|
|
+ #{newsPublishContentId,jdbcType=VARCHAR}, #{planId,jdbcType=VARCHAR}, #{isDelete,jdbcType=INTEGER},
|
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketData">
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketData">
|
|
|
- <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
|
|
|
- SELECT LAST_INSERT_ID()
|
|
|
|
|
- </selectKey>
|
|
|
|
|
insert into cgi_reply_bucket_data
|
|
insert into cgi_reply_bucket_data
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
@@ -148,6 +147,12 @@
|
|
|
<if test="sort != null">
|
|
<if test="sort != null">
|
|
|
sort,
|
|
sort,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="batch != null">
|
|
|
|
|
+ batch,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="batchSort != null">
|
|
|
|
|
+ batch_sort,
|
|
|
|
|
+ </if>
|
|
|
<if test="strategyDt != null">
|
|
<if test="strategyDt != null">
|
|
|
strategy_dt,
|
|
strategy_dt,
|
|
|
</if>
|
|
</if>
|
|
@@ -204,6 +209,12 @@
|
|
|
<if test="sort != null">
|
|
<if test="sort != null">
|
|
|
#{sort,jdbcType=INTEGER},
|
|
#{sort,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="batch != null">
|
|
|
|
|
+ #{batch,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="batchSort != null">
|
|
|
|
|
+ #{batchSort,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
<if test="strategyDt != null">
|
|
<if test="strategyDt != null">
|
|
|
#{strategyDt,jdbcType=VARCHAR},
|
|
#{strategyDt,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
@@ -269,6 +280,12 @@
|
|
|
<if test="record.sort != null">
|
|
<if test="record.sort != null">
|
|
|
sort = #{record.sort,jdbcType=INTEGER},
|
|
sort = #{record.sort,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="record.batch != null">
|
|
|
|
|
+ batch = #{record.batch,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.batchSort != null">
|
|
|
|
|
+ batch_sort = #{record.batchSort,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
<if test="record.strategyDt != null">
|
|
<if test="record.strategyDt != null">
|
|
|
strategy_dt = #{record.strategyDt,jdbcType=VARCHAR},
|
|
strategy_dt = #{record.strategyDt,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
@@ -322,23 +339,25 @@
|
|
|
<update id="updateByExample" parameterType="map">
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update cgi_reply_bucket_data
|
|
update cgi_reply_bucket_data
|
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
|
- strategy = #{record.strategy,jdbcType=VARCHAR},
|
|
|
|
|
- sort = #{record.sort,jdbcType=INTEGER},
|
|
|
|
|
- strategy_dt = #{record.strategyDt,jdbcType=VARCHAR},
|
|
|
|
|
- gh_id = #{record.ghId,jdbcType=VARCHAR},
|
|
|
|
|
- msg_type = #{record.msgType,jdbcType=INTEGER},
|
|
|
|
|
- title = #{record.title,jdbcType=VARCHAR},
|
|
|
|
|
- cover_url = #{record.coverUrl,jdbcType=VARCHAR},
|
|
|
|
|
- mini_app_id = #{record.miniAppId,jdbcType=VARCHAR},
|
|
|
|
|
- mini_page_path = #{record.miniPagePath,jdbcType=VARCHAR},
|
|
|
|
|
- mini_video_id = #{record.miniVideoId,jdbcType=BIGINT},
|
|
|
|
|
- root_source_id = #{record.rootSourceId,jdbcType=VARCHAR},
|
|
|
|
|
- page_path_url_id = #{record.pagePathUrlId,jdbcType=BIGINT},
|
|
|
|
|
- news_publish_content_id = #{record.newsPublishContentId,jdbcType=VARCHAR},
|
|
|
|
|
- plan_id = #{record.planId,jdbcType=VARCHAR},
|
|
|
|
|
- is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
|
|
|
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
|
+ strategy = #{record.strategy,jdbcType=VARCHAR},
|
|
|
|
|
+ sort = #{record.sort,jdbcType=INTEGER},
|
|
|
|
|
+ batch = #{record.batch,jdbcType=VARCHAR},
|
|
|
|
|
+ batch_sort = #{record.batchSort,jdbcType=INTEGER},
|
|
|
|
|
+ strategy_dt = #{record.strategyDt,jdbcType=VARCHAR},
|
|
|
|
|
+ gh_id = #{record.ghId,jdbcType=VARCHAR},
|
|
|
|
|
+ msg_type = #{record.msgType,jdbcType=INTEGER},
|
|
|
|
|
+ title = #{record.title,jdbcType=VARCHAR},
|
|
|
|
|
+ cover_url = #{record.coverUrl,jdbcType=VARCHAR},
|
|
|
|
|
+ mini_app_id = #{record.miniAppId,jdbcType=VARCHAR},
|
|
|
|
|
+ mini_page_path = #{record.miniPagePath,jdbcType=VARCHAR},
|
|
|
|
|
+ mini_video_id = #{record.miniVideoId,jdbcType=BIGINT},
|
|
|
|
|
+ root_source_id = #{record.rootSourceId,jdbcType=VARCHAR},
|
|
|
|
|
+ page_path_url_id = #{record.pagePathUrlId,jdbcType=BIGINT},
|
|
|
|
|
+ news_publish_content_id = #{record.newsPublishContentId,jdbcType=VARCHAR},
|
|
|
|
|
+ plan_id = #{record.planId,jdbcType=VARCHAR},
|
|
|
|
|
+ is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
</if>
|
|
@@ -352,6 +371,12 @@
|
|
|
<if test="sort != null">
|
|
<if test="sort != null">
|
|
|
sort = #{sort,jdbcType=INTEGER},
|
|
sort = #{sort,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="batch != null">
|
|
|
|
|
+ batch = #{batch,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="batchSort != null">
|
|
|
|
|
+ batch_sort = #{batchSort,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
<if test="strategyDt != null">
|
|
<if test="strategyDt != null">
|
|
|
strategy_dt = #{strategyDt,jdbcType=VARCHAR},
|
|
strategy_dt = #{strategyDt,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
@@ -403,22 +428,24 @@
|
|
|
<update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketData">
|
|
<update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketData">
|
|
|
update cgi_reply_bucket_data
|
|
update cgi_reply_bucket_data
|
|
|
set strategy = #{strategy,jdbcType=VARCHAR},
|
|
set strategy = #{strategy,jdbcType=VARCHAR},
|
|
|
- sort = #{sort,jdbcType=INTEGER},
|
|
|
|
|
- strategy_dt = #{strategyDt,jdbcType=VARCHAR},
|
|
|
|
|
- gh_id = #{ghId,jdbcType=VARCHAR},
|
|
|
|
|
- msg_type = #{msgType,jdbcType=INTEGER},
|
|
|
|
|
- title = #{title,jdbcType=VARCHAR},
|
|
|
|
|
- cover_url = #{coverUrl,jdbcType=VARCHAR},
|
|
|
|
|
- mini_app_id = #{miniAppId,jdbcType=VARCHAR},
|
|
|
|
|
- mini_page_path = #{miniPagePath,jdbcType=VARCHAR},
|
|
|
|
|
- mini_video_id = #{miniVideoId,jdbcType=BIGINT},
|
|
|
|
|
- root_source_id = #{rootSourceId,jdbcType=VARCHAR},
|
|
|
|
|
- page_path_url_id = #{pagePathUrlId,jdbcType=BIGINT},
|
|
|
|
|
- news_publish_content_id = #{newsPublishContentId,jdbcType=VARCHAR},
|
|
|
|
|
- plan_id = #{planId,jdbcType=VARCHAR},
|
|
|
|
|
- is_delete = #{isDelete,jdbcType=INTEGER},
|
|
|
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
|
+ sort = #{sort,jdbcType=INTEGER},
|
|
|
|
|
+ batch = #{batch,jdbcType=VARCHAR},
|
|
|
|
|
+ batch_sort = #{batchSort,jdbcType=INTEGER},
|
|
|
|
|
+ strategy_dt = #{strategyDt,jdbcType=VARCHAR},
|
|
|
|
|
+ gh_id = #{ghId,jdbcType=VARCHAR},
|
|
|
|
|
+ msg_type = #{msgType,jdbcType=INTEGER},
|
|
|
|
|
+ title = #{title,jdbcType=VARCHAR},
|
|
|
|
|
+ cover_url = #{coverUrl,jdbcType=VARCHAR},
|
|
|
|
|
+ mini_app_id = #{miniAppId,jdbcType=VARCHAR},
|
|
|
|
|
+ mini_page_path = #{miniPagePath,jdbcType=VARCHAR},
|
|
|
|
|
+ mini_video_id = #{miniVideoId,jdbcType=BIGINT},
|
|
|
|
|
+ root_source_id = #{rootSourceId,jdbcType=VARCHAR},
|
|
|
|
|
+ page_path_url_id = #{pagePathUrlId,jdbcType=BIGINT},
|
|
|
|
|
+ news_publish_content_id = #{newsPublishContentId,jdbcType=VARCHAR},
|
|
|
|
|
+ plan_id = #{planId,jdbcType=VARCHAR},
|
|
|
|
|
+ is_delete = #{isDelete,jdbcType=INTEGER},
|
|
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|