瀏覽代碼

[Backend] Ordre des tickets sur le tableau de bord

master
Guillaume 4 年之前
父節點
當前提交
d3e69e80f1
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      ShopBundle/Repository/TicketRepository.php

+ 1
- 0
ShopBundle/Repository/TicketRepository.php 查看文件

@@ -27,6 +27,7 @@ class TicketRepository extends BaseRepository implements DefaultRepositoryInterf
{
$query = $this->findByMerchantQuery() ;
$query->andWhere('e.status IN (:statusOpen)')->setParameter('statusOpen', [Ticket::TICKET_STATUS_OPEN, Ticket::TICKET_STATUS_BEING_PROCESSED]) ;
$query->addOrderBy('e.id', 'DESC') ;
return $query->getQuery()->getResult() ;
}
}

Loading…
取消
儲存