|
|
@@ -724,15 +724,16 @@ class OrderShopStore extends AbstractStore |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
public function getCartAlone($query = null) |
|
|
|
public function getOldCartWithoutProductAndUser( \DateTime $updatedAt, int $limit = 150, $query = null) |
|
|
|
{ |
|
|
|
|
|
|
|
$query = $this->createQuery($query); |
|
|
|
|
|
|
|
$query->filterByAlias(OrderStatus::$statusAliasAsCart); |
|
|
|
$query->filterByUserIsNull(); |
|
|
|
$query->filterByVisitorIsNull(); |
|
|
|
$query->filterByAlias([OrderStatus::ALIAS_CART]); |
|
|
|
$query->filterByDateEnd('updatedAt', $updatedAt); |
|
|
|
$query->filterHasNoOrderProduct(); |
|
|
|
$query->filterHasNoUser(); |
|
|
|
|
|
|
|
return $query->limit(10000)->find(); |
|
|
|
return $query->limit($limit)->find(); |
|
|
|
} |
|
|
|
} |