Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meibuyu-rpc
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
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
without authentication
meibuyu-rpc
Commits
70deb862
Commit
70deb862
authored
Mar 13, 2023
by
Liu lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通过id列表获取产品数组---(组合产品颜色展示兼容) 主要用于坐标渲染
parent
a0724f67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
ProductChildServiceInterface.php
...rvice/Interfaces/Product/ProductChildServiceInterface.php
+12
-0
No files found.
src/Service/Interfaces/Product/ProductChildServiceInterface.php
View file @
70deb862
...
...
@@ -115,4 +115,16 @@ interface ProductChildServiceInterface
* @return array
*/
public
function
createChildrenProducts
(
array
$childDetails
)
:
array
;
/**
* 通过id列表获取产品数组---(组合产品颜色展示兼容) 主要用于坐标渲染
* @param array $idList 子SKUid的列表, 默认去重
* @param array $columns 子SKU表的字段,默认显示全部
* @param array $relations 子SKU的关联关系,可传入['brand', 'category', 'product_name', 'images', 'cost', 'weight', 'packs']
* @author Liu lu
* date 2023-03-13
*/
public
function
getByIdListNew
(
array
$idList
,
array
$columns
=
[
'*'
],
array
$relations
=
[
'color'
,
'size'
,
'packs.color'
]);
}
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