Commit a3ef60d0 authored by 孙磊's avatar 孙磊

门店服务类目 信息

Signed-off-by: 孙磊's avatarsunlei <sunlei@romens.cn>
parent 613ac37f
...@@ -245,7 +245,6 @@ class BranchController extends BaseController ...@@ -245,7 +245,6 @@ class BranchController extends BaseController
* description="门店服务类目信息", * description="门店服务类目信息",
* summary="门店服务类目信息(孙磊)", * summary="门店服务类目信息(孙磊)",
* operationId="Department", * operationId="Department",
* @OA\Parameter(name="page",in="query",description="分页页码",@OA\Schema(type="int")),
* @OA\Response(response="200",description=" * @OA\Response(response="200",description="
* GUID:服务类目GUID, * GUID:服务类目GUID,
* ORG_GUID:组织机构号, * ORG_GUID:组织机构号,
...@@ -261,8 +260,8 @@ class BranchController extends BaseController ...@@ -261,8 +260,8 @@ class BranchController extends BaseController
public function actionBranchServices() public function actionBranchServices()
{ {
$model=new BranchServiceType(); $model=new BranchServiceType();
$info = $model->BranchServiceInfo('',''); $info = $model->BranchServiceInfoAll();
if (!$info->getModels()) { if (!$info) {
throw new BadRequestHttpException('未找到符合的门店服务类目信息'); throw new BadRequestHttpException('未找到符合的门店服务类目信息');
} }
return $info; return $info;
......
...@@ -85,6 +85,14 @@ class BranchServiceType extends BaseModel ...@@ -85,6 +85,14 @@ class BranchServiceType extends BaseModel
] ]
); );
} }
//门店-门店服务类目信息 全部
public function BranchServiceInfoAll()
{
$query = static::find()->select('GUID,NAME,CODE,THEME_COLOR,DESCRIPTION,CREATE_TIME')
->all();
return $query;
}
//门店服务类目导出 //门店服务类目导出
public function BranchServiceExport($params) public function BranchServiceExport($params)
{ {
......
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