@@ -94,4 +94,6 @@ public interface AigcBaseMapper {
List<PublishContent> getTodayPublishContentList(String accountId, Long todayStart);
List<String> getAllAuditProducePlan();
+
+ void topContentDeprecate(String topProducePlanId);
}
@@ -697,6 +697,7 @@ public class ArticlePromotionService {
articleAddDependPlan(topProducePlanId, detail, String.valueOf(crawlerContentId), inputSourceLabel,
ProducePlanInputSourceTypeEnum.contentID.getVal(), unsafeTitleList, lastTopContentMap);
+ aigcBaseMapper.topContentDeprecate(topProducePlanId);
return ReturnT.SUCCESS;
@@ -445,4 +445,12 @@
select id from produce_plan where plan_status = 1 and produce_modal = 3
</select>
+ <update id="topContentDeprecate">
+ update produce_plan_exe_record pper
+ join crawler_content cc on pper.channel_content_id = cc.channel_content_id
+ left join produce_plan_input_source ppis on pper.plan_id = ppis.plan_id and cc.id = ppis.input_source_value
+ set pper.status = 3, pper.error_msg = '内容废弃'
+ where pper.plan_id = #{topProducePlanId} and pper.status = 2 and ppis.id is null
+ </update>
</mapper>