|
@@ -368,6 +368,9 @@ func (this *MobileResearchController) HotList() {
|
|
br.ErrMsg = "获取品种信息失败,Err:" + err.Error()
|
|
br.ErrMsg = "获取品种信息失败,Err:" + err.Error()
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ followTypeMap := services.GetCygxIndustryFllowListTypeMapByMobile(user.Mobile) // 关注的对应状态
|
|
|
|
+
|
|
listSubjcet, err := models.GetThemeHeatSubjectList(condition)
|
|
listSubjcet, err := models.GetThemeHeatSubjectList(condition)
|
|
if err != nil {
|
|
if err != nil {
|
|
br.Msg = "获取信息失败"
|
|
br.Msg = "获取信息失败"
|
|
@@ -396,6 +399,7 @@ func (this *MobileResearchController) HotList() {
|
|
if v.FllowNum > 0 {
|
|
if v.FllowNum > 0 {
|
|
list[k].IsFollow = true
|
|
list[k].IsFollow = true
|
|
}
|
|
}
|
|
|
|
+ list[k].FollowType = followTypeMap[v.IndustrialManagementId]
|
|
for _, v2 := range listSubjcet {
|
|
for _, v2 := range listSubjcet {
|
|
if v2.IndustrialManagementId == v.IndustrialManagementId {
|
|
if v2.IndustrialManagementId == v.IndustrialManagementId {
|
|
list[k].IndustrialSubjectList = append(list[k].IndustrialSubjectList, v2)
|
|
list[k].IndustrialSubjectList = append(list[k].IndustrialSubjectList, v2)
|