Explorar el Código

增加视频审核条件

xueyiming hace 6 meses
padre
commit
8c4079986d

+ 2 - 2
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/ContentServiceImpl.java

@@ -288,9 +288,9 @@ public class ContentServiceImpl implements ContentService {
             CrawlerVideoExample example = new CrawlerVideoExample();
             example.setOrderByClause("score desc");
             example.createCriteria().andDownloadStatusEqualTo(2)
+                    .andContentIdEqualTo(publishContent.getSourceId())
                     .andStatusEqualTo(1)
-                    .andIsIllegalEqualTo(0)
-                    .andContentIdEqualTo(publishContent.getSourceId());
+                    .andIsIllegalEqualTo(0);
             List<CrawlerVideo> crawlerVideoList = crawlerVideoMapper.selectByExample(example);
             List<CrawlerVideo> videoList = new ArrayList<>();
             if (!CollectionUtils.isEmpty(crawlerVideoList)) {