Showing
1 changed file
with
1 additions
and
1 deletions
@@ -11,7 +11,7 @@ class slowRouteModel extends model { | @@ -11,7 +11,7 @@ class slowRouteModel extends model { | ||
11 | pageSize = pageSize || 10; | 11 | pageSize = pageSize || 10; |
12 | 12 | ||
13 | let recordsTotal = await this.mysql.query('SELECT COUNT(*) as count from slow_duration where app = ?', [app]).then(([r]) => r.count); | 13 | let recordsTotal = await this.mysql.query('SELECT COUNT(*) as count from slow_duration where app = ?', [app]).then(([r]) => r.count); |
14 | - let data = await this.mysql.query('SELECT id, app, `type`, preqid, reqid, uid, udid, api, route, duration, create_time as time from slow_duration where app = ? ORDER BY duration DESC LIMIT ?, ? ', [app, page, pageSize]); | 14 | + let data = await this.mysql.query('SELECT id, app, `type`, preqid, reqid, uid, udid, api, route, duration, create_time as time from slow_duration where app = ? ORDER BY create_time DESC LIMIT ?, ? ', [app, page, pageSize]); |
15 | 15 | ||
16 | return { | 16 | return { |
17 | recordsTotal, | 17 | recordsTotal, |
-
Please register or login to post a comment