Explorar o código

添加agent_name 字段

cola %!s(int64=2) %!d(string=hai) anos
pai
achega
cc9659c626
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      data_manage/pitcher_panel.py

+ 1 - 1
data_manage/pitcher_panel.py

@@ -129,7 +129,7 @@ def get_channel_overview(user_id, channel, pitcher, stage, book,agentId, start,
     op7 = f" and book='{book}'" if book else ''
     op8 = f" and agent_id = '{agentId}'" if agentId else ''
 
-    sql = f"""select channel,dt date,reg_num,
+    sql = f"""select channel,dt date,agent_name,reg_num,
            round(if(reg_num=0,0,cost/reg_num),2) reg_per_cost,
         create_user_num,
        round(if(create_user_num=0,0,cost/create_user_num),2) create_user_per_cost,