|
@@ -15,6 +15,8 @@
|
|
|
<result column="video_ids" jdbcType="VARCHAR" property="videoIds" />
|
|
|
<result column="strategy_status" jdbcType="INTEGER" property="strategyStatus" />
|
|
|
<result column="autoreply_send_minigram_num" jdbcType="INTEGER" property="autoreplySendMinigramNum" />
|
|
|
+ <result column="rate" jdbcType="VARCHAR" property="rate" />
|
|
|
+ <result column="content_detail" jdbcType="CHAR" property="contentDetail" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
@@ -76,7 +78,7 @@
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, gh_id, gh_name, `type`, category1, category2, is_delete, create_time, update_time,
|
|
|
- channel, video_ids, strategy_status, autoreply_send_minigram_num
|
|
|
+ channel, video_ids, strategy_status, autoreply_send_minigram_num, rate, content_detail
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.growth.common.model.po.GhDetailExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -116,12 +118,14 @@
|
|
|
`type`, category1, category2,
|
|
|
is_delete, create_time, update_time,
|
|
|
channel, video_ids, strategy_status,
|
|
|
- autoreply_send_minigram_num)
|
|
|
+ autoreply_send_minigram_num, rate, content_detail
|
|
|
+ )
|
|
|
values (#{id,jdbcType=BIGINT}, #{ghId,jdbcType=VARCHAR}, #{ghName,jdbcType=VARCHAR},
|
|
|
#{type,jdbcType=INTEGER}, #{category1,jdbcType=VARCHAR}, #{category2,jdbcType=VARCHAR},
|
|
|
#{isDelete,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
#{channel,jdbcType=VARCHAR}, #{videoIds,jdbcType=VARCHAR}, #{strategyStatus,jdbcType=INTEGER},
|
|
|
- #{autoreplySendMinigramNum,jdbcType=INTEGER})
|
|
|
+ #{autoreplySendMinigramNum,jdbcType=INTEGER}, #{rate,jdbcType=VARCHAR}, #{contentDetail,jdbcType=CHAR}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.growth.common.model.po.GhDetail">
|
|
|
insert into gh_detail
|
|
@@ -165,6 +169,12 @@
|
|
|
<if test="autoreplySendMinigramNum != null">
|
|
|
autoreply_send_minigram_num,
|
|
|
</if>
|
|
|
+ <if test="rate != null">
|
|
|
+ rate,
|
|
|
+ </if>
|
|
|
+ <if test="contentDetail != null">
|
|
|
+ content_detail,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
@@ -206,6 +216,12 @@
|
|
|
<if test="autoreplySendMinigramNum != null">
|
|
|
#{autoreplySendMinigramNum,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="rate != null">
|
|
|
+ #{rate,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contentDetail != null">
|
|
|
+ #{contentDetail,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.tzld.piaoquan.growth.common.model.po.GhDetailExample" resultType="java.lang.Long">
|
|
@@ -256,6 +272,12 @@
|
|
|
<if test="record.autoreplySendMinigramNum != null">
|
|
|
autoreply_send_minigram_num = #{record.autoreplySendMinigramNum,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="record.rate != null">
|
|
|
+ rate = #{record.rate,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.contentDetail != null">
|
|
|
+ content_detail = #{record.contentDetail,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -275,7 +297,9 @@
|
|
|
channel = #{record.channel,jdbcType=VARCHAR},
|
|
|
video_ids = #{record.videoIds,jdbcType=VARCHAR},
|
|
|
strategy_status = #{record.strategyStatus,jdbcType=INTEGER},
|
|
|
- autoreply_send_minigram_num = #{record.autoreplySendMinigramNum,jdbcType=INTEGER}
|
|
|
+ autoreply_send_minigram_num = #{record.autoreplySendMinigramNum,jdbcType=INTEGER},
|
|
|
+ rate = #{record.rate,jdbcType=VARCHAR},
|
|
|
+ content_detail = #{record.contentDetail,jdbcType=CHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -319,6 +343,12 @@
|
|
|
<if test="autoreplySendMinigramNum != null">
|
|
|
autoreply_send_minigram_num = #{autoreplySendMinigramNum,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="rate != null">
|
|
|
+ rate = #{rate,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contentDetail != null">
|
|
|
+ content_detail = #{contentDetail,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
@@ -335,7 +365,9 @@
|
|
|
channel = #{channel,jdbcType=VARCHAR},
|
|
|
video_ids = #{videoIds,jdbcType=VARCHAR},
|
|
|
strategy_status = #{strategyStatus,jdbcType=INTEGER},
|
|
|
- autoreply_send_minigram_num = #{autoreplySendMinigramNum,jdbcType=INTEGER}
|
|
|
+ autoreply_send_minigram_num = #{autoreplySendMinigramNum,jdbcType=INTEGER},
|
|
|
+ rate = #{rate,jdbcType=VARCHAR},
|
|
|
+ content_detail = #{contentDetail,jdbcType=CHAR}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
</mapper>
|