Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
newShopBack
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
newshop
newShopBack
Commits
a3ef60d0
Commit
a3ef60d0
authored
Dec 02, 2019
by
孙磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店服务类目 信息
Signed-off-by:
sunlei
<
sunlei@romens.cn
>
parent
613ac37f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
BranchController.php
backend/controllers/v1/branch/BranchController.php
+2
-3
BranchServiceType.php
backend/models/v1/branch/BranchServiceType.php
+8
-0
No files found.
backend/controllers/v1/branch/BranchController.php
View file @
a3ef60d0
...
...
@@ -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
->
BranchServiceInfo
All
(
);
if
(
!
$info
)
{
throw
new
BadRequestHttpException
(
'未找到符合的门店服务类目信息'
);
}
return
$info
;
...
...
backend/models/v1/branch/BranchServiceType.php
View file @
a3ef60d0
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment