Commit 70deb862 authored by Liu lu's avatar Liu lu

通过id列表获取产品数组---(组合产品颜色展示兼容) 主要用于坐标渲染

parent a0724f67
...@@ -115,4 +115,16 @@ interface ProductChildServiceInterface ...@@ -115,4 +115,16 @@ interface ProductChildServiceInterface
* @return array * @return array
*/ */
public function createChildrenProducts(array $childDetails): 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']);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment