|
@@ -401,26 +401,9 @@ func (this *MobileReportController) ArticleCategoryList() {
|
|
|
}
|
|
|
categoryMap[v.CategoryId] = v.CategoryId
|
|
|
list = append(list, v)
|
|
|
- //recordCount, err := models.IndustrialUserRecordArticleCount(uid, industrialManagementId, v.CategoryId)
|
|
|
- //if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
- // br.Msg = "获取信息失败"
|
|
|
- // br.ErrMsg = "判断是否已申请过试用失败,Err:" + err.Error()
|
|
|
- // return
|
|
|
- //}
|
|
|
- //Newdetail, err := models.GetNewIndustrialUserRecordArticle(industrialManagementId, v.CategoryId)
|
|
|
- //if err != nil {
|
|
|
- // br.Msg = "获取信息失败"
|
|
|
- // br.ErrMsg = "获取信息失败,Err:" + err.Error()
|
|
|
- // return
|
|
|
- //}
|
|
|
- //if Newdetail != nil {
|
|
|
- // if recordCount == 0 && user.CreatedTime.Before(utils.StrTimeToTime(Newdetail.PublishDate)) && utils.StrTimeToTime(utils.OnlineTime).Before(utils.StrTimeToTime(Newdetail.PublishDate)) {
|
|
|
- // list[k].IsRed = true
|
|
|
- // }
|
|
|
- //}
|
|
|
}
|
|
|
//标的列表
|
|
|
- industrialSubjectList, err := models.GetIndustrialSubjectAll(industrialManagementId)
|
|
|
+ industrialSubjectList, err := models.GetIndustrialArticleGroupSubjectListByHz(industrialManagementId)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取信息失败"
|
|
|
br.ErrMsg = "获取品种信息失败,Err:" + err.Error()
|