Commit db9598e3 authored by xianyang's avatar xianyang

用户充值报表增加字段

parent 3efe724e
...@@ -124,6 +124,7 @@ class RechargeStatement(object): ...@@ -124,6 +124,7 @@ class RechargeStatement(object):
if not self.order_id: if not self.order_id:
for ni in query_data: for ni in query_data:
ni['nick_name'] = nick_dict[ni['uuid']] ni['nick_name'] = nick_dict[ni['uuid']]
ni['income_money'] = ni['amount']
ni['status'] = 1 ni['status'] = 1
return query_data return query_data
if len(self.order_id) == 1: if len(self.order_id) == 1:
...@@ -144,6 +145,7 @@ class RechargeStatement(object): ...@@ -144,6 +145,7 @@ class RechargeStatement(object):
o_id = '1' o_id = '1'
for y in order_data: for y in order_data:
if o_id == str(y['id']): if o_id == str(y['id']):
x['income_money'] = x['amount']
x['user_id'] = y['userid'] x['user_id'] = y['userid']
x['nick_name'] = y['nick_name'] x['nick_name'] = y['nick_name']
x['amount'] = y['money'] x['amount'] = y['money']
...@@ -151,6 +153,7 @@ class RechargeStatement(object): ...@@ -151,6 +153,7 @@ class RechargeStatement(object):
x['paychannel'] = pay_dict.get(y['paychannel'], y['paychannel']) x['paychannel'] = pay_dict.get(y['paychannel'], y['paychannel'])
x['sid'] = y['sid'] x['sid'] = y['sid']
else: else:
x['income_money'] = x['amount']
x['nick_name'] = nick_dict[x['uuid']] x['nick_name'] = nick_dict[x['uuid']]
x['status'] = 1 x['status'] = 1
Logger().logger.info(f"拼接的数据:{query_data[0]}") Logger().logger.info(f"拼接的数据:{query_data[0]}")
......
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