no message

deploy
DESKTOP-4RNDQIC\29019 2020-06-01 19:39:48 +08:00
parent 54453428c3
commit 0dbccb5572
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class XmJobCnt extends Model
public $tableName = 'xmjobcnt';
public function getAll($limit,$offset) {
$db = static::getDB();
$query = 'SELECT * FROM xmjobcnt ' . 'limit ' . strval($limit) . ' offset ' . strval($offset);
$query = 'SELECT * FROM xmjobcnt ORDER BY `timestamp` desc ' . 'limit ' . strval($limit) . ' offset ' . strval($offset);
$stmt = $db->query($query);
return $stmt->fetchAll(PDO::FETCH_ASSOC);
}