From 5f6bb94f1cc5f6864e2bd49bec738b64ad63549d Mon Sep 17 00:00:00 2001 From: zyh Date: Thu, 5 Sep 2024 11:08:51 +0800 Subject: [PATCH] 123 --- app/store/model/Goods.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/store/model/Goods.php b/app/store/model/Goods.php index d05df1a6..74c3fb53 100644 --- a/app/store/model/Goods.php +++ b/app/store/model/Goods.php @@ -312,7 +312,8 @@ class Goods extends GoodsModel public function getGoodsGroundingTotal(array $where = []): int { $detail = StoreModel::where('status',1)->find(); - $list = $this->where($where)->where('is_delete', '=', 0)->whereIn('channel',$detail['open_channel'])->where('status','=',10)->count(); + $list = $this->where($where)->where('is_delete', '=', 0)//->whereIn('channel',$detail['open_channel']) + ->where('status','=',10)->count(); return $list; }