芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/airport-back/components/BaseActiveQuery.php
params['branch_id'])?Yii::$app->params['branch_id']:false; if($branch_id){ $this->andWhere(['branch_id' => $branch_id]); } } public function where($condition, $params = []) { $branch_id=isset(Yii::$app->params['branch_id'])?Yii::$app->params['branch_id']:false; if($branch_id){ if (is_array($condition)) { $condition = array_merge( $condition,['branch_id' => $branch_id]); } else { $this->andWhere(['branch_id' => $branch_id]); } } return parent::where($condition, $params); } } ?>