sunxbiao 1 год назад
Родитель
Сommit
7203965de0
1 измененных файлов с 8 добавлено и 8 удалено
  1. 8 8
      app/common/repositories/store/order/StoreOrderRepository.php

+ 8 - 8
app/common/repositories/store/order/StoreOrderRepository.php

@@ -4641,29 +4641,29 @@ class StoreOrderRepository extends BaseRepository
4641 4641
         //1: 未支付 2: 未发货 3: 待收货 4: 待评价 5: 交易完成 6: 已退款 7: 已删除
4642 4642
         $all = $this->dao->search($where, null)->when($order_ids, function ($q) use ($order_ids) {
4643 4643
             $q->whereIn('order_id', $order_ids);
4644
-        })->count();
4644
+        })->whereNotIn('uid', [766, 783, 6])->count();
4645 4645
         $statusAll = $all;
4646 4646
         $unpaid = $this->dao->search($where, null)->when($order_ids, function ($q) use ($order_ids) {
4647 4647
             $q->whereIn('order_id', $order_ids);
4648
-        })->where(['paid' => 0, 'is_del' => 0])->count();
4648
+        })->where(['paid' => 0, 'is_del' => 0])->whereNotIn('uid', [766, 783, 6])->count();
4649 4649
         $unshipped = $this->dao->search($where, null)->when($order_ids, function ($q) use ($order_ids) {
4650 4650
             $q->whereIn('order_id', $order_ids);
4651
-        })->where(['status' => 0, 'paid' => 1, 'is_del' => 0])->count();
4651
+        })->where(['status' => 0, 'paid' => 1, 'is_del' => 0])->whereNotIn('uid', [766, 783, 6])->count();
4652 4652
         $untake = $this->dao->search($where, null)->when($order_ids, function ($q) use ($order_ids) {
4653 4653
             $q->whereIn('order_id', $order_ids);
4654
-        })->where(['status' => 1, 'is_del' => 0])->count();
4654
+        })->where(['status' => 1, 'is_del' => 0])->whereNotIn('uid', [766, 783, 6])->count();
4655 4655
         $unevaluate = $this->dao->search($where, null)->when($order_ids, function ($q) use ($order_ids) {
4656 4656
             $q->whereIn('order_id', $order_ids);
4657
-        })->where(['status' => 2, 'is_del' => 0])->count();
4657
+        })->where(['status' => 2, 'is_del' => 0])->whereNotIn('uid', [766, 783, 6])->count();
4658 4658
         $complete = $this->dao->search($where, null)->when($order_ids, function ($q) use ($order_ids) {
4659 4659
             $q->whereIn('order_id', $order_ids);
4660
-        })->where(['status' => 3, 'is_del' => 0])->count();
4660
+        })->where(['status' => 3, 'is_del' => 0])->whereNotIn('uid', [766, 783, 6])->count();
4661 4661
         $refund = $this->dao->search($where, null)->when($order_ids, function ($q) use ($order_ids) {
4662 4662
             $q->whereIn('order_id', $order_ids);
4663
-        })->where(['status' => -1])->count();
4663
+        })->where(['status' => -1])->whereNotIn('uid', [766, 783, 6])->count();
4664 4664
         $del = $this->dao->search($where, null)->when($order_ids, function ($q) use ($order_ids) {
4665 4665
             $q->whereIn('order_id', $order_ids);
4666
-        })->where(['is_del' => 1])->count();
4666
+        })->where(['is_del' => 1])->whereNotIn('uid', [766, 783, 6])->count();
4667 4667
 
4668 4668
         return compact('all', 'statusAll', 'unpaid', 'unshipped', 'untake', 'unevaluate', 'complete', 'refund', 'del');
4669 4669
     }