|
@@ -787,7 +787,7 @@ func (this *ResearchController) ArticleNewList() {
|
|
|
articleCollectNumMap, _ := services.GetCygxArticleCollectNumMapByArtcileIds(articleIds) //文章收藏的数量
|
|
|
articleCollectYanxuanSpecialMap, _ := services.GetYanxuanSpecialCollectMap(user.UserId) //用户收藏的研选专栏
|
|
|
|
|
|
- pvMap := services.GetYanxuanSpecialRecordByYanxuanSpecialId(articleIdsSpecialArr)
|
|
|
+ yanxuanSpecialPv := services.GetYanxuanSpecialRecordByYanxuanSpecialId(articleIdsSpecialArr)
|
|
|
|
|
|
//处理关联的产业
|
|
|
industrialMap, err := services.GetArticleIndustrialByArticleId(articleIds)
|
|
@@ -799,7 +799,7 @@ func (this *ResearchController) ArticleNewList() {
|
|
|
for k, v := range list {
|
|
|
if v.IsSpecial == 1 {
|
|
|
v.IsCollect = articleCollectYanxuanSpecialMap[v.ArticleId]
|
|
|
- v.Pv = pvMap[v.ArticleId]
|
|
|
+ v.Pv = yanxuanSpecialPv[v.ArticleId]
|
|
|
} else {
|
|
|
v.Pv = articleMapPv[v.ArticleId]
|
|
|
v.CollectNum = articleCollectNumMap[v.ArticleId]
|