This commit is contained in:
lwl0608 2024-02-05 01:04:35 +08:00
parent 7e9d552bc5
commit dae3c22d83
1 changed files with 3 additions and 3 deletions

View File

@ -32,12 +32,12 @@ for item in mid_consume_list:
# mid消费
mid_wallet_map = dict()
mid_wallet_list = mysql_db_vas.query('''
select mid, sum(coins) total_coins from vas_wallet
select id, sum(coins) total_coins from vas_wallet
where coins>0
group by mid
group by id
''')
for item in mid_wallet_list:
mid = safe_get_int(item, "mid")
mid = safe_get_int(item, "id")
total_coins = safe_get_int(item, "total_coins")
mid_wallet_map[mid] = total_coins