Commit 9e1245ef authored by lvshibao's avatar lvshibao

seat_check接口的修改

parent cb6391b6
......@@ -145,7 +145,7 @@ def db_seat_check(req, if_page=False):
agent_names = get_agent_name(city_id, country_id, team_id, agent_name)
if len(agent_names) > 0:
seat_code_name_lists = Seat.objects.filter(code__in=agent_names).values('code', 'name')
seat_code_name_lists = Seat.objects.filter(name__in=agent_names).values('code', 'name')
else:
seat_code_name_lists = Seat.objects.filter().values('code', 'name')
seat_code_name_dict = dict()
......
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