正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -41,7 +41,7 @@ class sendJobsSql { | @@ -41,7 +41,7 @@ class sendJobsSql { | ||
| 41 | */ | 41 | */ |
| 42 | public static function all(string $where,int $p=1,int $limit=20):string { | 42 | public static function all(string $where,int $p=1,int $limit=20):string { |
| 43 | $filed = '`id`,`success`,`title`,`created_at`,`error`,`total`,`stop`,`status`,`send_time`,`remark`'; | 43 | $filed = '`id`,`success`,`title`,`created_at`,`error`,`total`,`stop`,`status`,`send_time`,`remark`'; |
| 44 | - return "select {$filed} from `".static::$table."` where ".$where." limit {$limit} offset ".(($p-1)*$limit); | 44 | + return "select {$filed} from `".static::$table."` where ".$where." order by id desc limit {$limit} offset ".(($p-1)*$limit); |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | /** | 47 | /** |
-
请 注册 或 登录 后发表评论