|
@@ -165,7 +165,7 @@ def ods_order(dt):
|
|
|
case when platform='掌中云' then DATE_FORMAT(STR_TO_DATE(reg_time,'%Y-%m-%dT%H:%i:%s'),'%Y-%m-%d %H:%i:%s')
|
|
|
when platform='掌读' then from_unixtime(reg_time, '%Y-%m-%d %H:%i:%s')
|
|
|
ELSE reg_time end reg_time,
|
|
|
- amount,from_novel,order_id from `order` where date=UNIX_TIMESTAMP('{}')
|
|
|
+ amount,from_novel,order_id,2 from `order` where date=UNIX_TIMESTAMP('{}')
|
|
|
""".format(dt)
|
|
|
db.quchen_text.execute(sql)
|
|
|
|
|
@@ -178,10 +178,10 @@ def order_account_text():
|
|
|
db.quchen_text.execute("insert into order_account_text(platform,text) values ('文鼎','{}')".format(i))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
- channel_info_daily('2021-02-06')
|
|
|
+ # channel_info_daily('2021-02-06')
|
|
|
|
|
|
- channel_by_account_daily('2021-02-05')
|
|
|
+ # channel_by_account_daily('2021-02-05')
|
|
|
# for i in dt.getDateLists('2020-04-23','2021-02-05'):
|
|
|
# print(i)
|
|
|
# dw_daily_channel_cost(i)
|
|
|
-
|
|
|
+ ods_order('2021-05-06')
|