|
@@ -14,6 +14,7 @@
|
|
<result column="channel" jdbcType="VARCHAR" property="channel" />
|
|
<result column="channel" jdbcType="VARCHAR" property="channel" />
|
|
<result column="video_ids" jdbcType="VARCHAR" property="videoIds" />
|
|
<result column="video_ids" jdbcType="VARCHAR" property="videoIds" />
|
|
<result column="strategy_status" jdbcType="INTEGER" property="strategyStatus" />
|
|
<result column="strategy_status" jdbcType="INTEGER" property="strategyStatus" />
|
|
|
|
+ <result column="autoreply_send_minigram_num" jdbcType="INTEGER" property="autoreplySendMinigramNum" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="Example_Where_Clause">
|
|
<sql id="Example_Where_Clause">
|
|
<where>
|
|
<where>
|
|
@@ -74,7 +75,8 @@
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
- id, gh_id, gh_name, type, category1, category2, is_delete, create_time, update_time, channel, video_ids, strategy_status
|
|
|
|
|
|
+ id, gh_id, gh_name, `type`, category1, category2, is_delete, create_time, update_time,
|
|
|
|
+ channel, video_ids, strategy_status, autoreply_send_minigram_num
|
|
</sql>
|
|
</sql>
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.GhDetailExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.GhDetailExample" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
@@ -110,23 +112,23 @@
|
|
</if>
|
|
</if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.api.model.po.GhDetail">
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.api.model.po.GhDetail">
|
|
- <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
|
|
- SELECT LAST_INSERT_ID()
|
|
|
|
- </selectKey>
|
|
|
|
- insert into gh_detail (gh_id, gh_name, `type`,
|
|
|
|
- category1, category2,
|
|
|
|
- create_time, update_time, channel, video_ids, strategy_status)
|
|
|
|
- values (#{ghId,jdbcType=VARCHAR}, #{ghName,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER},
|
|
|
|
- #{category1,jdbcType=VARCHAR}, #{category2,jdbcType=VARCHAR},
|
|
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{channel,jdbcType=VARCHAR}
|
|
|
|
- #{videoIds,jdbcType=VARCHAR}, #{strategyStatus,jdbcType=INTEGER})
|
|
|
|
|
|
+ insert into gh_detail (id, gh_id, gh_name,
|
|
|
|
+ `type`, category1, category2,
|
|
|
|
+ is_delete, create_time, update_time,
|
|
|
|
+ channel, video_ids, strategy_status,
|
|
|
|
+ autoreply_send_minigram_num)
|
|
|
|
+ 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})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.GhDetail">
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.GhDetail">
|
|
- <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
|
|
- SELECT LAST_INSERT_ID()
|
|
|
|
- </selectKey>
|
|
|
|
insert into gh_detail
|
|
insert into gh_detail
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="id != null">
|
|
|
|
+ id,
|
|
|
|
+ </if>
|
|
<if test="ghId != null">
|
|
<if test="ghId != null">
|
|
gh_id,
|
|
gh_id,
|
|
</if>
|
|
</if>
|
|
@@ -134,7 +136,7 @@
|
|
gh_name,
|
|
gh_name,
|
|
</if>
|
|
</if>
|
|
<if test="type != null">
|
|
<if test="type != null">
|
|
- type,
|
|
|
|
|
|
+ `type`,
|
|
</if>
|
|
</if>
|
|
<if test="category1 != null">
|
|
<if test="category1 != null">
|
|
category1,
|
|
category1,
|
|
@@ -160,8 +162,14 @@
|
|
<if test="strategyStatus != null">
|
|
<if test="strategyStatus != null">
|
|
strategy_status,
|
|
strategy_status,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="autoreplySendMinigramNum != null">
|
|
|
|
+ autoreply_send_minigram_num,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="id != null">
|
|
|
|
+ #{id,jdbcType=BIGINT},
|
|
|
|
+ </if>
|
|
<if test="ghId != null">
|
|
<if test="ghId != null">
|
|
#{ghId,jdbcType=VARCHAR},
|
|
#{ghId,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -195,6 +203,9 @@
|
|
<if test="strategyStatus != null">
|
|
<if test="strategyStatus != null">
|
|
#{strategyStatus,jdbcType=INTEGER},
|
|
#{strategyStatus,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="autoreplySendMinigramNum != null">
|
|
|
|
+ #{autoreplySendMinigramNum,jdbcType=INTEGER},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<select id="countByExample" parameterType="com.tzld.piaoquan.api.model.po.GhDetailExample" resultType="java.lang.Long">
|
|
<select id="countByExample" parameterType="com.tzld.piaoquan.api.model.po.GhDetailExample" resultType="java.lang.Long">
|
|
@@ -206,62 +217,66 @@
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
update gh_detail
|
|
update gh_detail
|
|
<set>
|
|
<set>
|
|
- <if test="row.id != null">
|
|
|
|
- id = #{row.id,jdbcType=BIGINT},
|
|
|
|
|
|
+ <if test="record.id != null">
|
|
|
|
+ id = #{record.id,jdbcType=BIGINT},
|
|
</if>
|
|
</if>
|
|
- <if test="row.ghId != null">
|
|
|
|
- gh_id = #{row.ghId,jdbcType=VARCHAR},
|
|
|
|
|
|
+ <if test="record.ghId != null">
|
|
|
|
+ gh_id = #{record.ghId,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="row.ghName != null">
|
|
|
|
- gh_name = #{row.ghName,jdbcType=VARCHAR},
|
|
|
|
|
|
+ <if test="record.ghName != null">
|
|
|
|
+ gh_name = #{record.ghName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="row.type != null">
|
|
|
|
- type = #{row.type,jdbcType=INTEGER},
|
|
|
|
|
|
+ <if test="record.type != null">
|
|
|
|
+ `type` = #{record.type,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="row.category1 != null">
|
|
|
|
- category1 = #{row.category1,jdbcType=VARCHAR},
|
|
|
|
|
|
+ <if test="record.category1 != null">
|
|
|
|
+ category1 = #{record.category1,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="row.category2 != null">
|
|
|
|
- category2 = #{row.category2,jdbcType=VARCHAR},
|
|
|
|
|
|
+ <if test="record.category2 != null">
|
|
|
|
+ category2 = #{record.category2,jdbcType=VARCHAR},
|
|
</if>
|
|
</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>
|
|
- <if test="row.createTime != null">
|
|
|
|
- create_time = #{row.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ <if test="record.createTime != null">
|
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</if>
|
|
- <if test="row.updateTime != null">
|
|
|
|
- update_time = #{row.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ <if test="record.updateTime != null">
|
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</if>
|
|
- <if test="row.channel != null">
|
|
|
|
- channel = #{row.channel,jdbcType=VARCHAR},
|
|
|
|
|
|
+ <if test="record.channel != null">
|
|
|
|
+ channel = #{record.channel,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="row.videoIds != null">
|
|
|
|
- video_ids = #{row.videoIds,jdbcType=VARCHAR},
|
|
|
|
|
|
+ <if test="record.videoIds != null">
|
|
|
|
+ video_ids = #{record.videoIds,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="row.strategyStatus != null">
|
|
|
|
- strategyStatus = #{row.strategyStatus,jdbcType=INTEGER},
|
|
|
|
|
|
+ <if test="record.strategyStatus != null">
|
|
|
|
+ strategy_status = #{record.strategyStatus,jdbcType=INTEGER},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.autoreplySendMinigramNum != null">
|
|
|
|
+ autoreply_send_minigram_num = #{record.autoreplySendMinigramNum,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
</set>
|
|
</set>
|
|
- <if test="example != null">
|
|
|
|
|
|
+ <if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</if>
|
|
</update>
|
|
</update>
|
|
<update id="updateByExample" parameterType="map">
|
|
<update id="updateByExample" parameterType="map">
|
|
update gh_detail
|
|
update gh_detail
|
|
- set id = #{row.id,jdbcType=BIGINT},
|
|
|
|
- gh_id = #{row.ghId,jdbcType=VARCHAR},
|
|
|
|
- gh_name = #{row.ghName,jdbcType=VARCHAR},
|
|
|
|
- type = #{row.type,jdbcType=INTEGER},
|
|
|
|
- category1 = #{row.category1,jdbcType=VARCHAR},
|
|
|
|
- category2 = #{row.category2,jdbcType=VARCHAR},
|
|
|
|
- is_delete = #{row.isDelete,jdbcType=INTEGER},
|
|
|
|
- create_time = #{row.createTime,jdbcType=TIMESTAMP},
|
|
|
|
- update_time = #{row.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
- channel = #{row.channel,jdbcType=VARCHAR},
|
|
|
|
- video_ids = #{row.videoIds,jdbcType=VARCHAR},
|
|
|
|
- strategy_status = #{row.strategyStatus,jdbcType=INTEGER}
|
|
|
|
- <if test="example != null">
|
|
|
|
|
|
+ set id = #{record.id,jdbcType=BIGINT},
|
|
|
|
+ gh_id = #{record.ghId,jdbcType=VARCHAR},
|
|
|
|
+ gh_name = #{record.ghName,jdbcType=VARCHAR},
|
|
|
|
+ `type` = #{record.type,jdbcType=INTEGER},
|
|
|
|
+ category1 = #{record.category1,jdbcType=VARCHAR},
|
|
|
|
+ category2 = #{record.category2,jdbcType=VARCHAR},
|
|
|
|
+ is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ 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}
|
|
|
|
+ <if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</if>
|
|
</update>
|
|
</update>
|
|
@@ -275,7 +290,7 @@
|
|
gh_name = #{ghName,jdbcType=VARCHAR},
|
|
gh_name = #{ghName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="type != null">
|
|
<if test="type != null">
|
|
- type = #{type,jdbcType=INTEGER},
|
|
|
|
|
|
+ `type` = #{type,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="category1 != null">
|
|
<if test="category1 != null">
|
|
category1 = #{category1,jdbcType=VARCHAR},
|
|
category1 = #{category1,jdbcType=VARCHAR},
|
|
@@ -301,6 +316,9 @@
|
|
<if test="strategyStatus != null">
|
|
<if test="strategyStatus != null">
|
|
strategy_status = #{strategyStatus,jdbcType=INTEGER},
|
|
strategy_status = #{strategyStatus,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="autoreplySendMinigramNum != null">
|
|
|
|
+ autoreply_send_minigram_num = #{autoreplySendMinigramNum,jdbcType=INTEGER},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
</update>
|
|
@@ -308,7 +326,7 @@
|
|
update gh_detail
|
|
update gh_detail
|
|
set gh_id = #{ghId,jdbcType=VARCHAR},
|
|
set gh_id = #{ghId,jdbcType=VARCHAR},
|
|
gh_name = #{ghName,jdbcType=VARCHAR},
|
|
gh_name = #{ghName,jdbcType=VARCHAR},
|
|
- type = #{type,jdbcType=INTEGER},
|
|
|
|
|
|
+ `type` = #{type,jdbcType=INTEGER},
|
|
category1 = #{category1,jdbcType=VARCHAR},
|
|
category1 = #{category1,jdbcType=VARCHAR},
|
|
category2 = #{category2,jdbcType=VARCHAR},
|
|
category2 = #{category2,jdbcType=VARCHAR},
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|
|
@@ -316,7 +334,8 @@
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
channel = #{channel,jdbcType=VARCHAR},
|
|
channel = #{channel,jdbcType=VARCHAR},
|
|
video_ids = #{videoIds,jdbcType=VARCHAR},
|
|
video_ids = #{videoIds,jdbcType=VARCHAR},
|
|
- strategy_status = #{strategyStatus,jdbcType=INTEGER}
|
|
|
|
|
|
+ strategy_status = #{strategyStatus,jdbcType=INTEGER},
|
|
|
|
+ autoreply_send_minigram_num = #{autoreplySendMinigramNum,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
</update>
|
|
</mapper>
|
|
</mapper>
|