Browse Source

🎈 perf: 更新乐跑账号排序方式

Pchen. 7 months ago
parent
commit
9b8cc7787e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      apis/Lepao/Account/Admin/GetAccountList.js
  2. 1 1
      apis/Lepao/Account/GetAccount.js

+ 1 - 1
apis/Lepao/Account/Admin/GetAccountList.js

@@ -138,7 +138,7 @@ class GetAccountList extends API {
         }
         }
 
 
         sql += `
         sql += `
-            ORDER BY id DESC
+            ORDER BY l.create_time DESC
             LIMIT ? OFFSET ?;
             LIMIT ? OFFSET ?;
         `
         `
         params.push(String(pagesize), String(offset))
         params.push(String(pagesize), String(offset))

+ 1 - 1
apis/Lepao/Account/GetAccount.js

@@ -56,7 +56,7 @@ class GetAccount extends API {
                     a.create_user = u.uuid
                     a.create_user = u.uuid
                 WHERE 
                 WHERE 
                     a.create_user = ?
                     a.create_user = ?
-                ORDER BY id DESC
+                ORDER BY a.create_time DESC
             `
             `
 
 
         let rows = await db.query(sql, [uuid])
         let rows = await db.query(sql, [uuid])