cxyu пре 3 година
родитељ
комит
1248bddab5
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      handlers/OrderHandler.py

+ 2 - 1
handlers/OrderHandler.py

@@ -41,7 +41,6 @@ class OrderInfoAgent(BaseHandler):
                 else:
                 else:
                     op = f" and c.wx_name in {str(UserAuthUtils.get_auth_channel(user_id))}"
                     op = f" and c.wx_name in {str(UserAuthUtils.get_auth_channel(user_id))}"
 
 
-
             sql = f'''
             sql = f'''
             select row_number() over() as id,
             select row_number() over() as id,
                 d.user_nicename as agent_name
                 d.user_nicename as agent_name
@@ -54,6 +53,8 @@ class OrderInfoAgent(BaseHandler):
                 group by d.user_nicename 
                 group by d.user_nicename 
             '''
             '''
             data = db.quchen_text.getData_json(sql)
             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)
             self.write_json(data=data)