Commit b7bca443 authored by 王源's avatar 王源 🎧

判断产品是否绑定原料品名

parent 7fb1a15c
......@@ -51,9 +51,16 @@ interface MaterialServiceInterface
public function getMaterialNamesByCategoryId($categoryId);
/**
* 获取产品判断的原料品名
* 判断产品是否绑定原料品名
* @param $productId
* @return array
* @return bool
*/
public function hasProductMaterialNames($productId): bool;
/**
* 获取产品绑定的原料品名
* @param $productId
* @return array keyBy('id')
*/
public function getProductMaterialNames($productId);
......
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