浏览代码

Correctif exports pesés

feature/export_comptable
Fab 4 年前
父节点
当前提交
f8a6ec6853
共有 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');

正在加载...
取消
保存