浏览代码

weekId error

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

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

@@ -243,7 +243,7 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt
$query->andWhere('e.weekNumber = :weekNumber');
$query->andWhere('e.mainOrderShop = false OR e.mainOrderShop IS NULL');
$query->setParameter('weekNumber', $weekNumber);
$query->orderBy('e.validationDate', 'DESC');
$query->orderBy('e.weekId', 'DESC');
$query->setMaxResults(1);

return $query->getQuery()->getOneOrNullResult();

正在加载...
取消
保存