Commit 8e4043ae authored by 王源's avatar 王源 🎧

优化原料rpc

parent 70090f97
...@@ -77,9 +77,10 @@ interface MaterialServiceInterface ...@@ -77,9 +77,10 @@ interface MaterialServiceInterface
* 获取产品对应颜色绑定的原料 * 获取产品对应颜色绑定的原料
* @param $productId * @param $productId
* @param array $colorIds 默认去重 * @param array $colorIds 默认去重
* @param bool $withMaterials
* @return array 默认keyBy('color_id') * @return array 默认keyBy('color_id')
*/ */
public function getProductColorMaterials($productId, array $colorIds); public function getProductColorMaterials($productId, array $colorIds, $withMaterials = false);
/** /**
* 获取维护完全原料数量的颜色id * 获取维护完全原料数量的颜色id
......
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