From 5ab280a05fe9cc2f082179217345466ac3fcb968 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sun, 25 Aug 2024 16:34:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=BA=86=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E6=8E=92=E9=99=A4?= =?UTF-8?q?=E7=89=B9=E5=AE=9A=E9=97=A8=E5=BA=97=E7=BB=9F=E8=AE=A1=E7=9A=84?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/logic/statistic/WarehouseLogic.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/admin/logic/statistic/WarehouseLogic.php b/app/admin/logic/statistic/WarehouseLogic.php index 7ac2f2807..24d01a492 100644 --- a/app/admin/logic/statistic/WarehouseLogic.php +++ b/app/admin/logic/statistic/WarehouseLogic.php @@ -194,6 +194,11 @@ class WarehouseLogic extends BaseLogic if(isset($parmas['store_id']) && $parmas['store_id'] > 0){ $where[]=['store_id','=',$parmas['store_id']]; } + $store_arr=getenv('NO_STORE_STATISTICS'); + if($store_arr){ + $store_arr=explode(',',$store_arr); + $where[]=['store_id','not in',$store_arr]; + } $list = StoreBranchProduct::where($where)->page($parmas['page_no'], 15)->select() ->each(function ($item) { $item->remark = SystemStore::where('id', $item['store_id'])->value('name');