Ver código fonte

添加投手关联渠道

cola 2 anos atrás
pai
commit
19d313edc1
1 arquivos alterados com 4 adições e 3 exclusões
  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)
     return db.dm.getData_json(sql)
 
-def get_agent_list():
+def get_agent_list(pitcher):
     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)