From a74a529a0df787edfca063163877a4e29817bbc7 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Fri, 7 Mar 2025 22:29:18 +0800 Subject: [PATCH] cars --- admin/controllers/Common.php | 2 +- admin/controllers/auto/Brand.php | 2 +- admin/controllers/receiver/Orders.php | 2 +- admin/controllers/sys/cps/Brand.php | 2 +- api/controllers/wxapp/app/Series.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/admin/controllers/Common.php b/admin/controllers/Common.php index 4ae75880..5d2c5920 100644 --- a/admin/controllers/Common.php +++ b/admin/controllers/Common.php @@ -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'], diff --git a/admin/controllers/auto/Brand.php b/admin/controllers/auto/Brand.php index e0b37dde..e7cb6df5 100644 --- a/admin/controllers/auto/Brand.php +++ b/admin/controllers/auto/Brand.php @@ -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) { diff --git a/admin/controllers/receiver/Orders.php b/admin/controllers/receiver/Orders.php index c6165649..7b8abdaf 100644 --- a/admin/controllers/receiver/Orders.php +++ b/admin/controllers/receiver/Orders.php @@ -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) { diff --git a/admin/controllers/sys/cps/Brand.php b/admin/controllers/sys/cps/Brand.php index e948b502..27856e44 100644 --- a/admin/controllers/sys/cps/Brand.php +++ b/admin/controllers/sys/cps/Brand.php @@ -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) { diff --git a/api/controllers/wxapp/app/Series.php b/api/controllers/wxapp/app/Series.php index d59488e9..c927dad3 100644 --- a/api/controllers/wxapp/app/Series.php +++ b/api/controllers/wxapp/app/Series.php @@ -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