|
@@ -3,10 +3,12 @@
|
|
|
<mapper namespace="com.tzld.piaoquan.api.dao.mapper.contentplatform.ContentPlatformGzhPlanMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformGzhPlan">
|
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
|
+ <result column="type" jdbcType="INTEGER" property="type" />
|
|
|
<result column="publish_stage" jdbcType="INTEGER" property="publishStage" />
|
|
|
<result column="account_id" jdbcType="BIGINT" property="accountId" />
|
|
|
<result column="scene" jdbcType="INTEGER" property="scene" />
|
|
|
<result column="external_id" jdbcType="VARCHAR" property="externalId" />
|
|
|
+ <result column="select_video_type" jdbcType="INTEGER" property="selectVideoType" />
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
<result column="create_account_id" jdbcType="BIGINT" property="createAccountId" />
|
|
|
<result column="create_timestamp" jdbcType="BIGINT" property="createTimestamp" />
|
|
@@ -71,8 +73,8 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, publish_stage, account_id, scene, external_id, `status`, create_account_id, create_timestamp,
|
|
|
- update_timestamp
|
|
|
+ id, `type`, publish_stage, account_id, scene, external_id, select_video_type, `status`,
|
|
|
+ create_account_id, create_timestamp, update_timestamp
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformGzhPlanExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -108,14 +110,14 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformGzhPlan">
|
|
|
- insert into content_platform_gzh_plan (id, publish_stage, account_id,
|
|
|
- scene, external_id, `status`,
|
|
|
- create_account_id, create_timestamp, update_timestamp
|
|
|
- )
|
|
|
- values (#{id,jdbcType=BIGINT}, #{publishStage,jdbcType=INTEGER}, #{accountId,jdbcType=BIGINT},
|
|
|
- #{scene,jdbcType=INTEGER}, #{externalId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
- #{createAccountId,jdbcType=BIGINT}, #{createTimestamp,jdbcType=BIGINT}, #{updateTimestamp,jdbcType=BIGINT}
|
|
|
- )
|
|
|
+ insert into content_platform_gzh_plan (id, `type`, publish_stage,
|
|
|
+ account_id, scene, external_id,
|
|
|
+ select_video_type, `status`, create_account_id,
|
|
|
+ create_timestamp, update_timestamp)
|
|
|
+ values (#{id,jdbcType=BIGINT}, #{type,jdbcType=INTEGER}, #{publishStage,jdbcType=INTEGER},
|
|
|
+ #{accountId,jdbcType=BIGINT}, #{scene,jdbcType=INTEGER}, #{externalId,jdbcType=VARCHAR},
|
|
|
+ #{selectVideoType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{createAccountId,jdbcType=BIGINT},
|
|
|
+ #{createTimestamp,jdbcType=BIGINT}, #{updateTimestamp,jdbcType=BIGINT})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformGzhPlan">
|
|
|
insert into content_platform_gzh_plan
|
|
@@ -123,6 +125,9 @@
|
|
|
<if test="id != null">
|
|
|
id,
|
|
|
</if>
|
|
|
+ <if test="type != null">
|
|
|
+ `type`,
|
|
|
+ </if>
|
|
|
<if test="publishStage != null">
|
|
|
publish_stage,
|
|
|
</if>
|
|
@@ -135,6 +140,9 @@
|
|
|
<if test="externalId != null">
|
|
|
external_id,
|
|
|
</if>
|
|
|
+ <if test="selectVideoType != null">
|
|
|
+ select_video_type,
|
|
|
+ </if>
|
|
|
<if test="status != null">
|
|
|
`status`,
|
|
|
</if>
|
|
@@ -152,6 +160,9 @@
|
|
|
<if test="id != null">
|
|
|
#{id,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="type != null">
|
|
|
+ #{type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="publishStage != null">
|
|
|
#{publishStage,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -164,6 +175,9 @@
|
|
|
<if test="externalId != null">
|
|
|
#{externalId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="selectVideoType != null">
|
|
|
+ #{selectVideoType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="status != null">
|
|
|
#{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -190,6 +204,9 @@
|
|
|
<if test="record.id != null">
|
|
|
id = #{record.id,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="record.type != null">
|
|
|
+ `type` = #{record.type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="record.publishStage != null">
|
|
|
publish_stage = #{record.publishStage,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -202,6 +219,9 @@
|
|
|
<if test="record.externalId != null">
|
|
|
external_id = #{record.externalId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.selectVideoType != null">
|
|
|
+ select_video_type = #{record.selectVideoType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="record.status != null">
|
|
|
`status` = #{record.status,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -222,10 +242,12 @@
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update content_platform_gzh_plan
|
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
|
+ `type` = #{record.type,jdbcType=INTEGER},
|
|
|
publish_stage = #{record.publishStage,jdbcType=INTEGER},
|
|
|
account_id = #{record.accountId,jdbcType=BIGINT},
|
|
|
scene = #{record.scene,jdbcType=INTEGER},
|
|
|
external_id = #{record.externalId,jdbcType=VARCHAR},
|
|
|
+ select_video_type = #{record.selectVideoType,jdbcType=INTEGER},
|
|
|
`status` = #{record.status,jdbcType=INTEGER},
|
|
|
create_account_id = #{record.createAccountId,jdbcType=BIGINT},
|
|
|
create_timestamp = #{record.createTimestamp,jdbcType=BIGINT},
|
|
@@ -237,6 +259,9 @@
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformGzhPlan">
|
|
|
update content_platform_gzh_plan
|
|
|
<set>
|
|
|
+ <if test="type != null">
|
|
|
+ `type` = #{type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="publishStage != null">
|
|
|
publish_stage = #{publishStage,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -249,6 +274,9 @@
|
|
|
<if test="externalId != null">
|
|
|
external_id = #{externalId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="selectVideoType != null">
|
|
|
+ select_video_type = #{selectVideoType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="status != null">
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -266,10 +294,12 @@
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformGzhPlan">
|
|
|
update content_platform_gzh_plan
|
|
|
- set publish_stage = #{publishStage,jdbcType=INTEGER},
|
|
|
+ set `type` = #{type,jdbcType=INTEGER},
|
|
|
+ publish_stage = #{publishStage,jdbcType=INTEGER},
|
|
|
account_id = #{accountId,jdbcType=BIGINT},
|
|
|
scene = #{scene,jdbcType=INTEGER},
|
|
|
external_id = #{externalId,jdbcType=VARCHAR},
|
|
|
+ select_video_type = #{selectVideoType,jdbcType=INTEGER},
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
create_account_id = #{createAccountId,jdbcType=BIGINT},
|
|
|
create_timestamp = #{createTimestamp,jdbcType=BIGINT},
|