From b36ec54841d23836421dcbd503f0c66124e39b9c Mon Sep 17 00:00:00 2001 From: denghy Date: Mon, 18 Mar 2019 09:28:52 +0800 Subject: [PATCH] currentModel --- app/Domains/Real/Services/OrderService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Domains/Real/Services/OrderService.php b/app/Domains/Real/Services/OrderService.php index fa126f7b..f6cde00f 100644 --- a/app/Domains/Real/Services/OrderService.php +++ b/app/Domains/Real/Services/OrderService.php @@ -81,7 +81,7 @@ class OrderService extends Service throw new NotAllowedException("当前请求数据量过大,请筛选过滤后查询"); } - $cards = $this->orderCardPartitionRepository->withVirtual($conditions)->model->get(); + $cards = $this->orderCardPartitionRepository->withVirtual($conditions)->currentModel()->get(); $tmpCards = $cards->groupBy('virtual_order_id');