瀏覽代碼

Merge branch 'develop'

master^2
Fab 3 年之前
父節點
當前提交
a5ceca67af
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      ShopBundle/Repository/OrderShopRepository.php

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

@@ -312,6 +312,9 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt
$query = $this->findByMerchantQuery();
$query = $this->filterOrderValid($query);
$query->andWhere('e.weekNumber = :weekNumber');
$currentYear = new \DateTime();
$currentYear->setDate($currentYear->format('Y'), 1, 1);
$query->andWhere('e.validationDate >= :now')->setParameter('now', $currentYear);
$query->andWhere('e.mainOrderShop = false OR e.mainOrderShop IS NULL');
$query->setParameter('weekNumber', $weekNumber);
$query->orderBy('e.weekId', 'DESC');

Loading…
取消
儲存