diff --git a/crmeb/app/dao/order/StoreOrderStoreOrderStatusDao.php b/crmeb/app/dao/order/StoreOrderStoreOrderStatusDao.php index 9ca67d449..30f9aa382 100644 --- a/crmeb/app/dao/order/StoreOrderStoreOrderStatusDao.php +++ b/crmeb/app/dao/order/StoreOrderStoreOrderStatusDao.php @@ -83,7 +83,7 @@ class StoreOrderStoreOrderStatusDao extends BaseDao */ public function getTakeOrderIds(array $where, int $limit = 0) { - return $this->search($where)->whereIn('refund_type', [0, 3])->field([$this->alias . '.*']) + return $this->search($where)->whereIn('refund_type', [0, 3])->where('pid', '<>', -1)->field([$this->alias . '.*']) ->when($limit != 0, function ($query) use ($limit) { $query->limit($limit); })->select()->toArray();