Browse Source

修改bug

cola 2 years ago
parent
commit
0ce9e8fdcd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      data_manage/pitcher_panel.py

+ 2 - 2
data_manage/pitcher_panel.py

@@ -125,9 +125,9 @@ def get_channel_overview(user_id, channel, pitcher, stage, book,agent_id, start,
             return None, None, None
 
         elif len(UserAuthUtils.get_auth_channel(user_id)) == 1:
-            op = f" and channel = '{UserAuthUtils.get_auth_channel(user_id)[0]}'"
+            op = f" and a.channel = '{UserAuthUtils.get_auth_channel(user_id)[0]}'"
         else:
-            op = f" and channel in {str(UserAuthUtils.get_auth_channel(user_id))}"
+            op = f" and a.channel in {str(UserAuthUtils.get_auth_channel(user_id))}"
     op1 = f" and pitcher ='{pitcher}' " if pitcher else ''
     op2 = f" and a.channel='{channel}'" if channel else ''
     op3 = f" and a.dt>='{start}' " if start else ''