Explorar el Código

标题相似临时过滤

wangyunpeng hace 6 meses
padre
commit
70558e69ec

+ 2 - 2
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/common/enums/LongArticleTextSimilarityStatusEnum.java

@@ -6,8 +6,8 @@ import lombok.Getter;
 public enum LongArticleTextSimilarityStatusEnum {
 
     WAITING(0, "未判断"),
-    USEFUL(1, "可用"),
-    UNUSEFUL(2, "不可用"),
+    AVAILABLE(1, "可用"),
+    UNAVAILABLE(2, "不可用"),
     ;
 
     //0-未判断 1-可用 2-不可用

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

@@ -220,7 +220,7 @@ public class RecallService implements ApplicationContextAware {
         }
         content.removeIf(o -> !Objects.equals(o.getSourceType(), PublishPlanInputSourceTypesEnum.longArticleVideoPoolSource.getVal())
                 && (Objects.isNull(textStatusMap.get(o.getSourceId()))
-                || textStatusMap.get(o.getSourceId()) != LongArticleTextSimilarityStatusEnum.USEFUL.getCode()));
+                || textStatusMap.get(o.getSourceId()) != LongArticleTextSimilarityStatusEnum.AVAILABLE.getCode()));
     }
 
     private void setVideoContent(List<Content> contentList) {