|
@@ -118,6 +118,10 @@ func (this *MobileReportController) TradeList() {
|
|
|
}
|
|
|
}
|
|
|
resp := new(models.TradeReportMappingResp)
|
|
|
+
|
|
|
+ if len(list) == 0 {
|
|
|
+ list = make([]*models.TradeReportMapping, 0)
|
|
|
+ }
|
|
|
resp.List = list
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
@@ -130,7 +134,7 @@ func (this *MobileReportController) TradeList() {
|
|
|
// @Param ChartPermissionId query int true "分类ID"
|
|
|
// @Param IsNewLabel query string false "是否属于新标签,1是,0否"
|
|
|
// @Param IsDeepLabel query string false "是否属于深标签,1是,0否"
|
|
|
-// @Param OrderColumn query int false "排序字段 ,NewTime 最近更新 ,Recommend弘则推荐"
|
|
|
+// @Param OrderColumn query string false "排序字段 ,NewTime 最近更新 ,Recommend弘则推荐"
|
|
|
// @Param PageSize query int true "每页数据条数"
|
|
|
// @Param CurrentIndex query int true "当前页页码,从1开始"
|
|
|
// @Success 200 {object} models.IndustrialManagementList
|
|
@@ -285,6 +289,9 @@ func (this *MobileReportController) IndustryList() {
|
|
|
//}
|
|
|
//go models.AddCygxReportIndustrialSeaarchHistory(item)
|
|
|
}
|
|
|
+ if len(list) == 0 {
|
|
|
+ list = make([]*models.IndustrialManagement, 0)
|
|
|
+ }
|
|
|
resp.List = list
|
|
|
resp.Paging = page
|
|
|
br.Ret = 200
|
|
@@ -415,6 +422,10 @@ func (this *MobileReportController) List() {
|
|
|
}
|
|
|
}
|
|
|
resp.CategoryImgUrlPc = mapChartPermission[detail.ChartPermissionName]
|
|
|
+
|
|
|
+ if len(list) == 0 {
|
|
|
+ list = make([]*models.HomeArticle, 0)
|
|
|
+ }
|
|
|
resp.List = list
|
|
|
resp.Paging = page
|
|
|
br.Ret = 200
|