|
@@ -112,7 +112,7 @@ func GetReportCountByCondition(condition string, pars []interface{}) (count int,
|
|
sql := `SELECT COUNT(*) AS count
|
|
sql := `SELECT COUNT(*) AS count
|
|
FROM test_v2_hongze_rddp.report AS a
|
|
FROM test_v2_hongze_rddp.report AS a
|
|
LEFT JOIN report_push_status AS b ON a.id=b.report_id
|
|
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 != "" {
|
|
if condition != "" {
|
|
sql += condition
|
|
sql += condition
|
|
}
|
|
}
|