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
 	}