|
@@ -27,7 +27,7 @@ sum(first_order_amount) first_amount,
|
|
|
sum(reg_order_amount) reg_amount,
|
|
|
round(sum(first_order_amount)/sum(cost),4) first_roi,
|
|
|
round(sum(reg_order_amount)/sum(cost),4) roi
|
|
|
-from dw_channel where 1=1 {op1} {op2} {op3} {op5} GROUP BY channel,book,pitcher
|
|
|
+from dw_channel where 1=1 {op1} {op2} {op3} {op5} GROUP BY channel,book,pitcher,stage
|
|
|
{op4}"""
|
|
|
print(sql)
|
|
|
return getLimitData(db.dm,sql,page,page_size)
|