request->get(); $shopId = $get['shopId']??0; $sjId = $get['sjId']??0; //获取所有当前供应商的分类 (全部、常用) //根据分类组装分类下的花材信息 //中央ID $classIds = ItemClassClass::getGhsItemClassAll($this->mainId); // $where['sjId'] = $sjId; // $where['shopId'] = $shopId; $where['mainId'] = $this->mainId; $where['delStatus'] = 0; $itemInfoData = ProductClass::getAllByCondition($where,['actualSold'=>SORT_DESC,'inTurn'=>SORT_DESC],"*"); $itemInfoData = ProductClass::groupProductInfo($itemInfoData); $data = ProductService::assembleData($classIds, $itemInfoData, true); ShopService::totalViewPlus($shopId); util::success($data); } }