Commit d2aac708 authored by 侯贺政's avatar 侯贺政

修改

Signed-off-by: 侯贺政's avatarhouhezheng <houhezheng@romens.cn>
parent 198182a3
......@@ -19,6 +19,7 @@ class BranchScoreController extends BaseController
* tags={"门店&DC"},
* summary="门店评价列表(侯贺政)",
* description="门店服务打分列表",
* @OA\Parameter(name="page",in="query",description="分页页码",@OA\Schema(type="int")),
* @OA\Parameter(name="BRANCH_CODE",in="query",description="门店编号",@OA\Schema(type="string")),
* @OA\Parameter(name="ARTIFICIAL_NUMBER",in="query",description="导入人工号",@OA\Schema(type="string")),
* @OA\Response(response="200",description="
......@@ -123,7 +124,7 @@ class BranchScoreController extends BaseController
* @OA\Property(property="STORE_CONFIGURATION", type="float(12,2)",description="门店配置分数"),
* @OA\Property(property="ARTIFICIAL_NUMBER", type="string",description="操作人工号"),
* @OA\Property(property="ARTIFICIAL_NAME", type="string",description="操作人姓名必填"),
* example={"GUID":"123","BASIC_SERVICES":"10"}
* example={"GUID":"123","ARTIFICIAL_NUMBER":"0001","ARTIFICIAL_NAME":"李雷"}
* ),
* @OA\MediaType(
* mediaType="application/x-www-form-urlencoded",
......
......@@ -37,7 +37,7 @@ class ShopUserController extends BaseController
$params = Yii::$app->request->queryParams;
$model->attributes = $params;
if (!$model->validate()) {
throw new BadRequestHttpException('Your request probably have some mistake !');
throw new BadRequestHttpException(json_encode($model->errors));
}
$list = $model->employeeSearch($params);
......@@ -51,7 +51,7 @@ class ShopUserController extends BaseController
* @OA\GET(
* path="/backend/web/v1/shopuser/shop-users/employee-info",
* tags={"用户&员工接口"},
* summary="员工信息(侯贺政)",
* summary="员工信息详情(侯贺政)",
* description="某员工的信息详情",
* @OA\Parameter(name="id",in="query",required=true,description="员工GUID",@OA\Schema(type="string")),
* @OA\Response(response="200",description="
......@@ -73,7 +73,7 @@ class ShopUserController extends BaseController
$model = new ShopUser();
$model->GUID = $id;
if(!$model->validate()){
throw new BadRequestHttpException('Your request probably have some mistake !');
throw new BadRequestHttpException(json_encode($model->errors));
}
$data = $model->employeeInfo($id);
......
......@@ -57,7 +57,7 @@ class ShopBranchScore extends BaseModel
{
$scenarios = parent::scenarios();
//更新时,防止BRANCH_CODE,BRANCH_NAME被赋值更新
$scenarios['update'] = ['BASIC_SERVICES', 'QUALITY_ASSURANCE', 'OPERATION_MANAGEMENT', 'STORE_IMAGE', 'ELECTRICITY_MANAGEMENT', 'CUSTOMERE_VALUATION', 'STORE_CONFIGURATION','ARTIFICIAL_NUMBER', 'ARTIFICIAL_NAME', 'UPDATE_TIME'];
$scenarios['update'] = ['BASIC_SERVICES', 'QUALITY_ASSURANCE', 'OPERATION_MANAGEMENT', 'STORE_IMAGE', 'ELECTRICITY_MANAGEMENT', 'CUSTOMERE_VALUATION', 'STORE_CONFIGURATION', 'ARTIFICIAL_NUMBER', 'ARTIFICIAL_NAME', 'UPDATE_TIME'];
return $scenarios;
}
......
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