|
@@ -413,13 +413,10 @@ def image_rank(start, end, type,book, page, page_size, order_by, order):
|
|
|
|
|
|
|
|
|
"""广告排行榜"""
|
|
|
-def advertisement_rank(start,end,channel,pitcher,stage,type,page,page_size,order,order_by,book):
|
|
|
+def advertisement_rank(start,end,type,page,page_size,order,order_by,book):
|
|
|
|
|
|
op2=f" and dt>='{start}' " if start else ''
|
|
|
op3=f" and dt<='{end}' " if end else ''
|
|
|
- op4=f" and channel='{channel}' " if channel else ''
|
|
|
- op5=f" and pitcher='{pitcher}' " if pitcher else ''
|
|
|
- op6=f" and stage='{stage}'" if stage else ''
|
|
|
op8=f" and type='{type}'" if type else ''
|
|
|
op9=f" order by {order_by} {order}" if order_by and order else ''
|
|
|
op10=f" and book='{book}'" if book else ''
|
|
@@ -444,7 +441,7 @@ def advertisement_rank(start,end,channel,pitcher,stage,type,page,page_size,order
|
|
|
image_id,
|
|
|
preview_url
|
|
|
from dw_image_cost_day
|
|
|
- where 1=1 {op2} {op3} {op4} {op5} {op6} {op8} {op10} {op9}
|
|
|
+ where 1=1 {op2} {op3} {op8} {op10} {op9}
|
|
|
"""
|
|
|
sum_sql = f"""select '总计' as pitcher,
|
|
|
sum(cost) cost,
|