|
@@ -41,7 +41,6 @@ class OrderInfoAgent(BaseHandler):
|
|
|
else:
|
|
|
op = f" and c.wx_name in {str(UserAuthUtils.get_auth_channel(user_id))}"
|
|
|
|
|
|
-
|
|
|
sql = f'''
|
|
|
select row_number() over() as id,
|
|
|
d.user_nicename as agent_name
|
|
@@ -54,6 +53,8 @@ class OrderInfoAgent(BaseHandler):
|
|
|
group by d.user_nicename
|
|
|
'''
|
|
|
data = db.quchen_text.getData_json(sql)
|
|
|
+ data.insert(0, {'id': -1, 'agent_name': '自然渠道'})
|
|
|
+ data.insert(0, {'id': -2, 'agent_name': '客服渠道'})
|
|
|
self.write_json(data=data)
|
|
|
|
|
|
|