|
|
|
|
|
|
|
|
if(isset($params['deliveryDate'])) { |
|
|
if(isset($params['deliveryDate'])) { |
|
|
$query->andWhere('e.deliveryDate >= :deliveryDateStart'); |
|
|
$query->andWhere('e.deliveryDate >= :deliveryDateStart'); |
|
|
$query->andWhere('e.deliveryDate < :deliveryDateEnd'); |
|
|
$query->andWhere('e.deliveryDate < :deliveryDateEnd'); |
|
|
$query->setParameter('deliveryDateStart', $params['deliveryDate']->format('Y-m-d 00:00:00')); |
|
|
|
|
|
$query->setParameter('deliveryDateEnd', $params['deliveryDate']->modify('+1 day')->format('Y-m-d 00:00:00')); |
|
|
|
|
|
|
|
|
$date = clone $params['deliveryDate']; |
|
|
|
|
|
$query->setParameter('deliveryDateStart', $date->format('Y-m-d 00:00:00')); |
|
|
|
|
|
$query->setParameter('deliveryDateEnd', $date->modify('+1 day')->format('Y-m-d 00:00:00')); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (isset($params['mergeComplementaryOrderShops'])) { |
|
|
if (isset($params['mergeComplementaryOrderShops'])) { |