Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meibuyu-rpc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
without authentication
meibuyu-rpc
Commits
5d1f9426
Commit
5d1f9426
authored
Jul 11, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
原料rpc添加获取指定品名下所有的原料数据,优化通过原料品名id列表获取原料品名数组
parent
cdd896e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
MaterialServiceInterface.php
src/Service/Interfaces/Product/MaterialServiceInterface.php
+10
-1
No files found.
src/Service/Interfaces/Product/MaterialServiceInterface.php
View file @
5d1f9426
...
@@ -35,13 +35,22 @@ interface MaterialServiceInterface
...
@@ -35,13 +35,22 @@ interface MaterialServiceInterface
*/
*/
public
function
getByCodeList
(
array
$codeList
,
array
$columns
=
[
'id'
]);
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列表获取原料品名数组
* 通过原料品名id列表获取原料品名数组
* @param array $idList 原料品名id的列表, 默认去重
* @param array $idList 原料品名id的列表, 默认去重
* @param bool $withMaterials 是否关联原料数据
* @param array $columns 原料品名表的字段,默认显示全部
* @param array $columns 原料品名表的字段,默认显示全部
* @return array 默认keyBy('id')
* @return array 默认keyBy('id')
*/
*/
public
function
getMaterialNamesByIdList
(
array
$idList
,
array
$columns
=
[
'*'
])
:
array
;
public
function
getMaterialNamesByIdList
(
array
$idList
,
$withMaterials
=
false
,
array
$columns
=
[
'*'
])
:
array
;
/**
/**
* 获取某原料品类下的所有原料品名
* 获取某原料品类下的所有原料品名
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment