Browse Source

添加投手关联渠道

cola 2 năm trước cách đây
mục cha
commit
19d313edc1
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 4 3
      data_manage/pitcher_panel.py

+ 4 - 3
data_manage/pitcher_panel.py

@@ -107,10 +107,11 @@ where 1=1 {op1}
     print(sql)
     print(sql)
     return db.dm.getData_json(sql)
     return db.dm.getData_json(sql)
 
 
-def get_agent_list():
+def get_agent_list(pitcher):
     db = MysqlUtils()
     db = MysqlUtils()
-    sql="""
-    select distinct agent_id, agent_name from dw_channel where agent_id is not null and agent_id!= ''
+    op = f" and pitcher ='{pitcher}' " if pitcher else ''
+    sql=f"""
+    select distinct agent_id, agent_name from dw_channel where agent_id is not null and agent_id!= '' {op}
     """
     """
     return db.dm.getData_json(sql)
     return db.dm.getData_json(sql)