|
@@ -12,6 +12,8 @@
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
<result column="channel" jdbcType="VARCHAR" property="channel" />
|
|
<result column="channel" jdbcType="VARCHAR" property="channel" />
|
|
|
|
|
+ <result column="video_ids" jdbcType="VARCHAR" property="videoIds" />
|
|
|
|
|
+ <result column="strategy_status" jdbcType="INTEGER" property="strategyStatus" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
<where>
|
|
@@ -72,7 +74,7 @@
|
|
|
</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
|
|
|
|
|
|
|
+ id, gh_id, gh_name, type, category1, category2, is_delete, create_time, update_time, channel, video_ids, strategy_status
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.longarticle.recommend.server.repository.model.GhDetailExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.tzld.longarticle.recommend.server.repository.model.GhDetailExample" resultMap="BaseResultMap">
|
|
|
select
|
|
select
|
|
@@ -113,10 +115,11 @@
|
|
|
</selectKey>
|
|
</selectKey>
|
|
|
insert into gh_detail (gh_id, gh_name, `type`,
|
|
insert into gh_detail (gh_id, gh_name, `type`,
|
|
|
category1, category2,
|
|
category1, category2,
|
|
|
- create_time, update_time, channel)
|
|
|
|
|
|
|
+ create_time, update_time, channel, video_ids, strategy_status)
|
|
|
values (#{ghId,jdbcType=VARCHAR}, #{ghName,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER},
|
|
values (#{ghId,jdbcType=VARCHAR}, #{ghName,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER},
|
|
|
#{category1,jdbcType=VARCHAR}, #{category2,jdbcType=VARCHAR},
|
|
#{category1,jdbcType=VARCHAR}, #{category2,jdbcType=VARCHAR},
|
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{channel,jdbcType=VARCHAR})
|
|
|
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{channel,jdbcType=VARCHAR}
|
|
|
|
|
+ #{videoIds,jdbcType=VARCHAR}, #{strategyStatus,jdbcType=INTEGER})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.longarticle.recommend.server.repository.model.GhDetail">
|
|
<insert id="insertSelective" parameterType="com.tzld.longarticle.recommend.server.repository.model.GhDetail">
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
@@ -151,6 +154,12 @@
|
|
|
<if test="channel != null">
|
|
<if test="channel != null">
|
|
|
channel,
|
|
channel,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="videoIds != null">
|
|
|
|
|
+ video_ids,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="strategyStatus != null">
|
|
|
|
|
+ strategy_status,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="ghId != null">
|
|
<if test="ghId != null">
|
|
@@ -180,6 +189,12 @@
|
|
|
<if test="channel != null">
|
|
<if test="channel != null">
|
|
|
#{channel,jdbcType=VARCHAR},
|
|
#{channel,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="videoIds != null">
|
|
|
|
|
+ #{videoIds,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="strategyStatus != null">
|
|
|
|
|
+ #{strategyStatus,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.tzld.longarticle.recommend.server.repository.model.GhDetailExample" resultType="java.lang.Long">
|
|
<select id="countByExample" parameterType="com.tzld.longarticle.recommend.server.repository.model.GhDetailExample" resultType="java.lang.Long">
|
|
@@ -221,6 +236,12 @@
|
|
|
<if test="row.channel != null">
|
|
<if test="row.channel != null">
|
|
|
channel = #{row.channel,jdbcType=VARCHAR},
|
|
channel = #{row.channel,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="row.videoIds != null">
|
|
|
|
|
+ video_ids = #{row.videoIds,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="row.strategyStatus != null">
|
|
|
|
|
+ strategyStatus = #{row.strategyStatus,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
<if test="example != null">
|
|
<if test="example != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -237,7 +258,9 @@
|
|
|
is_delete = #{row.isDelete,jdbcType=INTEGER},
|
|
is_delete = #{row.isDelete,jdbcType=INTEGER},
|
|
|
create_time = #{row.createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{row.createTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{row.updateTime,jdbcType=TIMESTAMP},
|
|
update_time = #{row.updateTime,jdbcType=TIMESTAMP},
|
|
|
- channel = #{row.channel,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ channel = #{row.channel,jdbcType=VARCHAR},
|
|
|
|
|
+ video_ids = #{row.videoIds,jdbcType=VARCHAR},
|
|
|
|
|
+ strategy_status = #{row.strategyStatus,jdbcType=INTEGER}
|
|
|
<if test="example != null">
|
|
<if test="example != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
</if>
|
|
@@ -272,6 +295,12 @@
|
|
|
<if test="channel != null">
|
|
<if test="channel != null">
|
|
|
channel = #{channel,jdbcType=VARCHAR},
|
|
channel = #{channel,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="videoIds != null">
|
|
|
|
|
+ video_ids = #{videoIds,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="strategyStatus != null">
|
|
|
|
|
+ strategy_status = #{strategyStatus,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
</update>
|
|
@@ -285,7 +314,9 @@
|
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- channel = #{channel,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ channel = #{channel,jdbcType=VARCHAR},
|
|
|
|
|
+ video_ids = #{videoIds,jdbcType=VARCHAR},
|
|
|
|
|
+ strategy_status = #{strategyStatus,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
</update>
|
|
|
</mapper>
|
|
</mapper>
|