修正了 property 直接取值的问题
This commit is contained in:
@@ -685,7 +685,7 @@ class KefuGetDashouListView(APIView):
|
||||
# 关键词筛选(用户ID或昵称)
|
||||
if keyword:
|
||||
dashou_qs = dashou_qs.filter(
|
||||
Q(user__yonghuid__icontains=keyword) |
|
||||
Q(user__UserUID__icontains=keyword) |
|
||||
Q(nicheng__icontains=keyword)
|
||||
)
|
||||
|
||||
@@ -693,7 +693,7 @@ class KefuGetDashouListView(APIView):
|
||||
total_dashou = dashou_qs.count()
|
||||
|
||||
# 6. 统计有效打手数(有会员且未过期)
|
||||
dashou_user_ids = dashou_qs.values_list('user__yonghuid', flat=True)
|
||||
dashou_user_ids = dashou_qs.values_list('user__UserUID', flat=True)
|
||||
now = timezone.now()
|
||||
valid_user_ids = Huiyuangoumai.query.filter(
|
||||
yonghu_id__in=dashou_user_ids,
|
||||
@@ -1395,7 +1395,7 @@ class KefuGetShangjiaListView(APIView):
|
||||
# 关键词筛选(用户ID或昵称)
|
||||
if keyword:
|
||||
shangjia_qs = shangjia_qs.filter(
|
||||
Q(user__yonghuid__icontains=keyword) |
|
||||
Q(user__UserUID__icontains=keyword) |
|
||||
Q(nicheng__icontains=keyword)
|
||||
)
|
||||
|
||||
@@ -3552,7 +3552,7 @@ class GetZuzhangListView(APIView):
|
||||
# 6. 应用筛选条件(使用 ORM 安全过滤)
|
||||
if keyword:
|
||||
queryset = queryset.filter(
|
||||
Q(user__yonghuid__icontains=keyword) |
|
||||
Q(user__UserUID__icontains=keyword) |
|
||||
Q(user__boss_profile__nickname__icontains=keyword)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user