Browse Source

MOD:订单详情去除掉渠道名

cxyu 3 years ago
parent
commit
1c0cc19f78
1 changed files with 1 additions and 1 deletions
  1. 1 1
      handlers/OrderHandler.py

+ 1 - 1
handlers/OrderHandler.py

@@ -307,7 +307,7 @@ class OrderInfo(BaseHandler):
         sql = f"""select 
 		 rowNumberInAllBlocks() as id,
 		a.order_id order_id,
-		h.pitcher pitcher,
+		 if(a.agent_id like '%_21','',if(a.agent_id like '%_0','',h.pitcher)) as pitcher,
        if(a.agent_id like '%_21','客服渠道',if(a.agent_id like '%_0','自然流量',q.user_nicename)) as agent_name,
        if(a.agent_id like '%_21','客服渠道',if(a.agent_id like '%_0','自然流量',c.wx_name)) as channel,
         FROM_UNIXTIME(a.create_time) order_time,