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
d003cdbc
Commit
d003cdbc
authored
Dec 02, 2019
by
侯贺政
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店配送方式列表
Signed-off-by:
houhezheng
<
houhezheng@romens.cn
>
parent
d76a41d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
BranchController.php
backend/controllers/v1/branch/BranchController.php
+1
-4
ShopTransportType.php
backend/models/v1/transport/ShopTransportType.php
+4
-10
No files found.
backend/controllers/v1/branch/BranchController.php
View file @
d003cdbc
...
...
@@ -273,11 +273,8 @@ class BranchController extends BaseController
* tags={"门店&DC"},
* description="门店配送方式信息",
* summary="门店配送方式信息(孙磊)",
* @OA\Parameter(name="page",in="query",description="分页页码",@OA\Schema(type="int")),
* @OA\Response(response="200",description="
* GUID:配送方式GUID,
* ORG_GUID:组织机构号,
* CODE:配送方式编号,
* NAME:配送方式名称,
* "),
* security={{"Authorization": {}}}
...
...
@@ -287,7 +284,7 @@ class BranchController extends BaseController
{
$model
=
new
ShopTransportType
;
$info
=
$model
->
BranchTransportInfo
();
if
(
!
$info
->
getModels
()
)
{
if
(
!
$info
)
{
throw
new
BadRequestHttpException
(
'未找到符合的门店门店配送方式'
);
}
return
$info
;
...
...
backend/models/v1/transport/ShopTransportType.php
View file @
d003cdbc
...
...
@@ -79,16 +79,10 @@ class ShopTransportType extends BaseModel
//门店-配送方式信息
public
function
BranchTransportInfo
()
{
$query
=
static
::
find
()
->
select
(
'GUID,NAME,CODE'
)
->
where
([
'STATE'
=>
1
]);
$query
=
static
::
find
()
->
select
(
'GUID,NAME'
)
->
where
([
'STATE'
=>
1
])
->
all
();
return
new
ActiveDataProvider
(
[
'query'
=>
$query
->
asArray
(),
'pagination'
=>
[
'pageSize'
=>
15
,
]
]
);
return
$query
;
}
}
\ No newline at end of file
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