浏览代码

【程序目录】自动收货查询订单错误修复

evoxwht 3 年之前
父节点
当前提交
3d80665397
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      crmeb/app/dao/order/StoreOrderStoreOrderStatusDao.php

+ 1 - 1
crmeb/app/dao/order/StoreOrderStoreOrderStatusDao.php

@@ -83,7 +83,7 @@ class StoreOrderStoreOrderStatusDao extends BaseDao
      */
      */
     public function getTakeOrderIds(array $where, int $limit = 0)
     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) {
             ->when($limit != 0, function ($query) use ($limit) {
                 $query->limit($limit);
                 $query->limit($limit);
             })->select()->toArray();
             })->select()->toArray();