Commit 308624d1 authored by lvshibao's avatar lvshibao

seat_check接口的修改

parent 28d0f0d4
......@@ -35,7 +35,8 @@ def get_agent_name(city_id, country_id, team_id, agent_name):
return []
else:
country_id_list = Country.objects.filter(Q(parent=city_id) | Q(id=city_id)).values_list('id')
return Team.objects.filter(country_id__in=country_id_list).values_list('code')
team_ids = Team.objects.filter(country_id__in=country_id_list).values_list('id')
return Seat.objects.filter(team_id__in=team_ids).values_list('code')
else:
return []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment