|
@@ -53,7 +53,7 @@ class OrderInfoAgent(BaseHandler):
|
|
|
group by d.user_nicename
|
|
|
'''
|
|
|
data = db.quchen_text.getData_json(sql)
|
|
|
- data.insert(0, {'id': -1, 'agent_name': '自然渠道'})
|
|
|
+ data.insert(0, {'id': -1, 'agent_name': '自然流量渠道'})
|
|
|
data.insert(0, {'id': -2, 'agent_name': '客服渠道'})
|
|
|
self.write_json(data=data)
|
|
|
|
|
@@ -130,7 +130,13 @@ class OrderInfo(BaseHandler):
|
|
|
else:
|
|
|
op10 = ''
|
|
|
op11 = f" and e.name='{game}'" if game else ''
|
|
|
- op12 = f" and q.user_nicename='{agent_name}'" if agent_name else ''
|
|
|
+ print(agent_name)
|
|
|
+ if agent_name == '自然流量渠道':
|
|
|
+ op12 = f" and a.agent_id=0 "
|
|
|
+ elif agent_name == '客服渠道':
|
|
|
+ op12 = f" and a.agent_id=12 "
|
|
|
+ else:
|
|
|
+ op12 = f" and q.user_nicename='{agent_name}'" if agent_name else ''
|
|
|
|
|
|
# 选项:order_date:订单时间,user_date:用户时间,amount:金额,game:游戏名字,payway:支付方式,agent_name:渠道
|
|
|
if order_by == 'agent_name':
|