Bladeren bron

文章视频审核增加 生成计划优先级配置

wangyunpeng 1 week geleden
bovenliggende
commit
8c0aa8502c

+ 5 - 5
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/mapper/longArticle/ArticleAuditMapper.java

@@ -28,11 +28,11 @@ public interface ArticleAuditMapper {
                                                   List<String> producePlanIds, String poolLevel,
                                                   List<String> excludeContentIds);
 
-    List<ArticleVideoAuditListVO> articleVideoWatingAuditList(List<Integer> status,
-                                                              List<String> flowPoolLevels,
-                                                              List<String> excludeContentIds,
-                                                              List<String> producePlanIds,
-                                                              Integer size);
+    List<ArticleVideoAuditListVO> articleVideoWaitingAuditList(List<Integer> status,
+                                                               List<String> flowPoolLevels,
+                                                               List<String> excludeContentIds,
+                                                               List<String> producePlanIds,
+                                                               Integer size);
 
 
     void updateCrawlerVideoIsIllegal(List<Integer> illegalVideoIds, Integer isIllegal);

+ 3 - 3
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recommend/ArticleVideoAuditService.java

@@ -480,7 +480,7 @@ public class ArticleVideoAuditService {
             }
             // 高优先级计划内容添加
             if (CollectionUtils.isNotEmpty(highPriorityProducePlan)) {
-                List<ArticleVideoAuditListVO> addList = articleAuditMapper.articleVideoWatingAuditList(
+                List<ArticleVideoAuditListVO> addList = articleAuditMapper.articleVideoWaitingAuditList(
                         Arrays.asList(ArticleVideoAuditStatusEnum.WAITING.getCode()),
                         null, excludeContentIds, highPriorityProducePlan, 100);
                 if (CollectionUtils.isNotEmpty(addList)) {
@@ -500,7 +500,7 @@ public class ArticleVideoAuditService {
                     List<LongArticleTitleAudit> inAuditListPool = inAuditListPoolCountMap.getOrDefault(poolEnum.getContentPool(), new ArrayList<>());
                     int needCount = entry.getValue() - (totalCount + auditQueueList.size() + inAuditListPool.size());
                     if (needCount > 0) {
-                        List<ArticleVideoAuditListVO> addList = articleAuditMapper.articleVideoWatingAuditList(
+                        List<ArticleVideoAuditListVO> addList = articleAuditMapper.articleVideoWaitingAuditList(
                                 Arrays.asList(ArticleVideoAuditStatusEnum.WAITING.getCode()),
                                 Arrays.asList(poolEnum.getContentPool()), excludeContentIds, null, needCount);
                         if (CollectionUtils.isNotEmpty(addList)) {
@@ -515,7 +515,7 @@ public class ArticleVideoAuditService {
             // 待发布内容不足添加
             Long auditQueueSize = redisTemplate.opsForZSet().size(auditQueueRedisKey);
             if (Objects.isNull(auditQueueSize) || auditQueueSize < 20) {
-                List<ArticleVideoAuditListVO> list = articleAuditMapper.articleVideoWatingAuditList(
+                List<ArticleVideoAuditListVO> list = articleAuditMapper.articleVideoWaitingAuditList(
                         Arrays.asList(ArticleVideoAuditStatusEnum.WAITING.getCode()), null,
                         excludeContentIds, null, 40);
                 if (CollectionUtils.isNotEmpty(list)) {

+ 1 - 1
long-article-recommend-service/src/main/resources/mapper/longArticle/ArticleAuditMapper.xml

@@ -243,7 +243,7 @@
         limit 1
     </select>
 
-    <select id="articleVideoWatingAuditList"
+    <select id="articleVideoWaitingAuditList"
             resultType="com.tzld.longarticle.recommend.server.model.vo.ArticleVideoAuditListVO">
         select content_id, status, audit_account, audit_timestamp, flow_pool_level
         from long_articles_title_audit