Commit 165ed6e0 authored by lvshibao's avatar lvshibao

seat_check接口的修改

parent 9e1245ef
......@@ -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(name__in=agent_names).values('code', 'name')
seat_code_name_lists = Seat.objects.filter(code__in=agent_names).values('code', 'name')
else:
seat_code_name_lists = Seat.objects.filter().values('code', 'name')
seat_code_name_dict = dict()
......@@ -158,7 +158,7 @@ def db_seat_check(req, if_page=False):
tn = CheckSession.set_table(table_name)
session_condition = {'taskId__in': v}
if len(agent_names) > 0:
session_condition['agentName__in'] = list(seat_code_name_dict.keys())
session_condition['agentName__in'] = agent_names
all_checks = tn.objects.filter(**session_condition).values('id', 'createdAt', 'agentName', 'extra', 'taskId',
'remainTime', 'startTime', 'closeTime',
'scoreItemRecord', 'sessionId')
......
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