Commit 02afb901 by wangnb

账户体系账户类型关系是否全选去掉--think.wang

1 parent d5eb47c5
...@@ -28,12 +28,6 @@ public class ProductRequest implements Serializable { ...@@ -28,12 +28,6 @@ public class ProductRequest implements Serializable {
private List<Integer> menuIdList; private List<Integer> menuIdList;
/** /**
* 部分选择菜单id列表
*/
@ApiModelProperty(name = "partSelectList", notes = "部分选择菜单id列表", dataType = "List")
private List<Integer> partSelectList;
/**
* 选中的功能id列表 * 选中的功能id列表
*/ */
@ApiModelProperty(name = "functionIdList", notes = "选中的功能id列表", dataType = "List") @ApiModelProperty(name = "functionIdList", notes = "选中的功能id列表", dataType = "List")
......
...@@ -33,12 +33,6 @@ public class AccountProductRelationResponse { ...@@ -33,12 +33,6 @@ public class AccountProductRelationResponse {
private List<Integer> menuIdList; private List<Integer> menuIdList;
/** /**
* 回选部分菜单id列表
*/
@ApiModelProperty(name = "partSelectList", notes = "回选部分菜单id列表", dataType = "List")
private List<Integer> partSelectList;
/**
* 回选功能id列表 * 回选功能id列表
*/ */
@ApiModelProperty(name = "functionIdList", notes = "回选功能id列表", dataType = "List") @ApiModelProperty(name = "functionIdList", notes = "回选功能id列表", dataType = "List")
......
...@@ -3,7 +3,6 @@ package cn.com.glsx.merchants.service; ...@@ -3,7 +3,6 @@ package cn.com.glsx.merchants.service;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination; import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse; import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.framework.core.exception.RpcServiceException; import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.merchants.contants.Contants;
import cn.com.glsx.merchants.convert.ConvertRequest; import cn.com.glsx.merchants.convert.ConvertRequest;
import cn.com.glsx.merchants.convert.ConvertResponse; import cn.com.glsx.merchants.convert.ConvertResponse;
import cn.com.glsx.merchants.enums.BusinessExceptionEnum; import cn.com.glsx.merchants.enums.BusinessExceptionEnum;
...@@ -216,7 +215,6 @@ public class MerchantAccountTypeService { ...@@ -216,7 +215,6 @@ public class MerchantAccountTypeService {
List<AccountFunctionRelationResponse> list = map.get(key); List<AccountFunctionRelationResponse> list = map.get(key);
relationResponse.setProductName(list.get(0).getProductName()); relationResponse.setProductName(list.get(0).getProductName());
List<Integer> menuIdList = new ArrayList<>(); List<Integer> menuIdList = new ArrayList<>();
List<Integer> partSelectList = new ArrayList<>();
List<Integer> functionIdList = new ArrayList<>(); List<Integer> functionIdList = new ArrayList<>();
list.stream().forEach(index ->{ list.stream().forEach(index ->{
if(index.getFunctionId() != null && index.getFunctionId() > 0){ if(index.getFunctionId() != null && index.getFunctionId() > 0){
...@@ -230,16 +228,11 @@ public class MerchantAccountTypeService { ...@@ -230,16 +228,11 @@ public class MerchantAccountTypeService {
} }
} }
} else{ } else{
if(Contants.IS_ALL_YES == index.getIsAll()){
menuIdList.add(index.getMenuId()); menuIdList.add(index.getMenuId());
} else if(Contants.IS_ALL_NO == index.getIsAll()){
partSelectList.add(index.getMenuId());
}
} }
}); });
relationResponse.setFunctionIdList(functionIdList); relationResponse.setFunctionIdList(functionIdList);
relationResponse.setMenuIdList(menuIdList); relationResponse.setMenuIdList(menuIdList);
relationResponse.setPartSelectList(partSelectList);
responseList.add(relationResponse); responseList.add(relationResponse);
} }
response.setResponseList(responseList); response.setResponseList(responseList);
...@@ -258,23 +251,12 @@ public class MerchantAccountTypeService { ...@@ -258,23 +251,12 @@ public class MerchantAccountTypeService {
List<AccountFunctionRelationRequest> functionList = new ArrayList<>(); List<AccountFunctionRelationRequest> functionList = new ArrayList<>();
requestList.stream().forEach(index ->{ requestList.stream().forEach(index ->{
List<Integer> menuIdList = index.getMenuIdList(); List<Integer> menuIdList = index.getMenuIdList();
List<Integer> partSelectList = index.getPartSelectList();
List<FunctionRequest> functionIdList = index.getFunctionIdList(); List<FunctionRequest> functionIdList = index.getFunctionIdList();
if(CollectionUtils.isNotEmpty(menuIdList)){ if(CollectionUtils.isNotEmpty(menuIdList)){
menuIdList.stream().forEach(menuId ->{ menuIdList.stream().forEach(menuId ->{
AccountFunctionRelationRequest relation = new AccountFunctionRelationRequest(); AccountFunctionRelationRequest relation = new AccountFunctionRelationRequest();
relation.setProductId(index.getProductId()); relation.setProductId(index.getProductId());
relation.setMenuId(menuId); relation.setMenuId(menuId);
relation.setIsAll(Contants.IS_ALL_YES);
functionList.add(relation);
});
}
if(CollectionUtils.isNotEmpty(partSelectList)){
partSelectList.stream().forEach(menuId ->{
AccountFunctionRelationRequest relation = new AccountFunctionRelationRequest();
relation.setProductId(index.getProductId());
relation.setMenuId(menuId);
relation.setIsAll(Contants.IS_ALL_NO);
functionList.add(relation); functionList.add(relation);
}); });
} }
...@@ -285,7 +267,6 @@ public class MerchantAccountTypeService { ...@@ -285,7 +267,6 @@ public class MerchantAccountTypeService {
relation.setMenuId(function.getMenuId()); relation.setMenuId(function.getMenuId());
relation.setFunctionId(function.getId()); relation.setFunctionId(function.getId());
relation.setFunctionValue(function.getFunctionValue()); relation.setFunctionValue(function.getFunctionValue());
relation.setIsAll(Contants.IS_ALL_YES);
functionList.add(relation); functionList.add(relation);
}); });
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!