|
|
@@ -10,6 +10,7 @@
|
|
|
<result column="creative_id" jdbcType="VARCHAR" property="creativeId" />
|
|
|
<result column="article_id" jdbcType="VARCHAR" property="articleId" />
|
|
|
<result column="card_id" jdbcType="VARCHAR" property="cardId" />
|
|
|
+ <result column="video_id" jdbcType="BIGINT" property="videoId" />
|
|
|
<result column="package_id" jdbcType="VARCHAR" property="packageId" />
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
<result column="is_delete" jdbcType="INTEGER" property="isDelete" />
|
|
|
@@ -76,7 +77,7 @@
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, root_source_id, channel, partner_id, account_id, creative_id, article_id, card_id,
|
|
|
- package_id, `status`, is_delete, create_time, update_time
|
|
|
+ video_id, package_id, `status`, is_delete, create_time, update_time
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ExternalChannelExample" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -114,14 +115,14 @@
|
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ExternalChannel">
|
|
|
insert into external_channel (id, root_source_id, channel,
|
|
|
partner_id, account_id, creative_id,
|
|
|
- article_id, card_id, package_id,
|
|
|
- `status`, is_delete, create_time,
|
|
|
- update_time)
|
|
|
+ article_id, card_id, video_id,
|
|
|
+ package_id, `status`, is_delete,
|
|
|
+ create_time, update_time)
|
|
|
values (#{id,jdbcType=BIGINT}, #{rootSourceId,jdbcType=VARCHAR}, #{channel,jdbcType=VARCHAR},
|
|
|
#{partnerId,jdbcType=VARCHAR}, #{accountId,jdbcType=VARCHAR}, #{creativeId,jdbcType=VARCHAR},
|
|
|
- #{articleId,jdbcType=VARCHAR}, #{cardId,jdbcType=VARCHAR}, #{packageId,jdbcType=VARCHAR},
|
|
|
- #{status,jdbcType=INTEGER}, #{isDelete,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateTime,jdbcType=TIMESTAMP})
|
|
|
+ #{articleId,jdbcType=VARCHAR}, #{cardId,jdbcType=VARCHAR}, #{videoId,jdbcType=BIGINT},
|
|
|
+ #{packageId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{isDelete,jdbcType=INTEGER},
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ExternalChannel">
|
|
|
insert into external_channel
|
|
|
@@ -150,6 +151,9 @@
|
|
|
<if test="cardId != null">
|
|
|
card_id,
|
|
|
</if>
|
|
|
+ <if test="videoId != null">
|
|
|
+ video_id,
|
|
|
+ </if>
|
|
|
<if test="packageId != null">
|
|
|
package_id,
|
|
|
</if>
|
|
|
@@ -191,6 +195,9 @@
|
|
|
<if test="cardId != null">
|
|
|
#{cardId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="videoId != null">
|
|
|
+ #{videoId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
<if test="packageId != null">
|
|
|
#{packageId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -241,6 +248,9 @@
|
|
|
<if test="record.cardId != null">
|
|
|
card_id = #{record.cardId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.videoId != null">
|
|
|
+ video_id = #{record.videoId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
<if test="record.packageId != null">
|
|
|
package_id = #{record.packageId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -271,6 +281,7 @@
|
|
|
creative_id = #{record.creativeId,jdbcType=VARCHAR},
|
|
|
article_id = #{record.articleId,jdbcType=VARCHAR},
|
|
|
card_id = #{record.cardId,jdbcType=VARCHAR},
|
|
|
+ video_id = #{record.videoId,jdbcType=BIGINT},
|
|
|
package_id = #{record.packageId,jdbcType=VARCHAR},
|
|
|
`status` = #{record.status,jdbcType=INTEGER},
|
|
|
is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
|
@@ -304,6 +315,9 @@
|
|
|
<if test="cardId != null">
|
|
|
card_id = #{cardId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="videoId != null">
|
|
|
+ video_id = #{videoId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
<if test="packageId != null">
|
|
|
package_id = #{packageId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -331,6 +345,7 @@
|
|
|
creative_id = #{creativeId,jdbcType=VARCHAR},
|
|
|
article_id = #{articleId,jdbcType=VARCHAR},
|
|
|
card_id = #{cardId,jdbcType=VARCHAR},
|
|
|
+ video_id = #{videoId,jdbcType=BIGINT},
|
|
|
package_id = #{packageId,jdbcType=VARCHAR},
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|