|
@@ -6,7 +6,9 @@
|
|
|
<result column="gh_detail_id" jdbcType="BIGINT" property="ghDetailId" />
|
|
<result column="gh_detail_id" jdbcType="BIGINT" property="ghDetailId" />
|
|
|
<result column="video_id" jdbcType="BIGINT" property="videoId" />
|
|
<result column="video_id" jdbcType="BIGINT" property="videoId" />
|
|
|
<result column="page" jdbcType="VARCHAR" property="page" />
|
|
<result column="page" jdbcType="VARCHAR" property="page" />
|
|
|
|
|
+ <result column="title_id" jdbcType="BIGINT" property="titleId" />
|
|
|
<result column="title" jdbcType="VARCHAR" property="title" />
|
|
<result column="title" jdbcType="VARCHAR" property="title" />
|
|
|
|
|
+ <result column="cover_id" jdbcType="BIGINT" property="coverId" />
|
|
|
<result column="cover" jdbcType="VARCHAR" property="cover" />
|
|
<result column="cover" jdbcType="VARCHAR" property="cover" />
|
|
|
<result column="sort" jdbcType="INTEGER" property="sort" />
|
|
<result column="sort" jdbcType="INTEGER" property="sort" />
|
|
|
<result column="is_delete" jdbcType="INTEGER" property="isDelete" />
|
|
<result column="is_delete" jdbcType="INTEGER" property="isDelete" />
|
|
@@ -72,7 +74,8 @@
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
- id, gh_detail_id, video_id, page, title, cover, sort, is_delete, create_time, update_time
|
|
|
|
|
|
|
+ id, gh_detail_id, video_id, page, title_id, title, cover_id, cover, sort, is_delete,
|
|
|
|
|
+ create_time, update_time
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.GhDetailExtExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.GhDetailExtExample" resultMap="BaseResultMap">
|
|
|
select
|
|
select
|
|
@@ -109,13 +112,15 @@
|
|
|
</delete>
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.api.model.po.GhDetailExt">
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.api.model.po.GhDetailExt">
|
|
|
insert into gh_detail_ext (id, gh_detail_id, video_id,
|
|
insert into gh_detail_ext (id, gh_detail_id, video_id,
|
|
|
- page, title, cover,
|
|
|
|
|
- sort, is_delete, create_time,
|
|
|
|
|
- update_time)
|
|
|
|
|
|
|
+ page, title_id, title,
|
|
|
|
|
+ cover_id, cover, sort,
|
|
|
|
|
+ is_delete, create_time, update_time
|
|
|
|
|
+ )
|
|
|
values (#{id,jdbcType=BIGINT}, #{ghDetailId,jdbcType=BIGINT}, #{videoId,jdbcType=BIGINT},
|
|
values (#{id,jdbcType=BIGINT}, #{ghDetailId,jdbcType=BIGINT}, #{videoId,jdbcType=BIGINT},
|
|
|
- #{page,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{cover,jdbcType=VARCHAR},
|
|
|
|
|
- #{sort,jdbcType=INTEGER}, #{isDelete,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- #{updateTime,jdbcType=TIMESTAMP})
|
|
|
|
|
|
|
+ #{page,jdbcType=VARCHAR}, #{titleId,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR},
|
|
|
|
|
+ #{coverId,jdbcType=BIGINT}, #{cover,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER},
|
|
|
|
|
+ #{isDelete,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
+ )
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.GhDetailExt">
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.GhDetailExt">
|
|
|
insert into gh_detail_ext
|
|
insert into gh_detail_ext
|
|
@@ -132,9 +137,15 @@
|
|
|
<if test="page != null">
|
|
<if test="page != null">
|
|
|
page,
|
|
page,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="titleId != null">
|
|
|
|
|
+ title_id,
|
|
|
|
|
+ </if>
|
|
|
<if test="title != null">
|
|
<if test="title != null">
|
|
|
title,
|
|
title,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="coverId != null">
|
|
|
|
|
+ cover_id,
|
|
|
|
|
+ </if>
|
|
|
<if test="cover != null">
|
|
<if test="cover != null">
|
|
|
cover,
|
|
cover,
|
|
|
</if>
|
|
</if>
|
|
@@ -164,9 +175,15 @@
|
|
|
<if test="page != null">
|
|
<if test="page != null">
|
|
|
#{page,jdbcType=VARCHAR},
|
|
#{page,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="titleId != null">
|
|
|
|
|
+ #{titleId,jdbcType=BIGINT},
|
|
|
|
|
+ </if>
|
|
|
<if test="title != null">
|
|
<if test="title != null">
|
|
|
#{title,jdbcType=VARCHAR},
|
|
#{title,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="coverId != null">
|
|
|
|
|
+ #{coverId,jdbcType=BIGINT},
|
|
|
|
|
+ </if>
|
|
|
<if test="cover != null">
|
|
<if test="cover != null">
|
|
|
#{cover,jdbcType=VARCHAR},
|
|
#{cover,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
@@ -205,9 +222,15 @@
|
|
|
<if test="record.page != null">
|
|
<if test="record.page != null">
|
|
|
page = #{record.page,jdbcType=VARCHAR},
|
|
page = #{record.page,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="record.titleId != null">
|
|
|
|
|
+ title_id = #{record.titleId,jdbcType=BIGINT},
|
|
|
|
|
+ </if>
|
|
|
<if test="record.title != null">
|
|
<if test="record.title != null">
|
|
|
title = #{record.title,jdbcType=VARCHAR},
|
|
title = #{record.title,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="record.coverId != null">
|
|
|
|
|
+ cover_id = #{record.coverId,jdbcType=BIGINT},
|
|
|
|
|
+ </if>
|
|
|
<if test="record.cover != null">
|
|
<if test="record.cover != null">
|
|
|
cover = #{record.cover,jdbcType=VARCHAR},
|
|
cover = #{record.cover,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
@@ -234,7 +257,9 @@
|
|
|
gh_detail_id = #{record.ghDetailId,jdbcType=BIGINT},
|
|
gh_detail_id = #{record.ghDetailId,jdbcType=BIGINT},
|
|
|
video_id = #{record.videoId,jdbcType=BIGINT},
|
|
video_id = #{record.videoId,jdbcType=BIGINT},
|
|
|
page = #{record.page,jdbcType=VARCHAR},
|
|
page = #{record.page,jdbcType=VARCHAR},
|
|
|
|
|
+ title_id = #{record.titleId,jdbcType=BIGINT},
|
|
|
title = #{record.title,jdbcType=VARCHAR},
|
|
title = #{record.title,jdbcType=VARCHAR},
|
|
|
|
|
+ cover_id = #{record.coverId,jdbcType=BIGINT},
|
|
|
cover = #{record.cover,jdbcType=VARCHAR},
|
|
cover = #{record.cover,jdbcType=VARCHAR},
|
|
|
sort = #{record.sort,jdbcType=INTEGER},
|
|
sort = #{record.sort,jdbcType=INTEGER},
|
|
|
is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
@@ -256,9 +281,15 @@
|
|
|
<if test="page != null">
|
|
<if test="page != null">
|
|
|
page = #{page,jdbcType=VARCHAR},
|
|
page = #{page,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="titleId != null">
|
|
|
|
|
+ title_id = #{titleId,jdbcType=BIGINT},
|
|
|
|
|
+ </if>
|
|
|
<if test="title != null">
|
|
<if test="title != null">
|
|
|
title = #{title,jdbcType=VARCHAR},
|
|
title = #{title,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="coverId != null">
|
|
|
|
|
+ cover_id = #{coverId,jdbcType=BIGINT},
|
|
|
|
|
+ </if>
|
|
|
<if test="cover != null">
|
|
<if test="cover != null">
|
|
|
cover = #{cover,jdbcType=VARCHAR},
|
|
cover = #{cover,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
@@ -282,7 +313,9 @@
|
|
|
set gh_detail_id = #{ghDetailId,jdbcType=BIGINT},
|
|
set gh_detail_id = #{ghDetailId,jdbcType=BIGINT},
|
|
|
video_id = #{videoId,jdbcType=BIGINT},
|
|
video_id = #{videoId,jdbcType=BIGINT},
|
|
|
page = #{page,jdbcType=VARCHAR},
|
|
page = #{page,jdbcType=VARCHAR},
|
|
|
|
|
+ title_id = #{titleId,jdbcType=BIGINT},
|
|
|
title = #{title,jdbcType=VARCHAR},
|
|
title = #{title,jdbcType=VARCHAR},
|
|
|
|
|
+ cover_id = #{coverId,jdbcType=BIGINT},
|
|
|
cover = #{cover,jdbcType=VARCHAR},
|
|
cover = #{cover,jdbcType=VARCHAR},
|
|
|
sort = #{sort,jdbcType=INTEGER},
|
|
sort = #{sort,jdbcType=INTEGER},
|
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|