Browse Source

Merge branch 'wyp/1210-publishContentFilter' of Server/long-article-recommend into master

wangyunpeng 7 tháng trước cách đây
mục cha
commit
ba3f83f0c3

+ 1 - 1
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recommend/PublishContentFilterService.java

@@ -31,7 +31,7 @@ public class PublishContentFilterService {
         List<Set<Character>> firstSecondTitleCache = TitleSimilarCheckUtil.makeCache(filterTitleList);
         for (PublishContentFilterContentItem contentItem : param.getContentList()) {
             boolean isDuplicate = false;
-            if (contentItem.getPoolLevel().equals(ContentPoolEnum.autoArticlePoolLevel4.getContentPool())) {
+            if (ContentPoolEnum.autoArticlePoolLevel4.getContentPool().equals(contentItem.getPoolLevel())) {
                 isDuplicate = TitleSimilarCheckUtil.isDuplicateContentByCache(contentItem.getTitle(),
                         firstSecondTitleCache, TitleSimilarCheckUtil.SIMILARITY_THRESHOLD);
             }