deploy: 2026-07-15 14:11 部署更新

This commit is contained in:
selfrelease
2026-07-15 14:11:45 +08:00
parent 3bb8b3b3be
commit 0a95b41581
+3 -3
View File
@@ -712,7 +712,7 @@ def list_conversations(
try: try:
with conn.cursor() as cur: with conn.cursor() as cur:
sql = """ sql = """
SELECT DISTINCT cu.id, cu.customer_name, s.name AS salesperson_name, SELECT cu.id, cu.customer_name, s.name AS salesperson_name,
cu.industry, cu.intent_level, cu.stage, cu.industry, cu.intent_level, cu.stage,
cu.summary, cu.key_points, cu.objections, cu.next_action, cu.summary, cu.key_points, cu.objections, cu.next_action,
cu.key_needs, cu.last_analysis, cu.key_needs, cu.last_analysis,
@@ -742,8 +742,8 @@ def list_conversations(
GROUP BY cu.id, cu.customer_name, s.name, GROUP BY cu.id, cu.customer_name, s.name,
cu.industry, cu.intent_level, cu.stage, cu.industry, cu.intent_level, cu.stage,
cu.summary, cu.key_points, cu.objections, cu.next_action, cu.summary, cu.key_points, cu.objections, cu.next_action,
cu.key_needs, cu.last_analysis cu.key_needs, cu.last_analysis, cu.salesperson_id
ORDER BY min(cu.salesperson_id), cu.id ORDER BY cu.salesperson_id, cu.id
""" """
cur.execute(sql, params) cur.execute(sql, params)