diff --git a/api/controllers/wxapp/licheb/CusorderV2.php b/api/controllers/wxapp/licheb/CusorderV2.php index 3a8bf604..f6e9cc30 100644 --- a/api/controllers/wxapp/licheb/CusorderV2.php +++ b/api/controllers/wxapp/licheb/CusorderV2.php @@ -658,7 +658,7 @@ class CusorderV2 extends Wxapp !$page && $page = 1; !$size && $size = 10; - $where = ['status>=' => 0]; + $where = []; if ($group_id == 1) { $where['admin_id'] = $uid;//销售 } else if ($group_id == 2 || $group_id == 3) {//店长/老板 @@ -675,7 +675,11 @@ class CusorderV2 extends Wxapp } elseif ($status == 12) { //已完成 $where['status'] = 1; } else { - strlen($status) && $where['status'] = $status; + if (strlen($status)) { + $where['status'] = $status; + } else { + $where['status>='] = 0; + } } if ($type) { unset($where['status']);