Commit 5d701867 authored by 侯贺政's avatar 侯贺政

路径 命名空间 修改

Signed-off-by: 侯贺政's avatarhouhezheng <houhezheng@romens.cn>
parent 314dafd9
...@@ -11,7 +11,7 @@ return [ ...@@ -11,7 +11,7 @@ return [
'class'=>'yii\rest\UrlRule', 'class'=>'yii\rest\UrlRule',
'controller'=>[ 'controller'=>[
'swagger', 'swagger',
'v1/shop/branch/branch', 'v1/branch/branch',
'v1/rbacuser/rbac-user', 'v1/rbacuser/rbac-user',
'v1/shopuser/shop-user-membergrade', 'v1/shopuser/shop-user-membergrade',
'v1/shopuser/user-department', 'v1/shopuser/user-department',
......
...@@ -2,18 +2,18 @@ ...@@ -2,18 +2,18 @@
namespace backend\controllers\v1\branch; namespace backend\controllers\v1\branch;
use app\models\v1\shop\branch\ShopBranchScore; use app\models\v1\branch\ShopBranchScore;
use Yii; use Yii;
use backend\controllers\v1\BaseController; use backend\controllers\v1\BaseController;
use yii\web\BadRequestHttpException; use yii\web\BadRequestHttpException;
class BranchController extends BaseController class BranchController extends BaseController
{ {
public $modelClass='app\models\v1\shop\branch\ShopBranch'; public $modelClass='app\models\v1\branch\ShopBranch';
/** /**
* @OA\GET( * @OA\GET(
* path="/backend/web/v1/shop/branch/branches/branch-score-list", * path="/backend/web/v1/branch/branches/branch-score-list",
* tags={"门店&DC"}, * tags={"门店&DC"},
* summary="门店评价管理(侯贺政)", * summary="门店评价管理(侯贺政)",
* description="门店服务打分列表", * description="门店服务打分列表",
......
<?php <?php
namespace app\models\v1\shop\branch; namespace app\models\v1\branch;
use Yii; use Yii;
use app\models\v1\BaseModel; use app\models\v1\BaseModel;
...@@ -81,8 +81,7 @@ class ShopBranchScore extends BaseModel ...@@ -81,8 +81,7 @@ class ShopBranchScore extends BaseModel
{ {
$query = static::find()->alias('sbs') $query = static::find()->alias('sbs')
->select('sbs.GUID,sb.NAME as BRANCH_NAME,sbs.BRANCH_CODE,sbs.BASIC_SERVICES,sbs.QUALITY_ASSURANCE,sbs.OPERATION_MANAGEMENT,sbs.STORE_IMAGE,sbs.ELECTRICITY_MANAGEMENT,sbs.CUSTOMERE_VALUATION,sbs.STORE_CONFIGURATION,sbs.ARTIFICIAL_NUMBER,sbs.ARTIFICIAL_NAME,sbs.UPDATE_TIME,sb.SCORE') ->select('sbs.GUID,sb.NAME as BRANCH_NAME,sbs.BRANCH_CODE,sbs.BASIC_SERVICES,sbs.QUALITY_ASSURANCE,sbs.OPERATION_MANAGEMENT,sbs.STORE_IMAGE,sbs.ELECTRICITY_MANAGEMENT,sbs.CUSTOMERE_VALUATION,sbs.STORE_CONFIGURATION,sbs.ARTIFICIAL_NUMBER,sbs.ARTIFICIAL_NAME,sbs.UPDATE_TIME,sb.SCORE')
->leftJoin('shop_branch sb', 'sbs.BRANCH_CODE=sb.CODE') ->leftJoin('shop_branch sb', 'sbs.BRANCH_CODE=sb.CODE');
->where('1');
if (isset($params['BRANCH_CODE'])) { if (isset($params['BRANCH_CODE'])) {
$query->andfilterWhere(['like','sbs.BRANCH_CODE',$params['BRANCH_CODE']]); $query->andfilterWhere(['like','sbs.BRANCH_CODE',$params['BRANCH_CODE']]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment