|
@@ -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 {
|