ck 4 years ago
parent
commit
af50e804f3
2 changed files with 3 additions and 3 deletions
  1. 2 2
      data_manage/pitcher_panel.py
  2. 1 1
      urls.py

+ 2 - 2
data_manage/pitcher_panel.py

@@ -799,9 +799,9 @@ def get_channel_summary(channel,pitcher,page,page_size,order_by,order,state,loca
                     sum(reg_order_amount) total_amount,
                     sum(follow_user) follow_user,
 					sum(reg_order_user) order_user
-               from dw_channel_daily   where 1=1 {op1} {op2} {op3} {op4} {op6} {op7} GROUP BY channel,type,pitcher,stage) a where 1=1  {op5}  ORDER BY {order_by} {order}
+               from dw_channel_daily   where 1=1 {op1} {op2} {op3} {op6} {op7} GROUP BY channel,type,pitcher,stage) a having 1=1  {op4} {op5}  ORDER BY {order_by} {order}
                 """
-    # print(sql)
+    print(sql)
     sumsql=f"""select '总计' channel,
             sum(total_cost) total_cost,
             sum(total_amount) total_amount,sum(profit) profit, 

+ 1 - 1
urls.py

@@ -4,7 +4,7 @@ from handlers.GitHookHandler import *
 
 
 urls = [
-    # (r'/data/pitcher_panel/channel', PitcherPanelChannel),  # 公众号汇总
+
     (r'/data/pitcher_panel/daily', PitcherPanelDaily), # 日期汇总
     (r'/data/pitcher_panel/overview', PitcherPanelOverview), # 投手今天概况
     (r'/data/channel_stat/overview',ChannelOverview), # 公众号广告投放数据