|
@@ -295,6 +295,7 @@ func (this *MobileHomeController) NewList() {
|
|
|
var pars []interface{}
|
|
|
var yanxuanActivityIds []int
|
|
|
var yanxuanArticleIds []int
|
|
|
+ var conditionresp string
|
|
|
//var yanxuanspecialIds []int
|
|
|
|
|
|
if hashtagKeyword != "" {
|
|
@@ -314,12 +315,13 @@ func (this *MobileHomeController) NewList() {
|
|
|
yanxuanActivityIds = services.GetYanxuanActivityIds(user, "1,2") // 获取所有的研选活动ID
|
|
|
yanxuanArticleIds = services.GetYanxuanArticleIds() //获取所有研选文章ID
|
|
|
} else {
|
|
|
- yanxuanActivityIds, yanxuanArticleIds, err = services.GetConditionInitByTagIds(user, labelKeyword)
|
|
|
+ yanxuanActivityIds, yanxuanArticleIds, conditionresp, err = services.GetConditionInitByTagIds(user, labelKeyword)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取失败"
|
|
|
br.ErrMsg = "获取活动权限数据失败,GetConditionInitByTagIds Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+ condition += conditionresp
|
|
|
//如果不是 "全部报告" 、 "专栏" 的关键词查询,就不做研选专栏的查询
|
|
|
if labelKeyword != utils.LABEL_L2_1 && labelKeyword != utils.LABEL_L2_2 {
|
|
|
condition += ` AND IF ( source = 'yanxuanspecial' , source_id IN (0) ,1=1 ) `
|
|
@@ -341,6 +343,7 @@ func (this *MobileHomeController) NewList() {
|
|
|
br.ErrMsg = "获取数据失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
list, err = services.GetResourceDataList(condition, pars, startSize, pageSize, user)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取失败"
|