Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meibuyu-micro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
without authentication
meibuyu-micro
Commits
7507c93a
Commit
7507c93a
authored
Jun 29, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品服务品名方法添加申报要素关联
parent
06b05c1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ProductServiceInterface.php
src/Service/Interfaces/Product/ProductServiceInterface.php
+4
-2
No files found.
src/Service/Interfaces/Product/ProductServiceInterface.php
View file @
7507c93a
...
...
@@ -76,9 +76,10 @@ interface ProductServiceInterface
* 通过id数组获取品名列表
* @param array $ids 默认去重
* @param array $columns
* @param array $relations ['report_points']
* @return array 默认keyBY('id')
*/
public
function
getProductNamesByIds
(
array
$ids
,
array
$columns
=
[
'id'
,
'name'
,
'en_name'
])
:
array
;
public
function
getProductNamesByIds
(
array
$ids
,
array
$columns
=
[
'id'
,
'name'
,
'en_name'
]
,
$relations
=
[]
)
:
array
;
/**
* 通过id获取品类
...
...
@@ -92,8 +93,9 @@ interface ProductServiceInterface
* 通过id获取品名
* @param int $id
* @param array $columns
* @param array $relations ['report_points']
* @return array|null
*/
public
function
getProductNameById
(
int
$id
,
array
$columns
=
[
'id'
,
'name'
,
'en_name'
]);
public
function
getProductNameById
(
int
$id
,
array
$columns
=
[
'id'
,
'name'
,
'en_name'
]
,
$relations
=
[]
);
}
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