|
@@ -582,6 +582,7 @@ func (this *HomeController) ListHomeArtAndChart() {
|
|
|
// @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
|
|
@@ -602,6 +603,7 @@ func (this *HomeController) NewList() {
|
|
|
pageSize, _ := this.GetInt("PageSize")
|
|
|
currentIndex, _ := this.GetInt("CurrentIndex")
|
|
|
tagIds := this.GetString("TagIds")
|
|
|
+ chartPermissionId, _ := this.GetInt("ChartPermissionId")
|
|
|
|
|
|
var startSize int
|
|
|
if pageSize <= 0 {
|
|
@@ -842,6 +844,10 @@ func (this *HomeController) 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)
|
|
|
+ }
|
|
|
+
|
|
|
//conditionInit += ` AND source IN ('newchart')`
|
|
|
if user.CompanyId <= 1 || totalRai == 0 {
|
|
|
//condition += " AND source IN ('roadshow','article') "
|