作者 朱世亮

job返回按倒序排序

... ... @@ -41,7 +41,7 @@ class sendJobsSql {
*/
public static function all(string $where,int $p=1,int $limit=20):string {
$filed = '`id`,`success`,`title`,`created_at`,`error`,`total`,`stop`,`status`,`send_time`,`remark`';
return "select {$filed} from `".static::$table."` where ".$where." limit {$limit} offset ".(($p-1)*$limit);
return "select {$filed} from `".static::$table."` where ".$where." order by id desc limit {$limit} offset ".(($p-1)*$limit);
}
/**
... ...