From 8a83ac695e99cd641fe4fa3ed8f8f45bdc7e36da Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Mon, 11 Nov 2024 22:02:15 +0800 Subject: [PATCH] g --- vas/check_refund.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/vas/check_refund.py b/vas/check_refund.py index 76209d0..ae3008d 100644 --- a/vas/check_refund.py +++ b/vas/check_refund.py @@ -589,11 +589,16 @@ class S: print(len(order_ids)) print(len(order_id_map)) - sql = "select * from vas_order where id in (%s) and order_status=1" % get_list_str_str(order_ids) - # print(sql) + sql = "select * from vas_order where id in (%s)" % get_list_str_str(order_ids) + status_cnt_map = dict() docs = self.mysql_db_vas.query(sql) print(len(docs)) - + for d in docs: + status = safe_get_int(d, "order_status") + if status not in status_cnt_map.keys(): + status_cnt_map[status] = 0 + status_cnt_map[status] += 1 + print(status_cnt_map) s = S() s.find_order_ids()