->all(); $pageCount = ceil($count/$pageSize); //分组查询得到品牌分类 $brand_name_query = ''; // $brand_name_query = self::find()->groupBy('brand_name')->select('brand_name')->where(['>','brand_name',''])->andWhere(['corp_id'=>$sid])->all(); if(count($brand_name_query)){ foreach ($brand_name_query as $b){ $brand_name_list[] = $b->brand_name; } }else{ $brand_name_list = ''; } //分组查询得到库存地址 $location_sql = 'select state.location from zfa_supply_'.$this_table_id.' as supply, zfa_supply_state_'.$this_table_id.' as state where supply.corp_id = '.$sid.' and supply.id = state.supply_id and state.location > ""
//分组查询得到品牌分类 $brand_name_query = ''; // $brand_name_query = self::find()->groupBy('brand_name')->select('brand_name')->where(['>','brand_name',''])->andWhere(['corp_id'=>$sid])->all(); if(count($brand_name_query)){ foreach ($brand_name_query as $b){ $brand_name_list[] = $b->brand_name; } }else{ $brand_name_list = ''; }
if($zfaUserInfo['usertype'] == 9){ $zfaSupply = new ZfaSupply100($id); }else{ $zfaSupply = new ZfaSupply($id); } $select_where['class_id'] = $goodsInfo['class_id']; $goodsList = $zfaSupply->getGoodsListByShopId($id,$keywords='',$pageSize,$page=0,$select_where); if(isset($goodsList['data'])){ if(count($goodsList['data'])){ foreach ($goodsList['data'] as &$goods1){ //得到文件图片 $goods1['filepath'] = '/images/search/img_noimg.gif'; //默认图片 if($goods1['image_id']){
$args = $this->controller->bindActionParams($this, $params); Yii::trace('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } }
} $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */
$parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); Yii::$app->controller = $oldController; return $result; } else { $id = $this->getUniqueId(); throw new InvalidRouteException('Unable to resolve the request "' . ($id === '' ? $route : $id . '/' . $route) . '".');
} try { // $userModel = new Tluser(); // $userModel->checkLogin(); Yii::trace("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } else { $response = $this->getResponse(); if ($result !== null) { $response->data = $result;
try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send();
$application->language='ru-RU'; } }else{ $application->language='zh-CN'; } $application->language='zh-CN'; $application->run();
$_GET = [ 'id' => '214299', 'gid' => '166866587', ];