Commit 5c2e6f3b authored by jiangkebao's avatar jiangkebao

Merge branch 'test' of git.huaperfect.com:hwq/micro into test

parents 97394a51 5d1f9426
......@@ -35,13 +35,22 @@ interface MaterialServiceInterface
*/
public function getByCodeList(array $codeList, array $columns = ['id']);
/**
* 获取指定品名下所有的原料数据
* @param array $nameIds 默认去重
* @param array $columns
* @return array 默认keyBy('material_name_id')
*/
public function getListByNameIds(array $nameIds, array $columns = ['*']);
/**
* 通过原料品名id列表获取原料品名数组
* @param array $idList 原料品名id的列表, 默认去重
* @param bool $withMaterials 是否关联原料数据
* @param array $columns 原料品名表的字段,默认显示全部
* @return array 默认keyBy('id')
*/
public function getMaterialNamesByIdList(array $idList, array $columns = ['*']): array;
public function getMaterialNamesByIdList(array $idList, $withMaterials = false, array $columns = ['*']): array;
/**
* 获取某原料品类下的所有原料品名
......
......@@ -116,4 +116,12 @@ interface ProductServiceInterface
*/
public function getReportPointById(int $id, array $relations = [], array $columns = ['id', 'hs_code', 'point']);
/**
* 获取申报要素数据
* @param array $idList 默认去重
* @param bool $groupByFlag
* @return array keyBy('id')
*/
public function getWithPoint(array $idList, $groupByFlag = false);
}
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