浏览代码

OrderShopRepository : ajout de weekNumber

feature/export_comptable
Guillaume 4 年前
父节点
当前提交
fafee2150d
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      ShopBundle/Repository/OrderShopRepository.php

+ 4
- 0
ShopBundle/Repository/OrderShopRepository.php 查看文件

@@ -142,6 +142,10 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt
$query->andWhere('e.' . $params['dateField'] . ' <= :dateEnd')->setParameter('dateEnd', $params['dateEnd']);
}

if (isset($params['weekNumber'])) {
$query->andWhere('e.weekNumber = :weekNumber')->setParameter('weekNumber', $params['weekNumber']);
}

if (isset($params['isCart'])) {
$query = $this->filterOrderCart($query);
}

正在加载...
取消
保存