Commit 8e4043ae authored by 王源's avatar 王源
Browse files

优化原料rpc

parent 70090f97
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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