cusorderV2_831_3

This commit is contained in:
dengbw
2022-08-31 13:56:44 +08:00
committed by lccsw
parent 67455b3176
commit 50c227ce0b
+6 -2
View File
@@ -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']);