Browse Source

报告搜索新增返回期数

xiexiaoyuan 2 years ago
parent
commit
c4085979be
2 changed files with 2 additions and 0 deletions
  1. 1 0
      controller/english_report/english_report.go
  2. 1 0
      models/english_report/report.go

+ 1 - 0
controller/english_report/english_report.go

@@ -244,6 +244,7 @@ func (er *EnglishReportController) FilterByEs(c *gin.Context) {
 				temp.ClassifyNameFirst = reportItem.ClassifyNameFirst
 				temp.ClassifyNameFirst = reportItem.ClassifyNameFirst
 				temp.ClassifyIdSecond = reportItem.ClassifyIdSecond
 				temp.ClassifyIdSecond = reportItem.ClassifyIdSecond
 				temp.ClassifyNameSecond = reportItem.ClassifyNameSecond
 				temp.ClassifyNameSecond = reportItem.ClassifyNameSecond
+				temp.Stage, _ = strconv.Atoi(reportItem.StageStr)
 			}else if reportItem.VideoId > 0 {
 			}else if reportItem.VideoId > 0 {
 				if videoTemp, ok := videoMap[reportItem.VideoId]; ok {
 				if videoTemp, ok := videoMap[reportItem.VideoId]; ok {
 					temp.ReportType = 1
 					temp.ReportType = 1

+ 1 - 0
models/english_report/report.go

@@ -126,6 +126,7 @@ type SearchEnglishReportItem struct {
 	VideoCoverUrl      string `json:"video_cover_url"`      //视频文件封面地址
 	VideoCoverUrl      string `json:"video_cover_url"`      //视频文件封面地址
 	VideoSeconds       string `json:"video_seconds"`        //视频时长
 	VideoSeconds       string `json:"video_seconds"`        //视频时长
 	ReportType         int    `json:"report_type"`          //类型:0英文研报,1英文线上路演
 	ReportType         int    `json:"report_type"`          //类型:0英文研报,1英文线上路演
+	Stage              int    `json:"stage"`                //期数
 }
 }
 
 
 type ElasticEnglishReportDetail struct {
 type ElasticEnglishReportDetail struct {