From 9267218da062815271310bbe594ad386fb011d68 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 14 Nov 2024 15:41:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(admin):=20=E4=BF=AE=E5=A4=8D=E9=A2=84?= =?UTF-8?q?=E5=94=AE=E8=AE=A2=E5=8D=95=E6=9C=AA=E8=AE=BE=E7=BD=AE=E5=95=86?= =?UTF-8?q?=E5=93=81=E6=95=B0=E9=87=8F=E7=9A=84=E6=9F=A5=E8=AF=A2=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在查询未设置商品数量时,增加了对当前订单的筛选条件 - 确保只统计当前订单下的未设置商品,提高了数据准确性 --- 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 0d632cdd8..048d14830 100644 --- a/app/admin/lists/beforehand_order/BeforehandOrderLists.php +++ b/app/admin/lists/beforehand_order/BeforehandOrderLists.php @@ -83,7 +83,7 @@ class BeforehandOrderLists extends BaseAdminDataLists implements ListsSearchInte } } if($item->msg==''){ - $count=BeforehandOrderCartInfo::where('is_buyer',0)->count('id'); + $count=BeforehandOrderCartInfo::where('is_buyer',0)->where('bhoid',$item['id'])->count('id'); if($count>0){ $item->msg='有'.$count.'个商品未设置'; }