|
@@ -263,8 +263,8 @@ class OrderInfo(BaseHandler):
|
|
|
if(a.agent_id =21,'客服渠道',if(a.agent_id=0,'自然流量',c.wx_name)) as channel,
|
|
|
if(a.create_time is not null ,CONVERT(from_unixtime(a.create_time),char(20)),null) order_time,
|
|
|
if(d.create_time is not null,CONVERT(from_unixtime(d.create_time),char(20)),null) user_create_time,
|
|
|
- d.id as user_id,e.name as game ,a.amount ,a.real_amount ,g.server_name ,
|
|
|
- CONVERT (g.role_name USING utf8) as role_name,a.payway ,a.status status ,a.mg_mem_id
|
|
|
+ d.id as mem_id,e.name as game ,a.amount ,a.real_amount ,g.server_name ,
|
|
|
+ CONVERT (g.role_name USING utf8) as role_name,a.payway ,a.status status ,a.mg_mem_id as user_id
|
|
|
from db_mp.h_pay a
|
|
|
left join
|
|
|
(select b.agent_id as agent_id,b.advertiser_conf_id from
|