|
|
@@ -45,7 +45,7 @@ class OrderShopRepositoryQuery extends AbstractRepositoryQuery |
|
|
|
public function selectCount(): self |
|
|
|
{ |
|
|
|
return $this |
|
|
|
->addSelect('count(r.id) as total'); |
|
|
|
->select('count(r.id) as total'); |
|
|
|
} |
|
|
|
|
|
|
|
public function filterByUser(UserInterface $user): self |
|
|
@@ -69,28 +69,28 @@ class OrderShopRepositoryQuery extends AbstractRepositoryQuery |
|
|
|
->setParameter('dateEnd', $dateEnd); |
|
|
|
} |
|
|
|
|
|
|
|
public function filterByEstimatedDeliveryDateStart(DateTime $dateStart): self |
|
|
|
public function filterByEstimatedDeliveryDateStart(string $dateStart): self |
|
|
|
{ |
|
|
|
return $this |
|
|
|
->andWhere('.estimatedDeliveryDateTime >= :deliveryDateStart') |
|
|
|
->setParameter('deliveryDateStart', $dateStart); |
|
|
|
} |
|
|
|
|
|
|
|
public function filterByEstimatedDeliveryDateEnd(DateTime $dateEnd): self |
|
|
|
public function filterByEstimatedDeliveryDateEnd(string $dateEnd): self |
|
|
|
{ |
|
|
|
return $this |
|
|
|
->andWhere('.estimatedDeliveryDateTime < :deliveryDateEnd') |
|
|
|
->setParameter('deliveryDateEnd', $dateEnd); |
|
|
|
} |
|
|
|
|
|
|
|
public function filterByDeliveryDateStart(DateTime $dateStart): self |
|
|
|
public function filterByDeliveryDateStart(string $dateStart): self |
|
|
|
{ |
|
|
|
return $this |
|
|
|
->andWhere('.deliveryDate >= :deliveryDateStart') |
|
|
|
->setParameter('deliveryDateStart', $dateStart); |
|
|
|
} |
|
|
|
|
|
|
|
public function filterByDeliveryDateEnd(DateTime $dateEnd): self |
|
|
|
public function filterByDeliveryDateEnd(string $dateEnd): self |
|
|
|
{ |
|
|
|
return $this |
|
|
|
->andWhere('.deliveryDate < :deliveryDateEnd') |
|
|
@@ -145,11 +145,11 @@ class OrderShopRepositoryQuery extends AbstractRepositoryQuery |
|
|
|
->setParameter('reductionCart', $reductionCart); |
|
|
|
} |
|
|
|
|
|
|
|
public function filterByAvailabilityPointZone(DeliveryAvailabilityZone $deliveryAvailabilityZone): self |
|
|
|
public function filterByAvailabilityPointZone(DeliveryAvailabilityPointSale $deliveryAvailabilityPointSale): self |
|
|
|
{ |
|
|
|
return $this |
|
|
|
->andWhere('.deliveryAvailabilityZone = :deliveryAvailabilityZone') |
|
|
|
->setParameter('deliveryAvailabilityZone', $deliveryAvailabilityZone); |
|
|
|
->andWhere('.deliveryAvailabilityPointSale = :deliveryAvailabilityPointSale') |
|
|
|
->setParameter('deliveryAvailabilityPointSale', $deliveryAvailabilityPointSale); |
|
|
|
} |
|
|
|
|
|
|
|
public function filterByAvailabilityPointSale(DeliveryAvailabilityPointSale $deliveryAvailabilityPointSale): self |
|
|
@@ -297,7 +297,7 @@ class OrderShopRepositoryQuery extends AbstractRepositoryQuery |
|
|
|
|
|
|
|
public function joinDeliverySlotPointSale(): self |
|
|
|
{ |
|
|
|
$this->joinDeliveryAvailabilityZone(); |
|
|
|
$this->joinDeliveryAvailabilityPointSale(); |
|
|
|
|
|
|
|
if (!$this->isJoinDeliverySlotPointSale) { |
|
|
|
$this->isJoinDeliverySlotPointSale = true; |