|
@@ -284,7 +284,9 @@ func (this *MobileHomeController) NewList() {
|
|
|
pars = append(pars, time.Now().AddDate(0, 0, 30))
|
|
|
|
|
|
if user.CompanyId <= 1 {
|
|
|
-
|
|
|
+ condition += " AND source IN ('roadshow','article','newchart') "
|
|
|
+ startSize = 0
|
|
|
+ pageSize = utils.PageSize5
|
|
|
}
|
|
|
total, err := models.GetResourceDataCount(condition, pars)
|
|
|
if err != nil {
|
|
@@ -293,6 +295,10 @@ func (this *MobileHomeController) NewList() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ if user.CompanyId <= 1 {
|
|
|
+ total = utils.PageSize5
|
|
|
+ }
|
|
|
+
|
|
|
page := paging.GetPaging(currentIndex, pageSize, total)
|
|
|
//Source string `description:"资源类型 报告 :article 、图表 :newchart、微路演 :roadshow、活动 :activity、活动视频:activityvideo、活动音频:activityvoice、专项调研活动:activityspecial"`
|
|
|
list, err := services.GetResourceDataList(condition, pars, startSize, pageSize, user)
|