This commit is contained in:
xiaoyu
2025-03-07 22:29:18 +08:00
parent 8784d8a1ed
commit a74a529a0d
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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'],
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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