瀏覽代碼

导出排序

S0025136190 1 年之前
父節點
當前提交
12fafabace
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/api/bigModel/route.ts

+ 1 - 1
app/api/bigModel/route.ts

@@ -64,7 +64,7 @@ export async function GET() {
 
     // 执行 MySQL 查询
     const [rows, fields] = await connection.query('SELECT he.id,he.dialog_name,de.id did,de.dialog_id,de.type,de.content,de.create_time ' +
-        'FROM dialog he left join dialog_detail de on he.id = de.dialog_id order by  he.id , de.create_time, type desc')
+        'FROM dialog he left join dialog_detail de on he.id = de.dialog_id order by he.create_time desc, he.id , de.create_time, type desc')
 
     // 释放连接回连接池
     connection.release()