@@ -45,6 +45,9 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt | |||
->setParameter('dateEnd', $dateEnd) | |||
; | |||
$query->leftJoin('e.orderStatusHistories', 'orderStatusHistories') | |||
->andWhere('SIZE(e.orderStatusHistories) > 0') ; | |||
return $query->getQuery()->getResult() ; | |||
} | |||