|
@@ -164,7 +164,11 @@ public class RecallService implements ApplicationContextAware {
|
|
|
ContentHisPublishArticle article = new ContentHisPublishArticle();
|
|
|
BeanUtils.copyProperties(hisArticle, article);
|
|
|
AvgReadDTO dto = jsonObject.getObject(hisArticle.getGhId() + "_" + hisArticle.getItemIndex(), AvgReadDTO.class);
|
|
|
- Integer avgViewCount = dto == null ? 0 : (int) dto.getReadAvg();
|
|
|
+ int avgViewCount = 0;
|
|
|
+ if (Objects.nonNull(dto)) {
|
|
|
+ article.setInnerAccount(true);
|
|
|
+ avgViewCount = (int) dto.getReadAvg();
|
|
|
+ }
|
|
|
article.setAvgViewCount(avgViewCount);
|
|
|
if (Objects.nonNull(article.getAvgViewCount()) && article.getAvgViewCount() > 0) {
|
|
|
article.setViewCountRate((article.getShowViewCount() * 1.0) / article.getAvgViewCount());
|