diff --git a/app/common/dao/store/order/StoreOrderDao.php b/app/common/dao/store/order/StoreOrderDao.php index 58403598..a9efc065 100644 --- a/app/common/dao/store/order/StoreOrderDao.php +++ b/app/common/dao/store/order/StoreOrderDao.php @@ -225,7 +225,9 @@ class StoreOrderDao extends BaseDao $wheres['source'] = [2, 103]; $query->where($wheres); } else { - $query->where('activity_type', $where['product_type']); + if(isset($where['product_type']) && $where['product_type'] !== ''){ + $query->where('activity_type', $where['product_type']); + } } return $query; }