|
@@ -108,7 +108,7 @@ def ods_order(dt):
|
|
|
select
|
|
|
case platform when '掌中云' then DATE_FORMAT(STR_TO_DATE(order_time,'%Y-%m-%dT%H:%i:%s'),'%Y-%m-%d')
|
|
|
when '掌读' then from_unixtime(order_time, '%Y-%m-%d')
|
|
|
- ELSE left(order_time,10) end date,
|
|
|
+ ELSE order_time end date,
|
|
|
stage,platform,channel,channel_id,user_id,
|
|
|
case when platform='掌中云' then DATE_FORMAT(STR_TO_DATE(order_time,'%Y-%m-%dT%H:%i:%s'),'%Y-%m-%d %H:%i:%s')
|
|
|
when platform='掌读' then from_unixtime(order_time, '%Y-%m-%d %H:%i:%s')
|
|
@@ -160,8 +160,8 @@ def dw_daily_channel_plus():
|
|
|
if __name__ == '__main__':
|
|
|
# channel_by_account_daily('2020-12-17')
|
|
|
|
|
|
- # ods_order('2019-03-18')
|
|
|
- dw_daily_channel_plus()
|
|
|
+ ods_order('2020-12-20')
|
|
|
+ # dw_daily_channel_plus()
|
|
|
exit()
|
|
|
|
|
|
# for i in dt.getDateLists('2019-03-18','2020-12-17'):
|