From abadc72fe23680060af7159652d3f9145517db51 Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Thu, 1 Aug 2024 21:02:13 +0800 Subject: [PATCH] fix --- bi/vas_day_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bi/vas_day_flow.py b/bi/vas_day_flow.py index a53bd18..23578c6 100644 --- a/bi/vas_day_flow.py +++ b/bi/vas_day_flow.py @@ -28,7 +28,7 @@ class S: if len(rows) > 0: flow = safe_get_int(rows[0], "flow") - sql_except = '''select sum(pay_amount) flow from vas_order where ct>={} and ct<{} and order_status in (1,2) product_id in ('outer_raven');'''.format(st, et) + sql_except = '''select sum(pay_amount) flow from vas_order where ct>={} and ct<{} and order_status in (1,2) and product_id in ('outer_raven');'''.format(st, et) rows_except = self.mysql_db_vas.query(sql_except) flow_except = 0 if len(rows_except) > 0: