Loading src/Service/Interfaces/Product/ProductChildServiceInterface.php +8 −0 Original line number Diff line number Diff line Loading @@ -135,4 +135,12 @@ interface ProductChildServiceInterface */ public function getByIdListNew(array $idList, array $columns = ['*'], array $relations = ['color', 'size','packs.color']); /** * 获取某多个产品下的所有子产品 * * @param array $productIds 产品ID数组 * @param array $columns 列名数组 * @return array GroupBy('product_id') */ public function getListByProductIds(array $productIds, array $columns = ['*']): array; } Loading
src/Service/Interfaces/Product/ProductChildServiceInterface.php +8 −0 Original line number Diff line number Diff line Loading @@ -135,4 +135,12 @@ interface ProductChildServiceInterface */ public function getByIdListNew(array $idList, array $columns = ['*'], array $relations = ['color', 'size','packs.color']); /** * 获取某多个产品下的所有子产品 * * @param array $productIds 产品ID数组 * @param array $columns 列名数组 * @return array GroupBy('product_id') */ public function getListByProductIds(array $productIds, array $columns = ['*']): array; }