diff --git a/app/store/model/Goods.php b/app/store/model/Goods.php index 4b5e5238..0321db74 100644 --- a/app/store/model/Goods.php +++ b/app/store/model/Goods.php @@ -311,7 +311,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; }