Commit 7507c93a authored by 王源's avatar 王源 🎧

产品服务品名方法添加申报要素关联

parent 06b05c1e
......@@ -76,9 +76,10 @@ interface ProductServiceInterface
* 通过id数组获取品名列表
* @param array $ids 默认去重
* @param array $columns
* @param array $relations ['report_points']
* @return array 默认keyBY('id')
*/
public function getProductNamesByIds(array $ids, array $columns = ['id', 'name', 'en_name']): array;
public function getProductNamesByIds(array $ids, array $columns = ['id', 'name', 'en_name'], $relations = []): array;
/**
* 通过id获取品类
......@@ -92,8 +93,9 @@ interface ProductServiceInterface
* 通过id获取品名
* @param int $id
* @param array $columns
* @param array $relations ['report_points']
* @return array|null
*/
public function getProductNameById(int $id, array $columns = ['id', 'name', 'en_name']);
public function getProductNameById(int $id, array $columns = ['id', 'name', 'en_name'], $relations = []);
}
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