|
@@ -4,10 +4,10 @@
|
|
|
|
|
|
<insert id="insertGzhPlanReturnId" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into content_platform_gzh_plan (`type`, publish_stage, account_id, scene, external_id,
|
|
|
- select_video_type, `status`, stage_publish_status,
|
|
|
+ select_video_type, stage_publish_status,
|
|
|
create_account_id, create_timestamp, update_timestamp)
|
|
|
values (#{record.type}, #{record.publishStage}, #{record.accountId}, #{record.scene}, #{record.externalId},
|
|
|
- #{record.selectVideoType}, #{record.status}, #{record.stagePublishStatus}, #{record.createAccountId},
|
|
|
+ #{record.selectVideoType}, #{record.stagePublishStatus}, #{record.createAccountId},
|
|
|
#{record.createTimestamp}, #{record.updateTimestamp})
|
|
|
</insert>
|
|
|
|
|
@@ -79,7 +79,9 @@
|
|
|
select *
|
|
|
from content_platform_gzh_plan
|
|
|
where account_id = #{accountId}
|
|
|
- and scene = #{scene} and status = 1
|
|
|
+ and scene = #{scene}
|
|
|
+ and type = #{type}
|
|
|
+ and status = 1
|
|
|
<if test="id != null">
|
|
|
and id != #{id}
|
|
|
</if>
|