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
5c2e6f3b
Commit
5c2e6f3b
authored
Jul 13, 2020
by
jiangkebao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' of git.huaperfect.com:hwq/micro into test
parents
97394a51
5d1f9426
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
MaterialServiceInterface.php
src/Service/Interfaces/Product/MaterialServiceInterface.php
+10
-1
ProductServiceInterface.php
src/Service/Interfaces/Product/ProductServiceInterface.php
+8
-0
No files found.
src/Service/Interfaces/Product/MaterialServiceInterface.php
View file @
5c2e6f3b
...
...
@@ -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
;
/**
* 获取某原料品类下的所有原料品名
...
...
src/Service/Interfaces/Product/ProductServiceInterface.php
View file @
5c2e6f3b
...
...
@@ -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
);
}
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