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
1733a716
Commit
1733a716
authored
Jul 01, 2020
by
jiangkebao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.huaperfect.com:hwq/micro
parents
d1a1536c
71549e48
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
9 deletions
+29
-9
MaterialServiceInterface.php
src/Service/Interfaces/Product/MaterialServiceInterface.php
+7
-0
PlatformProductServiceInterface.php
...ce/Interfaces/Product/PlatformProductServiceInterface.php
+0
-7
ProductServiceInterface.php
src/Service/Interfaces/Product/ProductServiceInterface.php
+22
-2
No files found.
src/Service/Interfaces/Product/MaterialServiceInterface.php
View file @
1733a716
...
@@ -43,4 +43,11 @@ interface MaterialServiceInterface
...
@@ -43,4 +43,11 @@ interface MaterialServiceInterface
*/
*/
public
function
getMaterialNamesByIdList
(
array
$idList
,
array
$columns
=
[
'*'
])
:
array
;
public
function
getMaterialNamesByIdList
(
array
$idList
,
array
$columns
=
[
'*'
])
:
array
;
/**
* 获取某原料品类下的所有原料品名
* @param $categoryId
* @return array
*/
public
function
getMaterialNamesByCategoryId
(
$categoryId
);
}
}
src/Service/Interfaces/Product/PlatformProductServiceInterface.php
View file @
1733a716
...
@@ -41,11 +41,4 @@ interface PlatformProductServiceInterface
...
@@ -41,11 +41,4 @@ interface PlatformProductServiceInterface
*/
*/
public
function
getWithPoint
(
array
$idList
,
$groupByFlag
=
false
);
public
function
getWithPoint
(
array
$idList
,
$groupByFlag
=
false
);
/**
* 获取全部平台产品状态列表
* @param array $columns 默认['id', 'name']
* @return array
*/
public
function
platformProductStatus
(
array
$columns
=
[
'id'
,
'name'
])
:
array
;
}
}
src/Service/Interfaces/Product/ProductServiceInterface.php
View file @
1733a716
...
@@ -76,9 +76,10 @@ interface ProductServiceInterface
...
@@ -76,9 +76,10 @@ interface ProductServiceInterface
* 通过id数组获取品名列表
* 通过id数组获取品名列表
* @param array $ids 默认去重
* @param array $ids 默认去重
* @param array $columns
* @param array $columns
* @param array $relations ['report_points']
* @return array 默认keyBY('id')
* @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获取品类
* 通过id获取品类
...
@@ -92,8 +93,27 @@ interface ProductServiceInterface
...
@@ -92,8 +93,27 @@ interface ProductServiceInterface
* 通过id获取品名
* 通过id获取品名
* @param int $id
* @param int $id
* @param array $columns
* @param array $columns
* @param array $relations ['report_points']
* @return array|null
* @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
=
[]);
/**
* 通过id数组获取申报要素列表
* @param array $ids 默认去重
* @param array $columns
* @param array $relations ['product_name', 'ingredient']
* @return array 默认keyBY('id')
*/
public
function
getReportPointsByIds
(
array
$ids
,
$relations
=
[],
array
$columns
=
[
'id'
,
'hs_code'
,
'point'
])
:
array
;
/**
* 通过id获取申报要素
* @param int $id
* @param array $columns
* @param array $relations ['product_name', 'ingredient']
* @return array|null
*/
public
function
getReportPointById
(
int
$id
,
$relations
=
[],
array
$columns
=
[
'id'
,
'hs_code'
,
'point'
]);
}
}
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