|
@@ -13,6 +13,7 @@
|
|
|
<result column="mini_app_id" jdbcType="VARCHAR" property="miniAppId" />
|
|
|
<result column="mini_page_path" jdbcType="VARCHAR" property="miniPagePath" />
|
|
|
<result column="mini_video_id" jdbcType="BIGINT" property="miniVideoId" />
|
|
|
+ <result column="root_source_id" jdbcType="VARCHAR" property="rootSourceId" />
|
|
|
<result column="page_path_url_id" jdbcType="BIGINT" property="pagePathUrlId" />
|
|
|
<result column="news_publish_content_id" jdbcType="VARCHAR" property="newsPublishContentId" />
|
|
|
<result column="plan_id" jdbcType="VARCHAR" property="planId" />
|
|
@@ -79,9 +80,9 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<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, page_path_url_id, news_publish_content_id, plan_id,
|
|
|
- is_delete, create_time, update_time
|
|
|
+ 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
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketDataExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -96,9 +97,12 @@
|
|
|
<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
|
|
|
+ select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from cgi_reply_bucket_data
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
@@ -114,21 +118,20 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" 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 (strategy, sort, strategy_dt,
|
|
|
- gh_id, msg_type, title,
|
|
|
- cover_url, mini_app_id, mini_page_path,
|
|
|
- mini_video_id, page_path_url_id, news_publish_content_id,
|
|
|
- plan_id, is_delete, create_time,
|
|
|
- update_time)
|
|
|
- values (#{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}, #{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,
|
|
|
+ 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>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketData">
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
@@ -136,6 +139,9 @@
|
|
|
</selectKey>
|
|
|
insert into cgi_reply_bucket_data
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ id,
|
|
|
+ </if>
|
|
|
<if test="strategy != null">
|
|
|
strategy,
|
|
|
</if>
|
|
@@ -166,6 +172,9 @@
|
|
|
<if test="miniVideoId != null">
|
|
|
mini_video_id,
|
|
|
</if>
|
|
|
+ <if test="rootSourceId != null">
|
|
|
+ root_source_id,
|
|
|
+ </if>
|
|
|
<if test="pagePathUrlId != null">
|
|
|
page_path_url_id,
|
|
|
</if>
|
|
@@ -186,6 +195,9 @@
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
<if test="strategy != null">
|
|
|
#{strategy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -216,6 +228,9 @@
|
|
|
<if test="miniVideoId != null">
|
|
|
#{miniVideoId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="rootSourceId != null">
|
|
|
+ #{rootSourceId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="pagePathUrlId != null">
|
|
|
#{pagePathUrlId,jdbcType=BIGINT},
|
|
|
</if>
|
|
@@ -245,82 +260,86 @@
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
|
update cgi_reply_bucket_data
|
|
|
<set>
|
|
|
- <if test="row.id != null">
|
|
|
- id = #{row.id,jdbcType=BIGINT},
|
|
|
+ <if test="record.id != null">
|
|
|
+ id = #{record.id,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="record.strategy != null">
|
|
|
+ strategy = #{record.strategy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="row.strategy != null">
|
|
|
- strategy = #{row.strategy,jdbcType=VARCHAR},
|
|
|
+ <if test="record.sort != null">
|
|
|
+ sort = #{record.sort,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="row.sort != null">
|
|
|
- sort = #{row.sort,jdbcType=INTEGER},
|
|
|
+ <if test="record.strategyDt != null">
|
|
|
+ strategy_dt = #{record.strategyDt,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="row.strategyDt != null">
|
|
|
- strategy_dt = #{row.strategyDt,jdbcType=VARCHAR},
|
|
|
+ <if test="record.ghId != null">
|
|
|
+ gh_id = #{record.ghId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="row.ghId != null">
|
|
|
- gh_id = #{row.ghId,jdbcType=VARCHAR},
|
|
|
+ <if test="record.msgType != null">
|
|
|
+ msg_type = #{record.msgType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="row.msgType != null">
|
|
|
- msg_type = #{row.msgType,jdbcType=INTEGER},
|
|
|
+ <if test="record.title != null">
|
|
|
+ title = #{record.title,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="row.title != null">
|
|
|
- title = #{row.title,jdbcType=VARCHAR},
|
|
|
+ <if test="record.coverUrl != null">
|
|
|
+ cover_url = #{record.coverUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="row.coverUrl != null">
|
|
|
- cover_url = #{row.coverUrl,jdbcType=VARCHAR},
|
|
|
+ <if test="record.miniAppId != null">
|
|
|
+ mini_app_id = #{record.miniAppId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="row.miniAppId != null">
|
|
|
- mini_app_id = #{row.miniAppId,jdbcType=VARCHAR},
|
|
|
+ <if test="record.miniPagePath != null">
|
|
|
+ mini_page_path = #{record.miniPagePath,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="row.miniPagePath != null">
|
|
|
- mini_page_path = #{row.miniPagePath,jdbcType=VARCHAR},
|
|
|
+ <if test="record.miniVideoId != null">
|
|
|
+ mini_video_id = #{record.miniVideoId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="row.miniVideoId != null">
|
|
|
- mini_video_id = #{row.miniVideoId,jdbcType=BIGINT},
|
|
|
+ <if test="record.rootSourceId != null">
|
|
|
+ root_source_id = #{record.rootSourceId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="row.pagePathUrlId != null">
|
|
|
- page_path_url_id = #{row.pagePathUrlId,jdbcType=BIGINT},
|
|
|
+ <if test="record.pagePathUrlId != null">
|
|
|
+ page_path_url_id = #{record.pagePathUrlId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="row.newsPublishContentId != null">
|
|
|
- news_publish_content_id = #{row.newsPublishContentId,jdbcType=VARCHAR},
|
|
|
+ <if test="record.newsPublishContentId != null">
|
|
|
+ news_publish_content_id = #{record.newsPublishContentId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="row.planId != null">
|
|
|
- plan_id = #{row.planId,jdbcType=VARCHAR},
|
|
|
+ <if test="record.planId != null">
|
|
|
+ plan_id = #{record.planId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="row.isDelete != null">
|
|
|
- is_delete = #{row.isDelete,jdbcType=INTEGER},
|
|
|
+ <if test="record.isDelete != null">
|
|
|
+ is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="row.createTime != null">
|
|
|
- create_time = #{row.createTime,jdbcType=TIMESTAMP},
|
|
|
+ <if test="record.createTime != null">
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
- <if test="row.updateTime != null">
|
|
|
- update_time = #{row.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ <if test="record.updateTime != null">
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
</set>
|
|
|
- <if test="example != null">
|
|
|
+ <if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
</update>
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update cgi_reply_bucket_data
|
|
|
- set id = #{row.id,jdbcType=BIGINT},
|
|
|
- strategy = #{row.strategy,jdbcType=VARCHAR},
|
|
|
- sort = #{row.sort,jdbcType=INTEGER},
|
|
|
- strategy_dt = #{row.strategyDt,jdbcType=VARCHAR},
|
|
|
- gh_id = #{row.ghId,jdbcType=VARCHAR},
|
|
|
- msg_type = #{row.msgType,jdbcType=INTEGER},
|
|
|
- title = #{row.title,jdbcType=VARCHAR},
|
|
|
- cover_url = #{row.coverUrl,jdbcType=VARCHAR},
|
|
|
- mini_app_id = #{row.miniAppId,jdbcType=VARCHAR},
|
|
|
- mini_page_path = #{row.miniPagePath,jdbcType=VARCHAR},
|
|
|
- mini_video_id = #{row.miniVideoId,jdbcType=BIGINT},
|
|
|
- page_path_url_id = #{row.pagePathUrlId,jdbcType=BIGINT},
|
|
|
- news_publish_content_id = #{row.newsPublishContentId,jdbcType=VARCHAR},
|
|
|
- plan_id = #{row.planId,jdbcType=VARCHAR},
|
|
|
- is_delete = #{row.isDelete,jdbcType=INTEGER},
|
|
|
- create_time = #{row.createTime,jdbcType=TIMESTAMP},
|
|
|
- update_time = #{row.updateTime,jdbcType=TIMESTAMP}
|
|
|
- <if test="example != null">
|
|
|
+ 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}
|
|
|
+ <if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
</update>
|
|
@@ -357,6 +376,9 @@
|
|
|
<if test="miniVideoId != null">
|
|
|
mini_video_id = #{miniVideoId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="rootSourceId != null">
|
|
|
+ root_source_id = #{rootSourceId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="pagePathUrlId != null">
|
|
|
page_path_url_id = #{pagePathUrlId,jdbcType=BIGINT},
|
|
|
</if>
|
|
@@ -390,6 +412,7 @@
|
|
|
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},
|