Ver Fonte

Merge branch 'wyp/1115-export' of Server/long-article-recommend into master

wangyunpeng há 8 meses atrás
pai
commit
c2787f2c3e

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

@@ -171,7 +171,7 @@ public class DataDashboardService {
         log.info("newSortStrategyData sortLogList finish");
         Map<String, Map<String, String>> sortStrategyMap = sortLogList.stream()
                 .collect(Collectors.groupingBy(PublishSortLog::getGhId,
-                        Collectors.toMap(PublishSortLog::getDateStr, PublishSortLog::getStrategy, (existing, replacement) -> replacement)));
+                        Collectors.toMap(PublishSortLog::getDateStr, PublishSortLog::getStrategy, (existing, replacement) -> existing)));
         Map<String, Map<String, Map<String, AccountAvgInfo>>> accountAvgInfoIndexMap = accountAvgInfoList.stream()
                 .filter(o -> Objects.nonNull(o.getReadAvg()) && o.getReadAvg() > 0 && o.getFans() > 1000)
                 .collect(Collectors.groupingBy(AccountAvgInfo::getGhId, Collectors.groupingBy(AccountAvgInfo::getUpdateTime,
@@ -1335,7 +1335,7 @@ public class DataDashboardService {
     }
 
     public void firstContentScoreExport(String beginDate, String endDate) {
-        List<String> dateStrList = DateUtils.getBeforeDays(beginDate, endDate, 1);
+        List<String> dateStrList = DateUtils.getBeforeDays(beginDate, endDate, 3);
         exportFeishuFirstContentScore(dateStrList, sheetToken, "XBFd16");
     }