|
@@ -11,6 +11,7 @@
|
|
|
<result column="is_delete" jdbcType="INTEGER" property="isDelete" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
+ <result column="channel" jdbcType="VARCHAR" property="channel" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
@@ -112,10 +113,10 @@
|
|
|
</selectKey>
|
|
|
insert into gh_detail (gh_id, gh_name, `type`,
|
|
|
category1, category2,
|
|
|
- create_time, update_time)
|
|
|
+ create_time, update_time, channel)
|
|
|
values (#{ghId,jdbcType=VARCHAR}, #{ghName,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER},
|
|
|
#{category1,jdbcType=VARCHAR}, #{category2,jdbcType=VARCHAR},
|
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{channel,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.longarticle.recommend.server.repository.model.GhDetail">
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
@@ -147,6 +148,9 @@
|
|
|
<if test="updateTime != null">
|
|
|
update_time,
|
|
|
</if>
|
|
|
+ <if test="channel != null">
|
|
|
+ channel,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="ghId != null">
|
|
@@ -173,6 +177,9 @@
|
|
|
<if test="updateTime != null">
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="channel != null">
|
|
|
+ #{channel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.tzld.longarticle.recommend.server.repository.model.GhDetailExample" resultType="java.lang.Long">
|
|
@@ -211,6 +218,9 @@
|
|
|
<if test="row.updateTime != null">
|
|
|
update_time = #{row.updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="row.channel != null">
|
|
|
+ channel = #{row.channel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="example != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -226,7 +236,8 @@
|
|
|
category2 = #{row.category2,jdbcType=VARCHAR},
|
|
|
is_delete = #{row.isDelete,jdbcType=INTEGER},
|
|
|
create_time = #{row.createTime,jdbcType=TIMESTAMP},
|
|
|
- update_time = #{row.updateTime,jdbcType=TIMESTAMP}
|
|
|
+ update_time = #{row.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ channel = #{row.channel,jdbcType=VARCHAR}
|
|
|
<if test="example != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -258,6 +269,9 @@
|
|
|
<if test="updateTime != null">
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="channel != null">
|
|
|
+ channel = #{channel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
@@ -270,7 +284,8 @@
|
|
|
category2 = #{category2,jdbcType=VARCHAR},
|
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
- update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ channel = #{channel,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
</mapper>
|