Răsfoiți Sursa

banner新增字段

ziwen 2 ani în urmă
părinte
comite
9dbf7e2b1f
2 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 1 0
      controller/pc/pc.go
  2. 1 0
      models/tables/rddp/report_chapter/query.go

+ 1 - 0
controller/pc/pc.go

@@ -168,6 +168,7 @@ func ClassifyDetailBanner(c *gin.Context) {
 		resp := &pcModels.DetailBannerResp{
 			ReportId:          chapterItem.ReportId,
 			ClassifyNameFirst: chapterItem.ClassifyNameFirst,
+			ClassifyIdFirst:    chapterItem.ClassifyIdFirst,
 			Stage:             chapterItem.Stage,
 			ImgUrl:            "",
 			Type:              "报告合集",

+ 1 - 0
models/tables/rddp/report_chapter/query.go

@@ -143,6 +143,7 @@ func GetLatestChapterByClassifyName(firstName string) (items *ReportChapter, err
 	sql := `SELECT
 	report_id,
 	classify_name_first,
+	classify_id_first,
 	stage 
 FROM
 	report_chapter