Loading src/Service/Interfaces/Product/MaterialServiceInterface.php +2 −1 Original line number Diff line number Diff line Loading @@ -77,9 +77,10 @@ interface MaterialServiceInterface * 获取产品对应颜色绑定的原料 * @param $productId * @param array $colorIds 默认去重 * @param bool $withMaterials * @return array 默认keyBy('color_id') */ public function getProductColorMaterials($productId, array $colorIds); public function getProductColorMaterials($productId, array $colorIds, $withMaterials = false); /** * 获取维护完全原料数量的颜色id Loading Loading
src/Service/Interfaces/Product/MaterialServiceInterface.php +2 −1 Original line number Diff line number Diff line Loading @@ -77,9 +77,10 @@ interface MaterialServiceInterface * 获取产品对应颜色绑定的原料 * @param $productId * @param array $colorIds 默认去重 * @param bool $withMaterials * @return array 默认keyBy('color_id') */ public function getProductColorMaterials($productId, array $colorIds); public function getProductColorMaterials($productId, array $colorIds, $withMaterials = false); /** * 获取维护完全原料数量的颜色id Loading