|
@@ -1,22 +1,21 @@
|
|
|
package com.tzld.longarticle.recommend.server.service.recall;
|
|
|
|
|
|
-import com.ctrip.framework.apollo.spring.annotation.ApolloJsonValue;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.tzld.longarticle.recommend.server.common.ThreadPoolFactory;
|
|
|
+import com.tzld.longarticle.recommend.server.mapper.crawler.CrawlerBaseMapper;
|
|
|
import com.tzld.longarticle.recommend.server.model.dto.Content;
|
|
|
import com.tzld.longarticle.recommend.server.model.dto.ContentHisPublishArticle;
|
|
|
+import com.tzld.longarticle.recommend.server.model.entity.aigc.CrawlerMetaArticle;
|
|
|
+import com.tzld.longarticle.recommend.server.model.entity.crawler.AccountAvgInfo;
|
|
|
+import com.tzld.longarticle.recommend.server.model.entity.crawler.AccountCorrelation;
|
|
|
+import com.tzld.longarticle.recommend.server.model.entity.crawler.Article;
|
|
|
+import com.tzld.longarticle.recommend.server.model.entity.crawler.ArticleDetailInfo;
|
|
|
import com.tzld.longarticle.recommend.server.remote.AIGCRemoteService;
|
|
|
import com.tzld.longarticle.recommend.server.repository.aigc.CrawlerMetaArticleRepository;
|
|
|
import com.tzld.longarticle.recommend.server.repository.crawler.AccountAvgInfoRepository;
|
|
|
import com.tzld.longarticle.recommend.server.repository.crawler.AccountCorrelationRepository;
|
|
|
import com.tzld.longarticle.recommend.server.repository.crawler.ArticleDetailInfoRepository;
|
|
|
import com.tzld.longarticle.recommend.server.repository.crawler.ArticleRepository;
|
|
|
-import com.tzld.longarticle.recommend.server.model.entity.aigc.CrawlerMetaArticle;
|
|
|
-import com.tzld.longarticle.recommend.server.model.entity.crawler.AccountAvgInfo;
|
|
|
-import com.tzld.longarticle.recommend.server.model.entity.crawler.AccountCorrelation;
|
|
|
-import com.tzld.longarticle.recommend.server.model.entity.crawler.Article;
|
|
|
-import com.tzld.longarticle.recommend.server.model.entity.crawler.ArticleDetailInfo;
|
|
|
-import com.tzld.longarticle.recommend.server.mapper.crawler.CrawlerBaseMapper;
|
|
|
import com.tzld.longarticle.recommend.server.service.AccountIndexAvgViewCountService;
|
|
|
import com.tzld.longarticle.recommend.server.service.recall.strategy.DefaultRecallStrategy;
|
|
|
import com.tzld.longarticle.recommend.server.util.CommonCollectionUtils;
|
|
@@ -74,10 +73,6 @@ public class RecallService implements ApplicationContextAware {
|
|
|
private Boolean contentHisFeishuEnable;
|
|
|
@Value("${morning.noon.fission.rate:0.64}")
|
|
|
private double morningNoonFissionRate;
|
|
|
- @ApolloJsonValue("${morning.publish.account.ghId:[]}")
|
|
|
- private List<String> morningPublishAccountGhIds;
|
|
|
- @ApolloJsonValue("${noon.publish.account.ghId:[]}")
|
|
|
- private List<String> noonPublishAccountGhIds;
|
|
|
|
|
|
|
|
|
@PostConstruct
|
|
@@ -391,7 +386,8 @@ public class RecallService implements ApplicationContextAware {
|
|
|
t0FissionByReadAvgCorrelationSum += article.getT0FissionByReadAvg() * correlation;
|
|
|
}
|
|
|
fissionSum += sumFission0;
|
|
|
- if (noonPublishAccountGhIds.contains(article.getGhId())) {
|
|
|
+ int hour = DateUtils.getHourByTimestamp(article.getUpdateTime());
|
|
|
+ if (hour >= 12) {
|
|
|
fissionWeightSum += sumFission0 / morningNoonFissionRate;
|
|
|
} else {
|
|
|
fissionWeightSum += sumFission0;
|