rdluck 4 years ago
parent
commit
03e6b7a27f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/report.go

+ 1 - 1
models/report.go

@@ -188,7 +188,7 @@ type RecommendReport struct {
 func GetRecommendList(reportId, reportType int) (items []*RecommendReport, err error) {
 	o := orm.NewOrm()
 	o.Using("rddp")
-	sql := `SELECT * FROM report WHERE id<>? `
+	sql := `SELECT * FROM report WHERE state=2 AND id<>? `
 	if reportType == 1 {
 		sql += ` AND classify_name_first='权益研报' `
 	} else {