Commit cd303ddb by wangnb

账户体系账户类型、角色管理产品名添加--think.wang

1 parent 4805b8c0
...@@ -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")
......
...@@ -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){
......
...@@ -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 ->{
//功能封装 //功能封装
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!