From be66e2c68da1e97d245c3d656c3ef45fec40b714 Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Thu, 31 Mar 2022 14:04:55 +0800 Subject: [PATCH] edit-admin-order_list_filter --- admin/controllers/receiver/orderv2/Orders.php | 9 +++------ admin/libraries/Ordersv2List.php | 3 +++ admin/views/receiver/orderv2/lists.php | 2 ++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/admin/controllers/receiver/orderv2/Orders.php b/admin/controllers/receiver/orderv2/Orders.php index 5245154f..74235ddd 100644 --- a/admin/controllers/receiver/orderv2/Orders.php +++ b/admin/controllers/receiver/orderv2/Orders.php @@ -42,6 +42,7 @@ class Orders extends HD_Controller public function lists() { + $old_oid = Orders_v2_entity::V2_START_ID; $params = $this->input->get(); $statusAry = $this->receiver_order_status_model->statusAry(); $status_arr = array(); @@ -52,7 +53,8 @@ class Orders extends HD_Controller continue; } $cate = $where = array(); - $where = ["$t1.status<>" => -1]; + $where["$t1.status<>"] = -1; + $where["$t1.id>="] = $old_oid; if(is_product()){ $where["{$t1}.brand_id<>3"] = null;//狸车品牌不显示 $where["{$t1}.biz_id<>1"] = null;//biz_id=1不显示 @@ -820,9 +822,4 @@ class Orders extends HD_Controller } } - public function test(){ - $o_id = 10062; - $res = $this->orders_v2_entity->create_pdf($o_id); - print_r($res); - } } diff --git a/admin/libraries/Ordersv2List.php b/admin/libraries/Ordersv2List.php index b6aeb8a1..33be8982 100644 --- a/admin/libraries/Ordersv2List.php +++ b/admin/libraries/Ordersv2List.php @@ -195,6 +195,9 @@ class Ordersv2List if($params['status_pid']==3){ $where["{$this->t1}.id in (select o_id from lc_app_liche_orders where status=1 group by o_id)"] = null; } + if(strlen($params['status_pid'])){ + $where["{$this->t1}.id>="] = Orders_v2_entity::V2_START_ID; + } if(strlen($params['status_pid']) && $params['status']){ $where["{$this->t2}.pid_status"] = $params['status_pid']; $up_key = $params['status']+1; diff --git a/admin/views/receiver/orderv2/lists.php b/admin/views/receiver/orderv2/lists.php index 163850df..222fbfb3 100644 --- a/admin/views/receiver/orderv2/lists.php +++ b/admin/views/receiver/orderv2/lists.php @@ -51,6 +51,8 @@