|
@@ -12,7 +12,7 @@ ck = CkUtils()
|
|
|
|
|
|
def book_trend():
|
|
|
sql="""insert into book_trend
|
|
|
- select dt,book,platform,type,
|
|
|
+ select dt,book,type,
|
|
|
sum(cost) cost,
|
|
|
sum(order_count),
|
|
|
sum(order_user),
|
|
@@ -33,7 +33,7 @@ sum(da1),sum(da2),sum(da3),sum(da4),sum(da5),sum(da6),sum(da7),sum(da8),sum(da9)
|
|
|
from dw_channel a
|
|
|
left join dw_channel_amount_daily b using(dt,channel)
|
|
|
where a.book!=''
|
|
|
-GROUP BY dt,book,type,platform"""
|
|
|
+GROUP BY dt,book,type"""
|
|
|
db.dm.execute('truncate table book_trend')
|
|
|
db.dm.execute(sql)
|
|
|
|