Commit a3ef60d0 authored by 孙磊's avatar 孙磊

门店服务类目 信息

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