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
80b39412
Commit
80b39412
authored
Jun 08, 2020
by
梁俊杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增支持根据平台子sku获取平台产品功能
parent
f4b90596
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
PlatformProductChildServiceInterface.php
...terfaces/Product/PlatformProductChildServiceInterface.php
+22
-0
No files found.
src/Service/Interfaces/Product/PlatformProductChildServiceInterface.php
View file @
80b39412
...
...
@@ -30,4 +30,26 @@ interface PlatformProductChildServiceInterface
*/
public
function
getByIdList
(
array
$idList
,
array
$relations
=
[]
,
$columns
=
[
'id'
,
'platform_product_id'
,
'product_child_id'
,
'platform_product_child_sku'
,
'asin'
,
'fnsku'
,
'is_sale'
])
:
array
;
/**
* 获取单个数据
* @param string $sku 平台子产品sku
* @param int $siteId 平台子产品所属站点
* @param array $relations 平台子产品的关联关系,支持:["platform_product","product_child"]
* @param array $columns 平台子产品表的字段,默认['id','platform_product_id','product_child_id','platform_product_child_sku','asin','fnsku','is_sale']
* @return array
*/
public
function
getBySku
(
$sku
,
$siteId
,
array
$relations
=
[]
,
$columns
=
[
'id'
,
'platform_product_id'
,
'product_child_id'
,
'platform_product_child_sku'
,
'asin'
,
'fnsku'
,
'is_sale'
])
:
array
;
/**
* 通过sku列表获取平台子产品数组
* @param array $skuList 平台子产品sku的列表
* @param int $siteId 平台子产品所属站点
* @param array $relations 平台子产品的关联关系,支持:["platform_product","product_child"]
* @param array $columns 平台子产品表的字段,默认['id','platform_product_id','product_child_id','platform_product_child_sku','asin','fnsku','is_sale']
* @return array
*/
public
function
getBySkuList
(
array
$skuList
,
$siteId
,
array
$relations
=
[]
,
$columns
=
[
'id'
,
'platform_product_id'
,
'product_child_id'
,
'platform_product_child_sku'
,
'asin'
,
'fnsku'
,
'is_sale'
])
:
array
;
}
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