|
@@ -267,7 +267,7 @@ class Company extends BaseController
|
|
|
$count = Db::name("company_info")->where($condition)->count();
|
|
|
$total = ceil($count/$size)>1 ? ceil($count/$size) : 1;
|
|
|
$page = $page>=$total?intval($total):$page;
|
|
|
- $list = Db::name("company_info")->where($condition)->page($page,$size)->select();
|
|
|
+ $list = Db::name("company_info")->where($condition)->page($page,$size)->order("id desc")->select();
|
|
|
return app_show(0,"获取成功",['list'=>$list,"count"=>$count]);
|
|
|
}
|
|
|
|