|
@@ -600,10 +600,12 @@ def get_channel_summary(user_id,channel,pitcher,page,page_size,order_by,order,st
|
|
|
if user_id in super_auth(): # 超级数据权限
|
|
|
op = ''
|
|
|
else:
|
|
|
+ user_name = UserAuthUtils.get_user_name_by_id(user_id)
|
|
|
+ auth_user_li = UserAuthUtils.get_auth_user(user_id)
|
|
|
if len(UserAuthUtils.get_auth_user(user_id)) == 0: # 属于普通用户
|
|
|
- op = f" and pitcher='{user_id}'"
|
|
|
+ op = f" and pitcher='{user_name}'"
|
|
|
else:
|
|
|
- op = f" and pitcher in {tuple(UserAuthUtils.get_auth_user(user_id)+[user_id])}"
|
|
|
+ op = f" and pitcher in {tuple(auth_user_li+[user_name])}"
|
|
|
|
|
|
op1=f" and a.channel='{channel}'" if channel else ''
|
|
|
op2=f" and pitcher='{pitcher}'" if pitcher else ''
|