|
@@ -541,52 +541,6 @@ func (this *MobileReportController) List() {
|
|
|
imgUrlChart = vslice[len(vslice)-1]
|
|
|
mapCategoryUrl[categoryIdStr] = imgUrlChart
|
|
|
}
|
|
|
- //if detail.CeLueFieldId != "" {
|
|
|
- // condition = ` AND ce_lue_field_id IN(` + detail.CeLueFieldId + `)`
|
|
|
- //} else if detail.PolymerizationId != "" {
|
|
|
- // condition = ` AND category_id IN(` + detail.PolymerizationId + `)`
|
|
|
- //} else {
|
|
|
- // categoryIdSet, errCategory := models.GetdetailByCategoryIdSet(categoryId)
|
|
|
- // if errCategory != nil {
|
|
|
- // br.Msg = "获取信息失败"
|
|
|
- // br.ErrMsg = "获取信息失败,Err:" + errCategory.Error() + "categoryID 不存在:" + strconv.Itoa(categoryId)
|
|
|
- // return
|
|
|
- // }
|
|
|
- // if categoryIdSet != "" {
|
|
|
- // condition = ` AND category_id IN(` + categoryIdSet + `)`
|
|
|
- // } else {
|
|
|
- // condition = ` AND category_id IN(` + strconv.Itoa(categoryId) + `)`
|
|
|
- // }
|
|
|
- //}
|
|
|
- //
|
|
|
- //if industrialManagementId > 0 {
|
|
|
- // industrialManageentList, err := models.GetIndustrialArticleGroupManagementByIndustrialManagementId(industrialManagementId)
|
|
|
- // if err != nil {
|
|
|
- // br.Msg = "获取信息失败"
|
|
|
- // br.Msg = "获取产业关联的文章ID失败,GetIndustrialArticleGroupManagementByIndustrialManagementIdErr:" + err.Error()
|
|
|
- // return
|
|
|
- // }
|
|
|
- // articleIdList := make([]string, 0)
|
|
|
- // for _, v := range industrialManageentList {
|
|
|
- // articleIdList = append(articleIdList, strconv.Itoa(v.ArticleId))
|
|
|
- // }
|
|
|
- // condition += ` AND a.article_id IN ( ` + utils.GetOrmInReplace(len(articleIdList)) + ` ) `
|
|
|
- // pars = append(pars, articleIdList)
|
|
|
- //}
|
|
|
-
|
|
|
- //total, err = models.GetHomeCount(condition, pars)
|
|
|
- //if err != nil {
|
|
|
- // br.Msg = "获取信息失败"
|
|
|
- // br.Msg = "获取帖子总数失败,Err:" + err.Error()
|
|
|
- // return
|
|
|
- //}
|
|
|
- //
|
|
|
- //list, err = models.GetHomeListNew(condition, pars, startSize, pageSize)
|
|
|
- //if err != nil {
|
|
|
- // br.Msg = "获取信息失败"
|
|
|
- // br.Msg = "获取帖子数据失败,Err:" + err.Error()
|
|
|
- // return
|
|
|
- //}
|
|
|
|
|
|
list, total, err = models.GetReportAndproductInteriorIndustrialList(pars, categoryId, industrialManagementId, uid, startSize, pageSize)
|
|
|
if err != nil {
|
|
@@ -607,16 +561,6 @@ func (this *MobileReportController) List() {
|
|
|
list[k].IsRed = true
|
|
|
}
|
|
|
}
|
|
|
- //if categoryId > 0 {
|
|
|
- // detail, errCategory := models.GetdetailByCategoryId(categoryId)
|
|
|
- // if errCategory != nil {
|
|
|
- // br.Msg = "获取信息失败"
|
|
|
- // br.ErrMsg = "获取信息失败,Err:" + errCategory.Error() + "categoryID 不存在:" + strconv.Itoa(categoryId)
|
|
|
- // return
|
|
|
- // }
|
|
|
- // resp.MatchTypeName = detail.MatchTypeName
|
|
|
- //}
|
|
|
- //resp.CategoryImgUrlPc = mapChartPermission[detail.ChartPermissionName]
|
|
|
}
|
|
|
|
|
|
listPublic, err := services.HandleArticleCategoryImg(list, user)
|