Commit 8d7d167c authored by xianyang's avatar xianyang

增加数据字段

parent 086e7495
......@@ -535,7 +535,7 @@ class AccountStatistics(object):
guild_cond_list.append(f" create_time >={start_time} and create_time<= {end_time}")
if self.user_id:
guild_cond_list.append(f" guild_id={self.user_id}")
sql = f"select guild_id,initial_money,income,outcome,create_time from v3_guild_account_detail_copy where {' and '.join(guild_cond_list)} order by create_time DESC"
sql = f"select guild_id,initial_money,income,outcome,amount_type,create_time from v3_guild_account_detail_copy where {' and '.join(guild_cond_list)} order by create_time DESC"
mysql_data = LinkMysql(env.DB_3YV2).query_mysql(sql)
for info in mysql_data:
info['guild_name'] = self.guild_dict.get(info['guild_id'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment