...
|
...
|
@@ -11,7 +11,7 @@ class slowRouteModel extends model { |
|
|
pageSize = pageSize || 10;
|
|
|
|
|
|
let recordsTotal = await this.mysql.query('SELECT COUNT(*) as count from slow_duration where app = ?', [app]).then(([r]) => r.count);
|
|
|
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]);
|
|
|
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]);
|
|
|
|
|
|
return {
|
|
|
recordsTotal,
|
...
|
...
|
|