Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
scrm
/
rop-merchant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cd303ddb
authored
Aug 06, 2021
by
wangnb
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
账户体系账户类型、角色管理产品名添加--think.wang
1 parent
4805b8c0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
src/main/java/cn/com/glsx/merchants/response/ProductRelationResponse.java
src/main/java/cn/com/glsx/merchants/service/MerchantAccountTypeService.java
src/main/java/cn/com/glsx/merchants/service/MerchantRoleService.java
src/main/java/cn/com/glsx/merchants/response/ProductRelationResponse.java
View file @
cd303dd
...
@@ -21,6 +21,12 @@ public class ProductRelationResponse {
...
@@ -21,6 +21,12 @@ public class ProductRelationResponse {
private
Integer
productId
;
private
Integer
productId
;
/**
/**
* 产品名
*/
@ApiModelProperty
(
name
=
"productName"
,
notes
=
"产品名"
,
dataType
=
"String"
)
private
String
productName
;
/**
* 回选id列表
* 回选id列表
*/
*/
@ApiModelProperty
(
name
=
"idList"
,
notes
=
"回选id列表"
,
dataType
=
"List"
)
@ApiModelProperty
(
name
=
"idList"
,
notes
=
"回选id列表"
,
dataType
=
"List"
)
...
...
src/main/java/cn/com/glsx/merchants/service/MerchantAccountTypeService.java
View file @
cd303dd
...
@@ -193,6 +193,7 @@ public class MerchantAccountTypeService {
...
@@ -193,6 +193,7 @@ public class MerchantAccountTypeService {
ProductRelationResponse
relationResponse
=
new
ProductRelationResponse
();
ProductRelationResponse
relationResponse
=
new
ProductRelationResponse
();
relationResponse
.
setProductId
(
key
);
relationResponse
.
setProductId
(
key
);
List
<
AccountFunctionRelationResponse
>
list
=
map
.
get
(
key
);
List
<
AccountFunctionRelationResponse
>
list
=
map
.
get
(
key
);
relationResponse
.
setProductName
(
list
.
get
(
0
).
getProductName
());
List
<
Integer
>
idList
=
new
ArrayList
<>();
List
<
Integer
>
idList
=
new
ArrayList
<>();
list
.
stream
().
forEach
(
index
->{
list
.
stream
().
forEach
(
index
->{
if
(
index
.
getFunctionId
()
!=
null
&&
index
.
getFunctionId
()
>
0
){
if
(
index
.
getFunctionId
()
!=
null
&&
index
.
getFunctionId
()
>
0
){
...
...
src/main/java/cn/com/glsx/merchants/service/MerchantRoleService.java
View file @
cd303dd
...
@@ -96,6 +96,7 @@ public class MerchantRoleService {
...
@@ -96,6 +96,7 @@ public class MerchantRoleService {
ProductRelationResponse
relationResponse
=
new
ProductRelationResponse
();
ProductRelationResponse
relationResponse
=
new
ProductRelationResponse
();
relationResponse
.
setProductId
(
key
);
//产品id
relationResponse
.
setProductId
(
key
);
//产品id
List
<
RoleFunctionRelationResponse
>
list
=
functionMap
.
get
(
key
);
List
<
RoleFunctionRelationResponse
>
list
=
functionMap
.
get
(
key
);
relationResponse
.
setProductName
(
list
.
get
(
0
).
getProductName
());
List
<
Integer
>
idList
=
new
ArrayList
<>();
List
<
Integer
>
idList
=
new
ArrayList
<>();
list
.
stream
().
forEach
(
index
->{
list
.
stream
().
forEach
(
index
->{
//功能封装
//功能封装
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment