|
@@ -10,6 +10,7 @@
|
|
|
<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="stage_publish_status" jdbcType="INTEGER" property="stagePublishStatus" />
|
|
|
<result column="create_account_id" jdbcType="BIGINT" property="createAccountId" />
|
|
|
<result column="create_timestamp" jdbcType="BIGINT" property="createTimestamp" />
|
|
|
<result column="update_timestamp" jdbcType="BIGINT" property="updateTimestamp" />
|
|
@@ -74,7 +75,7 @@
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, `type`, publish_stage, account_id, scene, external_id, select_video_type, `status`,
|
|
|
- create_account_id, create_timestamp, update_timestamp
|
|
|
+ stage_publish_status, create_account_id, create_timestamp, update_timestamp
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformGzhPlanExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -112,12 +113,14 @@
|
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformGzhPlan">
|
|
|
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)
|
|
|
+ select_video_type, `status`, stage_publish_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})
|
|
|
+ #{selectVideoType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{stagePublishStatus,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
|
|
@@ -146,6 +149,9 @@
|
|
|
<if test="status != null">
|
|
|
`status`,
|
|
|
</if>
|
|
|
+ <if test="stagePublishStatus != null">
|
|
|
+ stage_publish_status,
|
|
|
+ </if>
|
|
|
<if test="createAccountId != null">
|
|
|
create_account_id,
|
|
|
</if>
|
|
@@ -181,6 +187,9 @@
|
|
|
<if test="status != null">
|
|
|
#{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="stagePublishStatus != null">
|
|
|
+ #{stagePublishStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="createAccountId != null">
|
|
|
#{createAccountId,jdbcType=BIGINT},
|
|
|
</if>
|
|
@@ -225,6 +234,9 @@
|
|
|
<if test="record.status != null">
|
|
|
`status` = #{record.status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="record.stagePublishStatus != null">
|
|
|
+ stage_publish_status = #{record.stagePublishStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="record.createAccountId != null">
|
|
|
create_account_id = #{record.createAccountId,jdbcType=BIGINT},
|
|
|
</if>
|
|
@@ -249,6 +261,7 @@
|
|
|
external_id = #{record.externalId,jdbcType=VARCHAR},
|
|
|
select_video_type = #{record.selectVideoType,jdbcType=INTEGER},
|
|
|
`status` = #{record.status,jdbcType=INTEGER},
|
|
|
+ stage_publish_status = #{record.stagePublishStatus,jdbcType=INTEGER},
|
|
|
create_account_id = #{record.createAccountId,jdbcType=BIGINT},
|
|
|
create_timestamp = #{record.createTimestamp,jdbcType=BIGINT},
|
|
|
update_timestamp = #{record.updateTimestamp,jdbcType=BIGINT}
|
|
@@ -280,6 +293,9 @@
|
|
|
<if test="status != null">
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="stagePublishStatus != null">
|
|
|
+ stage_publish_status = #{stagePublishStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="createAccountId != null">
|
|
|
create_account_id = #{createAccountId,jdbcType=BIGINT},
|
|
|
</if>
|
|
@@ -301,6 +317,7 @@
|
|
|
external_id = #{externalId,jdbcType=VARCHAR},
|
|
|
select_video_type = #{selectVideoType,jdbcType=INTEGER},
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
+ stage_publish_status = #{stagePublishStatus,jdbcType=INTEGER},
|
|
|
create_account_id = #{createAccountId,jdbcType=BIGINT},
|
|
|
create_timestamp = #{createTimestamp,jdbcType=BIGINT},
|
|
|
update_timestamp = #{updateTimestamp,jdbcType=BIGINT}
|