cusorderV2_831_3
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user