Просмотр исходного кода

最新消息返回权益报告标识

xyxie 1 месяц назад
Родитель
Сommit
0604a9d47b
2 измененных файлов с 5 добавлено и 3 удалено
  1. 1 1
      models/response/pc/report.go
  2. 4 2
      models/tables/rddp/report/query.go

+ 1 - 1
models/response/pc/report.go

@@ -63,6 +63,7 @@ type LatestReport struct {
 	PublishTime        time.Time `description:"发布时间" json:"publish_time"`
 	PublishTime        time.Time `description:"发布时间" json:"publish_time"`
 	Stage              int       `description:"期数" json:"stage"`
 	Stage              int       `description:"期数" json:"stage"`
 	ReportId           int
 	ReportId           int
+	RaiReportId        int
 }
 }
 
 
 func GetLatestStage(classifyNames []string) (items []*LatestReport, err error) {
 func GetLatestStage(classifyNames []string) (items []*LatestReport, err error) {
@@ -171,6 +172,5 @@ func GetRaiRecommendList(reportId, firstId, secondId, thirdId int, publishTime t
 		}
 		}
 		items = append(items, afterItems...)
 		items = append(items, afterItems...)
 	}
 	}
-
 	return
 	return
 }
 }

+ 4 - 2
models/tables/rddp/report/query.go

@@ -341,7 +341,8 @@ classify_name_second,
 title,
 title,
 content_sub,
 content_sub,
 stage,
 stage,
-publish_time 
+publish_time,
+rai_report_id
 FROM
 FROM
 	report
 	report
 WHERE
 WHERE
@@ -368,7 +369,8 @@ classify_name_second,
 title,
 title,
 content_sub,
 content_sub,
 stage,
 stage,
-publish_time 
+publish_time,
+rai_report_id
 FROM
 FROM
 	report AS r
 	report AS r
 	INNER JOIN
 	INNER JOIN