From 2da3b56f8ab1718bc1eb81736108a14a16beb16b Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 15 Oct 2024 16:06:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E6=9F=A5=E8=AF=A2=E9=A2=84=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=88=97=E8=A1=A8=E6=97=B6=E5=A2=9E=E5=8A=A0store=5Fi?= =?UTF-8?q?d=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为了更全面地展示预订单信息,我修改了BeforehandOrderLists类中的lists方法,添加了store_id字段到查询字段列表中。这样可以更好地支持与商店相关的信息检索和处理。 --- app/admin/lists/beforehand_order/BeforehandOrderLists.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/lists/beforehand_order/BeforehandOrderLists.php b/app/admin/lists/beforehand_order/BeforehandOrderLists.php index a8f777643..fa2d82b05 100644 --- a/app/admin/lists/beforehand_order/BeforehandOrderLists.php +++ b/app/admin/lists/beforehand_order/BeforehandOrderLists.php @@ -45,7 +45,7 @@ class BeforehandOrderLists extends BaseAdminDataLists implements ListsSearchInte public function lists(): array { return BeforehandOrder::where($this->searchWhere) - ->field(['id','order_id', 'uid','order_type','total_num','total_price','outbound_id','admin_id', 'pay_price', 'deduction_price','create_time', 'status', 'mark','warehousing_id']) + ->field(['id','order_id','store_id','uid','order_type','total_num','total_price','outbound_id','admin_id', 'pay_price', 'deduction_price','create_time', 'status', 'mark','warehousing_id']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select()->each(function ($item){