|
@@ -291,19 +291,10 @@ public class DataDashboardService {
|
|
|
sumThirdFission2 += Optional.ofNullable(articleDetailInfo.getFission2()).orElse(0);
|
|
sumThirdFission2 += Optional.ofNullable(articleDetailInfo.getFission2()).orElse(0);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- Map<String, Map<String, AccountAvgInfo>> dateAvgMap = accountAvgInfoIndexMap.get(article.getGhId());
|
|
|
|
|
- String hisPublishDate = DateUtils.timestampToYMDStr(article.getUpdateTime(), "yyyy-MM-dd");
|
|
|
|
|
- AccountAvgInfo avgInfo = null;
|
|
|
|
|
- AccountAvgInfo firstAvgInfo = null;
|
|
|
|
|
- if (Objects.nonNull(dateAvgMap)) {
|
|
|
|
|
- List<String> avgMapDateList = new ArrayList<>(dateAvgMap.keySet());
|
|
|
|
|
- hisPublishDate = DateUtils.findNearestDate(avgMapDateList, hisPublishDate, "yyyy-MM-dd");
|
|
|
|
|
- Map<String, AccountAvgInfo> accountAvgInfoMap = dateAvgMap.get(hisPublishDate);
|
|
|
|
|
- if (Objects.nonNull(accountAvgInfoMap)) {
|
|
|
|
|
- avgInfo = accountAvgInfoMap.get(article.getItemIndex().toString());
|
|
|
|
|
- firstAvgInfo = accountAvgInfoMap.get("1");
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ AccountAvgInfo avgInfo = getAccountAvgInfo(accountAvgInfoIndexMap, article.getGhId(),
|
|
|
|
|
+ article.getUpdateTime(), article.getItemIndex());
|
|
|
|
|
+ AccountAvgInfo firstAvgInfo = getAccountAvgInfo(accountAvgInfoIndexMap, article.getGhId(),
|
|
|
|
|
+ article.getUpdateTime(), 1);
|
|
|
String date = DateUtils.timestampToYMDStr(article.getUpdateTime(), "yyyyMMdd");
|
|
String date = DateUtils.timestampToYMDStr(article.getUpdateTime(), "yyyyMMdd");
|
|
|
NewSortStrategyExport obj = new NewSortStrategyExport();
|
|
NewSortStrategyExport obj = new NewSortStrategyExport();
|
|
|
obj.setGhId(article.getGhId());
|
|
obj.setGhId(article.getGhId());
|
|
@@ -517,7 +508,7 @@ public class DataDashboardService {
|
|
|
.builder()
|
|
.builder()
|
|
|
.put("valueRange", MapBuilder
|
|
.put("valueRange", MapBuilder
|
|
|
.builder()
|
|
.builder()
|
|
|
- .put("range", String.format("%s!A" + startRow + ":CH", sheetId) + (partition.size() + startRow - 1))
|
|
|
|
|
|
|
+ .put("range", String.format("%s!A" + startRow + ":CI", sheetId) + (partition.size() + startRow - 1))
|
|
|
.put("values", partition)
|
|
.put("values", partition)
|
|
|
.build())
|
|
.build())
|
|
|
.build(), httpHeaders);
|
|
.build(), httpHeaders);
|
|
@@ -624,38 +615,38 @@ public class DataDashboardService {
|
|
|
|
|
|
|
|
List<Pair<String, String>> styles = Arrays
|
|
List<Pair<String, String>> styles = Arrays
|
|
|
.asList(
|
|
.asList(
|
|
|
- Pair.of("V", "#,##0.00"),
|
|
|
|
|
- Pair.of("AH", "#,##0.00"),
|
|
|
|
|
- Pair.of("AM", "#,##0.00"),
|
|
|
|
|
- Pair.of("BB", "#,##0.00"),
|
|
|
|
|
- Pair.of("BK", "#,##0.00"),
|
|
|
|
|
- Pair.of("F", "0.00%"),
|
|
|
|
|
- Pair.of("O", "0.00%"),
|
|
|
|
|
|
|
+ Pair.of("W", "#,##0.00"),
|
|
|
|
|
+ Pair.of("AI", "#,##0.00"),
|
|
|
|
|
+ Pair.of("AN", "#,##0.00"),
|
|
|
|
|
+ Pair.of("BC", "#,##0.00"),
|
|
|
|
|
+ Pair.of("BL", "#,##0.00"),
|
|
|
|
|
+ Pair.of("G", "0.00%"),
|
|
|
Pair.of("P", "0.00%"),
|
|
Pair.of("P", "0.00%"),
|
|
|
Pair.of("Q", "0.00%"),
|
|
Pair.of("Q", "0.00%"),
|
|
|
Pair.of("R", "0.00%"),
|
|
Pair.of("R", "0.00%"),
|
|
|
- Pair.of("W", "0.00%"),
|
|
|
|
|
|
|
+ Pair.of("S", "0.00%"),
|
|
|
Pair.of("X", "0.00%"),
|
|
Pair.of("X", "0.00%"),
|
|
|
Pair.of("Y", "0.00%"),
|
|
Pair.of("Y", "0.00%"),
|
|
|
Pair.of("Z", "0.00%"),
|
|
Pair.of("Z", "0.00%"),
|
|
|
- Pair.of("AE", "0.00%"),
|
|
|
|
|
|
|
+ Pair.of("AA", "0.00%"),
|
|
|
Pair.of("AF", "0.00%"),
|
|
Pair.of("AF", "0.00%"),
|
|
|
Pair.of("AG", "0.00%"),
|
|
Pair.of("AG", "0.00%"),
|
|
|
- Pair.of("AN", "0.00%"),
|
|
|
|
|
|
|
+ Pair.of("AH", "0.00%"),
|
|
|
Pair.of("AO", "0.00%"),
|
|
Pair.of("AO", "0.00%"),
|
|
|
Pair.of("AP", "0.00%"),
|
|
Pair.of("AP", "0.00%"),
|
|
|
Pair.of("AQ", "0.00%"),
|
|
Pair.of("AQ", "0.00%"),
|
|
|
- Pair.of("AV", "0.00%"),
|
|
|
|
|
|
|
+ Pair.of("AR", "0.00%"),
|
|
|
Pair.of("AW", "0.00%"),
|
|
Pair.of("AW", "0.00%"),
|
|
|
Pair.of("AX", "0.00%"),
|
|
Pair.of("AX", "0.00%"),
|
|
|
- Pair.of("BC", "0.00%"),
|
|
|
|
|
|
|
+ Pair.of("AY", "0.00%"),
|
|
|
Pair.of("BD", "0.00%"),
|
|
Pair.of("BD", "0.00%"),
|
|
|
Pair.of("BE", "0.00%"),
|
|
Pair.of("BE", "0.00%"),
|
|
|
Pair.of("BF", "0.00%"),
|
|
Pair.of("BF", "0.00%"),
|
|
|
- Pair.of("BL", "0.00%"),
|
|
|
|
|
|
|
+ Pair.of("BG", "0.00%"),
|
|
|
Pair.of("BM", "0.00%"),
|
|
Pair.of("BM", "0.00%"),
|
|
|
Pair.of("BN", "0.00%"),
|
|
Pair.of("BN", "0.00%"),
|
|
|
- Pair.of("BO", "0.00%")
|
|
|
|
|
|
|
+ Pair.of("BO", "0.00%"),
|
|
|
|
|
+ Pair.of("BP", "0.00%")
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
doSendFeishuSheet(dateStrs, sheetToken, sheetId, rowNum, rows, 3, styles);
|
|
doSendFeishuSheet(dateStrs, sheetToken, sheetId, rowNum, rows, 3, styles);
|
|
@@ -708,25 +699,30 @@ public class DataDashboardService {
|
|
|
Map<String, Integer> scoreHisPublishTimeMap = new HashMap<>();
|
|
Map<String, Integer> scoreHisPublishTimeMap = new HashMap<>();
|
|
|
Map<String, Map<Integer, List<String>>> titleTypePoolMap = new HashMap<>();
|
|
Map<String, Map<Integer, List<String>>> titleTypePoolMap = new HashMap<>();
|
|
|
Map<String, Set<String>> wxsnHisDistinctSetMap = new HashMap<>();
|
|
Map<String, Set<String>> wxsnHisDistinctSetMap = new HashMap<>();
|
|
|
|
|
+ Map<String, List<String>> fansAccountTypeMap = new HashMap<>();
|
|
|
for (NewSortStrategyExport data : newSortStrategyExportList) {
|
|
for (NewSortStrategyExport data : newSortStrategyExportList) {
|
|
|
String type = getArticleType(data, small);
|
|
String type = getArticleType(data, small);
|
|
|
Article article = articleMap.get(data.getWxSn());
|
|
Article article = articleMap.get(data.getWxSn());
|
|
|
|
|
+ if (!checkIsAigcPublish(article, publishSortLogMap)) {
|
|
|
|
|
+ continue;
|
|
|
|
|
+ }
|
|
|
IntermediateIndicatorsExport item = resultMap.get(type);
|
|
IntermediateIndicatorsExport item = resultMap.get(type);
|
|
|
List<Article> list = hisPublishMap.get(data.getTitle());
|
|
List<Article> list = hisPublishMap.get(data.getTitle());
|
|
|
list = list.stream().filter(publish -> publish.getUpdateTime() < (article.getUpdateTime() - 3600 * 8))
|
|
list = list.stream().filter(publish -> publish.getUpdateTime() < (article.getUpdateTime() - 3600 * 8))
|
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
|
- Integer poolLevel = getArticlePoolLevel(data, list, small);
|
|
|
|
|
|
|
+ Integer poolLevel = getArticlePoolLevel(data.getGhId(), list, small);
|
|
|
List<String> titles = titleTypeMap.computeIfAbsent(type, k -> new ArrayList<>());
|
|
List<String> titles = titleTypeMap.computeIfAbsent(type, k -> new ArrayList<>());
|
|
|
Map<Integer, List<String>> titlePoolMap = titleTypePoolMap.computeIfAbsent(type, k -> new HashMap<>());
|
|
Map<Integer, List<String>> titlePoolMap = titleTypePoolMap.computeIfAbsent(type, k -> new HashMap<>());
|
|
|
List<String> poolTitles = titlePoolMap.computeIfAbsent(poolLevel, k -> new ArrayList<>());
|
|
List<String> poolTitles = titlePoolMap.computeIfAbsent(poolLevel, k -> new ArrayList<>());
|
|
|
|
|
|
|
|
// 发布情况
|
|
// 发布情况
|
|
|
- setPublishSituation(item, type, titleTypeMap, titleTypePoolMap, poolLevel, data);
|
|
|
|
|
|
|
+ setPublishSituation(item, type, titleTypeMap, titleTypePoolMap, poolLevel, article, fansAccountTypeMap,
|
|
|
|
|
+ accountAvgInfoIndexMap);
|
|
|
// 发布表现
|
|
// 发布表现
|
|
|
setPublishPerformance(item, data, publishSortLogMap);
|
|
setPublishPerformance(item, data, publishSortLogMap);
|
|
|
// 发布依赖表现
|
|
// 发布依赖表现
|
|
|
setPublishSourcePerformance(item, accountAvgInfoIndexMap, articleDetailInfoMap, publishSortLogMap,
|
|
setPublishSourcePerformance(item, accountAvgInfoIndexMap, articleDetailInfoMap, publishSortLogMap,
|
|
|
- type, scoreHisPublishTimeMap, wxsnHisDistinctSetMap, list);
|
|
|
|
|
|
|
+ type, scoreHisPublishTimeMap, wxsnHisDistinctSetMap, list, poolLevel, small, hisPublishMap);
|
|
|
// 发布未来表现
|
|
// 发布未来表现
|
|
|
setPublishFuturePerformance(item, data, poolLevel, futurePublishMap, publishSortLogMap, small);
|
|
setPublishFuturePerformance(item, data, poolLevel, futurePublishMap, publishSortLogMap, small);
|
|
|
|
|
|
|
@@ -737,6 +733,37 @@ public class DataDashboardService {
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ private boolean checkIsAigcPublish(Article article,
|
|
|
|
|
+ Map<String, Map<String, Map<Integer, PublishSortLog>>> publishSortLogMap
|
|
|
|
|
+ ) {
|
|
|
|
|
+ String publishDateStr = DateUtils.timestampToYMDStr(article.getUpdateTime(), "yyyyMMdd");
|
|
|
|
|
+ Map<String, Map<Integer, PublishSortLog>> dateSortMap = publishSortLogMap.get(article.getGhId());
|
|
|
|
|
+ if (Objects.nonNull(dateSortMap)) {
|
|
|
|
|
+ Map<Integer, PublishSortLog> indexMap = dateSortMap.get(publishDateStr);
|
|
|
|
|
+ if (Objects.nonNull(indexMap)) {
|
|
|
|
|
+ PublishSortLog log = indexMap.get(article.getItemIndex());
|
|
|
|
|
+ return Objects.nonNull(log);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ private AccountAvgInfo getAccountAvgInfo(Map<String, Map<String, Map<String, AccountAvgInfo>>> accountAvgInfoIndexMap,
|
|
|
|
|
+ String ghId, Long updateTime, Integer itemIndex) {
|
|
|
|
|
+ Map<String, Map<String, AccountAvgInfo>> dateAvgMap = accountAvgInfoIndexMap.get(ghId);
|
|
|
|
|
+ String hisPublishDate = DateUtils.timestampToYMDStr(updateTime, "yyyy-MM-dd");
|
|
|
|
|
+ AccountAvgInfo avgInfo = null;
|
|
|
|
|
+ if (Objects.nonNull(dateAvgMap)) {
|
|
|
|
|
+ List<String> avgMapDateList = new ArrayList<>(dateAvgMap.keySet());
|
|
|
|
|
+ hisPublishDate = DateUtils.findNearestDate(avgMapDateList, hisPublishDate, "yyyy-MM-dd");
|
|
|
|
|
+ Map<String, AccountAvgInfo> accountAvgInfoMap = dateAvgMap.get(hisPublishDate);
|
|
|
|
|
+ if (Objects.nonNull(accountAvgInfoMap)) {
|
|
|
|
|
+ avgInfo = accountAvgInfoMap.get(itemIndex.toString());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ return avgInfo;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
private void setPublishFuturePerformance(IntermediateIndicatorsExport item, NewSortStrategyExport data, Integer poolLevel,
|
|
private void setPublishFuturePerformance(IntermediateIndicatorsExport item, NewSortStrategyExport data, Integer poolLevel,
|
|
|
Map<String, List<Article>> futurePublishMap,
|
|
Map<String, List<Article>> futurePublishMap,
|
|
|
Map<String, Map<String, Map<Integer, PublishSortLog>>> publishSortLogMap,
|
|
Map<String, Map<String, Map<Integer, PublishSortLog>>> publishSortLogMap,
|
|
@@ -745,7 +772,7 @@ public class DataDashboardService {
|
|
|
if (CollectionUtils.isEmpty(futurePublishList)) {
|
|
if (CollectionUtils.isEmpty(futurePublishList)) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- int futurePoolLevel = getArticlePoolLevel(data, futurePublishList, small);
|
|
|
|
|
|
|
+ int futurePoolLevel = getArticlePoolLevel(data.getGhId(), futurePublishList, small);
|
|
|
if (futurePoolLevel > poolLevel) {
|
|
if (futurePoolLevel > poolLevel) {
|
|
|
if (futurePoolLevel == 2) {
|
|
if (futurePoolLevel == 2) {
|
|
|
item.setPromotionCountL2(item.getPromotionCountL2() + 1);
|
|
item.setPromotionCountL2(item.getPromotionCountL2() + 1);
|
|
@@ -889,17 +916,8 @@ public class DataDashboardService {
|
|
|
sumThirdFission2 += Optional.ofNullable(articleDetailInfo.getFission2()).orElse(0);
|
|
sumThirdFission2 += Optional.ofNullable(articleDetailInfo.getFission2()).orElse(0);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- Map<String, Map<String, AccountAvgInfo>> dateAvgMap = accountAvgInfoIndexMap.get(article.getGhId());
|
|
|
|
|
- String hisPublishDate = DateUtils.timestampToYMDStr(article.getUpdateTime(), "yyyy-MM-dd");
|
|
|
|
|
- AccountAvgInfo avgInfo = null;
|
|
|
|
|
- if (Objects.nonNull(dateAvgMap)) {
|
|
|
|
|
- List<String> avgMapDateList = new ArrayList<>(dateAvgMap.keySet());
|
|
|
|
|
- hisPublishDate = DateUtils.findNearestDate(avgMapDateList, hisPublishDate, "yyyy-MM-dd");
|
|
|
|
|
- Map<String, AccountAvgInfo> accountAvgInfoMap = dateAvgMap.get(hisPublishDate);
|
|
|
|
|
- if (Objects.nonNull(accountAvgInfoMap)) {
|
|
|
|
|
- avgInfo = accountAvgInfoMap.get(article.getItemIndex().toString());
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ AccountAvgInfo avgInfo = getAccountAvgInfo(accountAvgInfoIndexMap, article.getGhId(),
|
|
|
|
|
+ article.getUpdateTime(), article.getItemIndex());
|
|
|
String date = DateUtils.timestampToYMDStr(article.getUpdateTime(), "yyyyMMdd");
|
|
String date = DateUtils.timestampToYMDStr(article.getUpdateTime(), "yyyyMMdd");
|
|
|
NewSortStrategyExport obj = new NewSortStrategyExport();
|
|
NewSortStrategyExport obj = new NewSortStrategyExport();
|
|
|
obj.setGhId(article.getGhId());
|
|
obj.setGhId(article.getGhId());
|
|
@@ -959,22 +977,25 @@ public class DataDashboardService {
|
|
|
String type,
|
|
String type,
|
|
|
Map<String, Integer> scoreHisPublishTimeMap,
|
|
Map<String, Integer> scoreHisPublishTimeMap,
|
|
|
Map<String, Set<String>> wxsnHisDistinctSetMap,
|
|
Map<String, Set<String>> wxsnHisDistinctSetMap,
|
|
|
- List<Article> hisPublish) {
|
|
|
|
|
|
|
+ List<Article> hisPublish,
|
|
|
|
|
+ Integer poolLevel,
|
|
|
|
|
+ List<String> small,
|
|
|
|
|
+ Map<String, List<Article>> hisPublishMap) {
|
|
|
Long hisMinDate = hisPublish.stream().mapToLong(Article::getUpdateTime).min().orElse(0);
|
|
Long hisMinDate = hisPublish.stream().mapToLong(Article::getUpdateTime).min().orElse(0);
|
|
|
int scorePublishTime = scoreHisPublishTimeMap.computeIfAbsent(type, k -> 0);
|
|
int scorePublishTime = scoreHisPublishTimeMap.computeIfAbsent(type, k -> 0);
|
|
|
Set<String> wxsnHisDistinctSet = wxsnHisDistinctSetMap.computeIfAbsent(type, k -> new HashSet<>());
|
|
Set<String> wxsnHisDistinctSet = wxsnHisDistinctSetMap.computeIfAbsent(type, k -> new HashSet<>());
|
|
|
for (Article publish : hisPublish) {
|
|
for (Article publish : hisPublish) {
|
|
|
- Map<String, Map<String, AccountAvgInfo>> dateAvgMap = accountAvgInfoIndexMap.get(publish.getGhId());
|
|
|
|
|
- String hisPublishDate = DateUtils.timestampToYMDStr(publish.getUpdateTime(), "yyyy-MM-dd");
|
|
|
|
|
- AccountAvgInfo avgInfo = null;
|
|
|
|
|
- if (Objects.nonNull(dateAvgMap)) {
|
|
|
|
|
- List<String> avgMapDateList = new ArrayList<>(dateAvgMap.keySet());
|
|
|
|
|
- hisPublishDate = DateUtils.findNearestDate(avgMapDateList, hisPublishDate, "yyyy-MM-dd");
|
|
|
|
|
- Map<String, AccountAvgInfo> accountAvgInfoMap = dateAvgMap.get(hisPublishDate);
|
|
|
|
|
- if (Objects.nonNull(accountAvgInfoMap)) {
|
|
|
|
|
- avgInfo = accountAvgInfoMap.get(publish.getItemIndex().toString());
|
|
|
|
|
|
|
+ if (poolLevel == 1) {
|
|
|
|
|
+ List<Article> list = hisPublishMap.get(publish.getTitle());
|
|
|
|
|
+ list = list.stream().filter(o -> o.getUpdateTime() < (publish.getUpdateTime() - 3600 * 8))
|
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
|
+ Integer hisPublishPoolLevel = getArticlePoolLevel(publish.getGhId(), list, small);
|
|
|
|
|
+ if (hisPublishPoolLevel > poolLevel) {
|
|
|
|
|
+ continue;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ AccountAvgInfo avgInfo = getAccountAvgInfo(accountAvgInfoIndexMap, publish.getGhId(),
|
|
|
|
|
+ publish.getUpdateTime(), publish.getItemIndex());
|
|
|
if (wxsnHisDistinctSet.contains(publish.getWxSn())) {
|
|
if (wxsnHisDistinctSet.contains(publish.getWxSn())) {
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
@@ -1100,14 +1121,21 @@ public class DataDashboardService {
|
|
|
|
|
|
|
|
private void setPublishSituation(IntermediateIndicatorsExport item, String type, Map<String, List<String>> titleTypeMap,
|
|
private void setPublishSituation(IntermediateIndicatorsExport item, String type, Map<String, List<String>> titleTypeMap,
|
|
|
Map<String, Map<Integer, List<String>>> titleTypePoolMap, Integer poolLevel,
|
|
Map<String, Map<Integer, List<String>>> titleTypePoolMap, Integer poolLevel,
|
|
|
- NewSortStrategyExport data) {
|
|
|
|
|
|
|
+ Article article, Map<String, List<String>> fansAccountTypeMap,
|
|
|
|
|
+ Map<String, Map<String, Map<String, AccountAvgInfo>>> accountAvgInfoIndexMap) {
|
|
|
item.setArticleReleaseSlot(item.getArticleReleaseSlot() + 1);
|
|
item.setArticleReleaseSlot(item.getArticleReleaseSlot() + 1);
|
|
|
item.setActualArticleReleaseCount(item.getActualArticleReleaseCount() + 1);
|
|
item.setActualArticleReleaseCount(item.getActualArticleReleaseCount() + 1);
|
|
|
- if (titleTypeMap.containsKey(type) && !titleTypeMap.get(type).contains(data.getTitle())) {
|
|
|
|
|
|
|
+ if (titleTypeMap.containsKey(type) && !titleTypeMap.get(type).contains(article.getTitle())) {
|
|
|
item.setDistinctArticleReleaseCount(item.getDistinctArticleReleaseCount() + 1);
|
|
item.setDistinctArticleReleaseCount(item.getDistinctArticleReleaseCount() + 1);
|
|
|
}
|
|
}
|
|
|
item.setDistinctArticleReleaseRatio(item.getDistinctArticleReleaseCount() / (double) item.getActualArticleReleaseCount());
|
|
item.setDistinctArticleReleaseRatio(item.getDistinctArticleReleaseCount() / (double) item.getActualArticleReleaseCount());
|
|
|
-
|
|
|
|
|
|
|
+ List<String> ghIds = fansAccountTypeMap.computeIfAbsent(type, k -> new ArrayList<>());
|
|
|
|
|
+ if (!ghIds.contains(article.getGhId())) {
|
|
|
|
|
+ ghIds.add(article.getGhId());
|
|
|
|
|
+ AccountAvgInfo accountAvgInfo = getAccountAvgInfo(accountAvgInfoIndexMap, article.getGhId(),
|
|
|
|
|
+ article.getUpdateTime(), article.getItemIndex());
|
|
|
|
|
+ item.setFansCount(item.getFansCount() + accountAvgInfo.getFans());
|
|
|
|
|
+ }
|
|
|
if (4 == poolLevel) {
|
|
if (4 == poolLevel) {
|
|
|
item.setActualReleaseCountL4(item.getActualReleaseCountL4() + 1);
|
|
item.setActualReleaseCountL4(item.getActualReleaseCountL4() + 1);
|
|
|
} else if (3 == poolLevel) {
|
|
} else if (3 == poolLevel) {
|
|
@@ -1119,7 +1147,7 @@ public class DataDashboardService {
|
|
|
}
|
|
}
|
|
|
if (titleTypePoolMap.containsKey(type)
|
|
if (titleTypePoolMap.containsKey(type)
|
|
|
&& titleTypePoolMap.get(type).containsKey(poolLevel)
|
|
&& titleTypePoolMap.get(type).containsKey(poolLevel)
|
|
|
- && !titleTypePoolMap.get(type).get(poolLevel).contains(data.getTitle())) {
|
|
|
|
|
|
|
+ && !titleTypePoolMap.get(type).get(poolLevel).contains(article.getTitle())) {
|
|
|
if (4 == poolLevel) {
|
|
if (4 == poolLevel) {
|
|
|
item.setDistinctReleaseCountL4(item.getDistinctReleaseCountL4() + 1);
|
|
item.setDistinctReleaseCountL4(item.getDistinctReleaseCountL4() + 1);
|
|
|
} else if (3 == poolLevel) {
|
|
} else if (3 == poolLevel) {
|
|
@@ -1144,10 +1172,10 @@ public class DataDashboardService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private Integer getArticlePoolLevel(NewSortStrategyExport data, List<Article> list, List<String> small) {
|
|
|
|
|
|
|
+ private Integer getArticlePoolLevel(String ghId, List<Article> list, List<String> small) {
|
|
|
int minPosition = list.stream().mapToInt(Article::getItemIndex).min().orElse(8);
|
|
int minPosition = list.stream().mapToInt(Article::getItemIndex).min().orElse(8);
|
|
|
if (minPosition == 1) {
|
|
if (minPosition == 1) {
|
|
|
- if (small.contains(data.getGhId())) {
|
|
|
|
|
|
|
+ if (small.contains(ghId)) {
|
|
|
return 3;
|
|
return 3;
|
|
|
} else {
|
|
} else {
|
|
|
return 4;
|
|
return 4;
|