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
a16fb6d2
Commit
a16fb6d2
authored
May 15, 2020
by
梁俊杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
原料模块服务接口修正
parent
b1f44d27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
MaterialServiceInterface.php
src/Service/Interfaces/MaterialServiceInterface.php
+22
-3
No files found.
src/Service/Interfaces/MaterialServiceInterface.php
View file @
a16fb6d2
...
...
@@ -28,6 +28,14 @@ interface MaterialServiceInterface
*/
public
function
getByIdList
(
array
$idList
,
array
$relations
=
[],
array
$columns
=
[
'*'
])
:
array
;
/**
* 通过原料品名id列表获取原料数组
* @param int $materialNameId 原料品名id
* @param array $relations 原料的关联关系,支持["material_name","color"]
* @param array $columns 原料表的字段,默认显示全部
* @return array
*/
public
function
getByMaterialNameId
(
array
$materialNameId
,
array
$relations
=
[],
array
$columns
=
[
'*'
])
:
array
;
/**
* 通过原料列表
...
...
@@ -57,6 +65,15 @@ interface MaterialServiceInterface
*/
public
function
getMaterialNameByIdList
(
array
$idList
,
array
$relations
=
[],
array
$columns
=
[
'*'
])
:
array
;
/**
* 通过原料类型id列表获取原料品名数组
* @param int $materialNameCategoryId 原料类型id
* @param array $relations 原料的关联关系,支持["material_name_category", "materials"]
* @param array $columns 原料品名表的字段,默认显示全部
* @return array
*/
public
function
getMaterialNameByMaterialNameCategoryId
(
array
$materialNameCategoryId
,
array
$relations
=
[],
array
$columns
=
[
'*'
])
:
array
;
/**
* 通过原料品名列表
* @param int $page 第几页数据,默认:1
...
...
@@ -68,15 +85,17 @@ interface MaterialServiceInterface
public
function
getMaterialNamelist
(
$page
=
1
,
array
$relations
=
[],
$pageSize
=
15
,
array
$columns
=
[
'*'
])
:
array
;
/** 获取原料类型
/**
根据id
获取原料类型
* @param int $materialNameCategoryId 原料类型编号
* @param array $relations原料类型的关联关系,支持 ["material_name"]
* @return array
*/
public
function
getMaterialNameCategory
(
$materialNameCategoryId
)
:
array
;
public
function
getMaterialNameCategory
ById
(
$materialNameCategoryId
,
array
$relations
=
[]
)
:
array
;
/**
* 获取全部原料类型
* @param array $relations原料类型的关联关系,支持 ["material_name"]
* @return array
*/
public
function
materialNameCategories
()
:
array
;
public
function
materialNameCategories
(
array
$relations
=
[]
)
:
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