【程序目录】优化自动收货

This commit is contained in:
evoxwht 2022-06-09 10:32:13 +08:00
parent 7c13c47218
commit 7cbd29116b
2 changed files with 6 additions and 3 deletions

View File

@ -81,8 +81,11 @@ class StoreOrderStoreOrderStatusDao extends BaseDao
* @param array $where
* @return array
*/
public function getTakeOrderIds(array $where)
public function getTakeOrderIds(array $where, int $limit = 0)
{
return $this->search($where)->whereIn('refund_status', [0, 1])->field([$this->alias . '.*'])->select()->toArray();
return $this->search($where)->whereIn('refund_type', [0, 3])->field([$this->alias . '.*'])
->when($limit != 0, function ($query) use ($limit) {
$query->limit($limit);
})->select()->toArray();
}
}

View File

@ -18,7 +18,7 @@ use app\services\BaseServices;
/**
* Class StoreOrderStoreOrderStatusServices
* @package app\services\order
* @method getTakeOrderIds(array $where)
* @method getTakeOrderIds(array $where, ?int $limit = 0)
*/
class StoreOrderStoreOrderStatusServices extends BaseServices
{