|
@@ -336,13 +336,14 @@ func HandleCommentByCommunityQuestionItemList(userId uint64, questionList []*res
|
|
|
userIds = append(userIds, v.UserID)
|
|
|
}
|
|
|
|
|
|
+ //需要查询的我的问答的评论
|
|
|
myIdArr := make([]uint32, 0)
|
|
|
for id := range idMap {
|
|
|
myIdArr = append(myIdArr, id)
|
|
|
}
|
|
|
|
|
|
//获取我的评论数据
|
|
|
- myList, err := yb_community_question_comment.GetLastMyListByCommunityQuestionIds(userId, idArr)
|
|
|
+ myList, err := yb_community_question_comment.GetLastMyListByCommunityQuestionIds(userId, myIdArr)
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|
|
@@ -352,7 +353,7 @@ func HandleCommentByCommunityQuestionItemList(userId uint64, questionList []*res
|
|
|
|
|
|
// 获取留言汇总数
|
|
|
numCommentMap := make(map[uint32]int)
|
|
|
- numCommentList, err := yb_community_question_comment.GetNumCommentByCommunityQuestionIds(idArr)
|
|
|
+ numCommentList, err := yb_community_question_comment.GetNumCommentByCommunityQuestionIds(idArr, userId)
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|