|
@@ -256,6 +256,7 @@ func (this *MobileHomeController) List() {
|
|
|
// @Title 首页列表接口
|
|
|
// @Description 首页列表接口
|
|
|
// @Param TagIds query string true "标签选择"
|
|
|
+// @Param ChartPermissionId query int false "行业id"
|
|
|
// @Param PageSize query int true "每页数据条数"
|
|
|
// @Param CurrentIndex query int true "当前页页码,从1开始"
|
|
|
// @Success 200 {object} models.HomeArtAndChartListResp
|
|
@@ -277,7 +278,7 @@ func (this *MobileHomeController) NewList() {
|
|
|
pageSize, _ := this.GetInt("PageSize")
|
|
|
currentIndex, _ := this.GetInt("CurrentIndex")
|
|
|
tagIds := this.GetString("TagIds")
|
|
|
-
|
|
|
+ chartPermissionId, _ := this.GetInt("ChartPermissionId")
|
|
|
var startSize int
|
|
|
if pageSize <= 0 {
|
|
|
pageSize = utils.PageSize20
|
|
@@ -509,6 +510,9 @@ func (this *MobileHomeController) NewList() {
|
|
|
//查询近一个月的数据
|
|
|
conditionInit = " AND publish_date > '" + time.Now().AddDate(0, 0, -30).Format(utils.FormatDateTime) + "'"
|
|
|
}
|
|
|
+ if chartPermissionId > 0 {
|
|
|
+ conditionInit = " AND chart_permission_id = " + strconv.Itoa(chartPermissionId)
|
|
|
+ }
|
|
|
//return
|
|
|
//conditionInit += ` AND source IN ('newchart')`
|
|
|
if user.CompanyId <= 1 {
|