소스 검색

OrderShopRepositoryQuery : ajout méthode filterHasOrderProducts()

packProduct
Guillaume 2 년 전
부모
커밋
524e070a49
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. +5
    -3
      Repository/Order/OrderShopRepositoryQuery.php

+ 5
- 3
Repository/Order/OrderShopRepositoryQuery.php 파일 보기

@@ -38,7 +38,6 @@ class OrderShopRepositoryQuery extends AbstractRepositoryQuery
parent::__construct($repository, 'orderShop', $paginator);
}


public function selectSumStatTotalWithTax(): self
{
return $this
@@ -56,7 +55,6 @@ class OrderShopRepositoryQuery extends AbstractRepositoryQuery
);
}


public function selectSum(): self
{
$this->joinProduct();
@@ -290,6 +288,11 @@ class OrderShopRepositoryQuery extends AbstractRepositoryQuery
return $this->andWhere('.deliveryDate > :today')->setParameter('today', (new DateTime())->setTime(23, 59));
}

public function filterHasOrderProducts()
{
return $this->andWhere('orderShop.orderProducts IS NOT EMPTY');
}

public function selectOrderReductionCarts(): self
{
$this->joinOrderReductionCarts();
@@ -297,7 +300,6 @@ class OrderShopRepositoryQuery extends AbstractRepositoryQuery
return $this->addSelect('orderReductionCarts');
}


public function joinOrderProducts(bool $addSelect = false): self
{
if (!$this->isJoinOrderProducts) {

Loading…
취소
저장