From 8045c84b1cc834595f3e98dc30b9dad36e394f58 Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Sat, 22 Jun 2024 11:05:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/store/lists/store_order/StoreOrderLists.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/store/lists/store_order/StoreOrderLists.php b/app/store/lists/store_order/StoreOrderLists.php index dd36d7c29..bfb821a4e 100644 --- a/app/store/lists/store_order/StoreOrderLists.php +++ b/app/store/lists/store_order/StoreOrderLists.php @@ -55,7 +55,7 @@ class StoreOrderLists extends BaseAdminDataLists implements ListsSearchInterface $this->searchWhere[] = ['pay_type','in',[7,3,18]]; } return StoreOrder::where($this->searchWhere) - ->field(['id', 'order_id', 'pay_price', 'pay_time', 'pay_type', 'status','paid']) + ->field(['id', 'order_id', 'pay_price', 'pay_time', 'pay_type', 'status','paid','total_num']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select()->each(function ($item) use ($store_id) { @@ -77,7 +77,6 @@ class StoreOrderLists extends BaseAdminDataLists implements ListsSearchInterface } else { $item['product_info'] = []; } - $item['total_count'] = count($item['product_info']); return $item; }) ->toArray();