cars
This commit is contained in:
@@ -1100,7 +1100,7 @@ class Common extends CI_Controller
|
||||
$count = $this->auto_brand_model->count($where);
|
||||
$itemsList = [];
|
||||
if ($count) {
|
||||
$lists = $this->auto_brand_model->select($where, 'id desc', $page, $size);
|
||||
$lists = $this->auto_brand_model->select($where, 'initial asc', $page, $size);
|
||||
foreach ($lists as $key => $val) {
|
||||
$itemsList[] = [
|
||||
'id' => $val['id'],
|
||||
|
||||
@@ -33,7 +33,7 @@ class Brand extends HD_Controller
|
||||
}
|
||||
}
|
||||
$count = $this->auto_brand_model->count($where);
|
||||
$rows = $this->auto_brand_model->select($where, 'status desc, id desc', $page, $size);
|
||||
$rows = $this->auto_brand_model->select($where, 'initail asc', $page, $size);
|
||||
$status_arr = $this->auto_brand_model->get_status();
|
||||
$list = [];
|
||||
if ($rows) {
|
||||
|
||||
@@ -53,7 +53,7 @@ class Orders extends HD_Controller
|
||||
$result = $this->orderslist->lists($params['status_pid'], $params);
|
||||
$this->data = $result;
|
||||
//获取品牌
|
||||
$brand_rows = $this->auto_brand_model->select(['status>'=>0], 'status desc, id asc', 0, 0, 'id,name');
|
||||
$brand_rows = $this->auto_brand_model->select(['status>'=>0], 'initial asc', 0, 0, 'id,name');
|
||||
$brands = [];
|
||||
if($brand_rows){
|
||||
foreach ($brand_rows as $v) {
|
||||
|
||||
@@ -55,7 +55,7 @@ class Brand extends HD_Controller
|
||||
if ($id) {
|
||||
$info = $this->sys_cps_model->get(['id' => $id]);
|
||||
}
|
||||
$brand_rows = $this->auto_brand_model->select(['status' => 1], 'id asc', 0, 0, 'id,name');
|
||||
$brand_rows = $this->auto_brand_model->select(['status' => 1], 'initail asc', 0, 0, 'id,name');
|
||||
$brands = [];
|
||||
if ($brand_rows) {
|
||||
foreach ($brand_rows as $v) {
|
||||
|
||||
@@ -55,7 +55,7 @@ class Series extends Wxapp{
|
||||
'status' => 1
|
||||
];
|
||||
$count = $this->auto_brand_model->count($where);
|
||||
$list = $this->auto_brand_model->select($where,'id desc',$page,$size,'id,name');
|
||||
$list = $this->auto_brand_model->select($where,'initial asc',$page,$size,'id,name');
|
||||
$data = [
|
||||
'list' => $list,
|
||||
'total' => $count
|
||||
|
||||
Reference in New Issue
Block a user