ソースを参照

Merge branch 'develop'

master
Fab 4年前
コミット
e893bf1225
1個のファイルの変更8行の追加0行の削除
  1. +8
    -0
      ShopBundle/Repository/OrderShopRepository.php

+ 8
- 0
ShopBundle/Repository/OrderShopRepository.php ファイルの表示

@@ -177,6 +177,14 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt
$query->setParameter('deliveryDateEnd', $date->modify('+1 day')->format('Y-m-d 00:00:00'));
}

if(isset($params['deliveryDate'])) {
$query->andWhere('e.deliveryDate >= :deliveryDateStart');
$query->andWhere('e.deliveryDate < :deliveryDateEnd');
$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'])) {
$query->andWhere('e.mainOrderShop IS NULL');
$query->leftJoin('e.complementaryOrderShops', 'complementaryOrderShops');

読み込み中…
キャンセル
保存