wangyunpeng hace 7 meses
padre
commit
48790f7fee

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

@@ -47,7 +47,7 @@ public class FlowCtlDecreaseStrategy implements ScoreStrategy {
         if (CollectionUtils.isEmpty(param.getContents())) {
             return scores;
         }
-        String dateStr = DateUtils.getCurrentDateStr("yyyy-MM-dd");
+        String dateStr = DateUtils.getCurrentDateStr("yyyyMMdd");
         List<String> titles = param.getContents().stream().map(Content::getTitle).collect(Collectors.toList());
         // 获取今日已发布内容
         List<PublishSortLog> hisPublishContentList = publishSortLogRepository.findByDateStrAndTitleIn(dateStr, titles);

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

@@ -49,7 +49,7 @@ public class PublishTimesStrategy implements ScoreStrategy {
             return scores;
         }
         // 获取今日已发布内容
-        String dateStr = DateUtils.getCurrentDateStr("yyyy-MM-dd");
+        String dateStr = DateUtils.getCurrentDateStr("yyyyMMdd");
         List<PublishSortLog> hisPublishContentList = publishSortLogRepository.findByDateStr(dateStr);
         Map<String, Set<PublishSortLog>> hisPublishedContentMap = hisPublishContentList.stream()
                 .collect(Collectors.groupingBy(