|
@@ -49,6 +49,7 @@ func (this *ReportController) Detail() {
|
|
|
// @Description 研报列表
|
|
|
// @Param ReportId query int true "报告id"
|
|
|
// @Param chartPermissionId query int true "品种ID"
|
|
|
+// @Param Level query int true "品种层级"
|
|
|
// @Param PageSize query int true "每页数据条数"
|
|
|
// @Param CurrentIndex query int true "当前页页码,从1开始"
|
|
|
// @Success 200 {object} models.ReportDetailResp
|
|
@@ -63,12 +64,18 @@ func (this *ReportController) List() {
|
|
|
pageSize, _ := this.GetInt("PageSize")
|
|
|
currentIndex, _ := this.GetInt("CurrentIndex")
|
|
|
chartPermissionId, _ := this.GetInt("ChartPermissionId")
|
|
|
- reports, err := services.GetReportList(chartPermissionId, currentIndex, pageSize)
|
|
|
+ level, _ := this.GetInt("Level")
|
|
|
+ reports, err := services.GetReportList(chartPermissionId, level, currentIndex, pageSize)
|
|
|
if err != nil {
|
|
|
br.Msg = "研报列表查询失败"
|
|
|
br.ErrMsg = "研报列表查询失败,系统异常,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+ if reports.Ret != 200 {
|
|
|
+ br.Msg = "研报列表查询失败"
|
|
|
+ br.ErrMsg = reports.ErrMsg
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
br.Data = reports.Data
|
|
|
br.Msg = "查询成功"
|