Explorar el Código

fix:研报推送列表

zqbao hace 7 meses
padre
commit
56a5479727
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 	}