This commit is contained in:
lwl0608 2024-02-05 01:07:42 +08:00
parent ec0945008b
commit 0543c04ce1
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ mysql_db_vas = Mysql(
mid_charge_map = dict()
mid_charge_list = mysql_db_vas.query('''
select mid, sum(coins) total_coins from vas_order
where order_status>0 and product_id in ('h5_custom_coin', 'h5_coin_500', 'h5_coin_1000', 'h5_coin_3000', 'h5_coin_5000', 'h5_coin_8000', 'h5_coin_10000', 'h5_coin_15000', 'h5_coin_18000', 'h5_coin_20000')
where order_status>0 and product_id in ('h5_custom_coin', 'h5_coin_500', 'h5_coin_1000', 'h5_coin_3000', 'h5_coin_5000', 'h5_coin_8000', 'h5_coin_10000', 'h5_coin_15000', 'h5_coin_18000', 'h5_coin_20000', 'h5_contact_wechat')
group by mid
''')
for item in mid_charge_list: