S0025136190 hai 1 ano
pai
achega
12fafabace
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()