浏览代码

fix:研报推送列表

zqbao 7 月之前
父节点
当前提交
56a5479727
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/report_push_status.go

+ 1 - 1
models/report_push_status.go

@@ -112,7 +112,7 @@ func GetReportCountByCondition(condition string, pars []interface{}) (count int,
 	sql := `SELECT COUNT(*) AS count
 		FROM test_v2_hongze_rddp.report AS a
 		LEFT JOIN report_push_status AS b ON a.id=b.report_id	
-		WHERE 1=1 `
+		WHERE 1=1 AND (a.state=2 OR a.state=6) `
 	if condition != "" {
 		sql += condition
 	}