ソースを参照

MOD:订单数据修改

cxyu 3 年 前
コミット
268a1885dd
1 ファイル変更2 行追加2 行削除
  1. 2 2
      handlers/OrderHandler.py

+ 2 - 2
handlers/OrderHandler.py

@@ -211,7 +211,7 @@ class OrderInfo(BaseHandler):
             op_game = ''
         else:
             op_game = ''
-            op_base = f' and if( h.start_date is not null,d.create_time >= UNIX_TIMESTAMP( h.start_date),1) '
+            op_base = f' and if( h.start_date is not null,d.create_time >= toUnixTimestamp(toDateTime(start_date)),1) '
 
             # 限制为自己游戏的1.自然流量,2.客服流量
             if agent_name and ('自然流量渠道' in agent_name or '客服渠道' in agent_name):
@@ -310,7 +310,7 @@ class OrderInfo(BaseHandler):
                         left join ( select * from GameDataSum.h_mg_role_sum {op5} ) g 
                         	on g.role_id = f.role_id and g.server_id = f.server_id 
                         	and g.app_id = a.app_id and g.mg_mem_id =a.mg_mem_id 
-                        left join (select name,pitcher 
+                        left join (select name,pitcher ,start_date
                         from CostSourceData.advertiser_vx {op1}
                                 ) h on c.wx_name = h.name
                         left join (select * from GameDataSum.h_user_sum {op12_user} ) q on a.agent_id =q.id