瀏覽代碼

cold start

丁云鹏 11 月之前
父節點
當前提交
dc40ea279a

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

@@ -65,7 +65,8 @@ public class DefaultRecallStrategy implements RecallStrategy {
         MapSqlParameterSource parameters = new MapSqlParameterSource();
         parameters.addValue("channelContentIds", channelContentIds);
         List<ContentCategory> result = piaoquanCrawlerJdbcTemplate.query(
-                "select content_channel_id, category from cold_start_article_pool where content_channel_id in (:channelContentIds)",
+                "select duplicate content_channel_id, category from cold_start_article_pool where content_channel_id " +
+                        "in (:channelContentIds)",
                 parameters,
                 new BeanPropertyRowMapper<>(ContentCategory.class));
         return result;