|
@@ -203,6 +203,7 @@ func GetQuestionDetail(questionId int, userInfo user.UserInfo) (item *response.C
|
|
|
ReplierRealName: detail.ReplierRealName,
|
|
|
ReplierRank: replierRank,
|
|
|
ReplierAvatar: detail.ReplierAvatar,
|
|
|
+ ReplierUserID: detail.ReplierUserID,
|
|
|
VarietyTagId: detail.VarietyTagID,
|
|
|
VarietyTagName: detail.VarietyTagName,
|
|
|
ResearchGroupSecondId: detail.ResearchGroupSecondID,
|
|
@@ -409,7 +410,7 @@ func GetQuestionListTotal(userInfo user.UserInfo) (resp *response.CommunityQuest
|
|
|
return
|
|
|
}
|
|
|
resp = new(response.CommunityQuestionListTotal)
|
|
|
- var distribute, wait, replied, total int
|
|
|
+ var distribute, wait, replied, stop, total int
|
|
|
for _, v := range countList {
|
|
|
total += v.Total
|
|
|
if isResearcher {
|
|
@@ -424,6 +425,9 @@ func GetQuestionListTotal(userInfo user.UserInfo) (resp *response.CommunityQuest
|
|
|
if v.ReplyStatus == 3 {
|
|
|
replied += v.Total
|
|
|
}
|
|
|
+ if v.ReplyStatus == yb_community_question.ReplyStatusStop {
|
|
|
+ stop += v.Total
|
|
|
+ }
|
|
|
} else {
|
|
|
if v.ReplyStatus == 1 || v.ReplyStatus == 2 { //未分配和未回答的数量
|
|
|
wait += v.Total
|
|
@@ -439,6 +443,7 @@ func GetQuestionListTotal(userInfo user.UserInfo) (resp *response.CommunityQuest
|
|
|
resp.Wait = wait
|
|
|
resp.Replied = replied
|
|
|
resp.Total = total
|
|
|
+ resp.Stop = stop
|
|
|
|
|
|
return
|
|
|
}
|