diff --git a/admin/controllers/receiver/orderv2/Orders.php b/admin/controllers/receiver/orderv2/Orders.php index ccdd9adb..2d5d0298 100644 --- a/admin/controllers/receiver/orderv2/Orders.php +++ b/admin/controllers/receiver/orderv2/Orders.php @@ -55,7 +55,9 @@ class Orders extends HD_Controller } $cate = $where = array(); $where["$t1.status<>"] = -1; - $where["$t1.id>="] = $old_oid; + if(strlen($value['pid_status']) && $value['pid_status']){ + $where["$t1.id>="] = $old_oid; + } if(is_product()){ $where["{$t1}.brand_id<>3"] = null;//狸车品牌不显示 $where["{$t1}.biz_id<>1"] = null;//biz_id=1不显示 diff --git a/admin/libraries/Ordersv2List.php b/admin/libraries/Ordersv2List.php index aa4c4dbe..c5f8bb71 100644 --- a/admin/libraries/Ordersv2List.php +++ b/admin/libraries/Ordersv2List.php @@ -191,7 +191,7 @@ class Ordersv2List if ($params['status_pid'] == 4) { //交付需要开票后才显示 $where["{$this->t1}.id in (select o_id from lc_receiver_order_status where pid_status=3 and status=1)"] = null; } - if (strlen($params['status_pid'])) { + if (strlen($params['status_pid']) && $params['status_pid']) { $where["{$this->t1}.id>="] = Orders_v2_entity::V2_START_ID; }