Commit 4dc9acf5 by wangnb

账户体系角色管理名称重复校验--think.wang

1 parent a2c4fd36
......@@ -186,7 +186,8 @@ public class MerchantRoleService {
*/
@SysLog(value = "保存角色数据", action = OperateType.ADD, module = "角色管理")
public Boolean insert(RoleInsertRequest request) {
RpcResponse<List<MerchantRoleResponse>> rpc = roleRemote.getListByNameRemote(request.getRoleName());
RpcResponse<List<MerchantRoleResponse>> rpc = roleRemote.getListByNameRemote(
request.getRoleName(), request.getMerchantId());
if(!rpc.isSuccess()){
throw new RpcServiceException(rpc.getException().getErrId(),rpc.getMessage());
}
......@@ -212,7 +213,8 @@ public class MerchantRoleService {
*/
@SysLog(value = "更新角色数据", action = OperateType.EDIT, module = "角色管理")
public Boolean update(RoleUpdateRequest request) {
RpcResponse<List<MerchantRoleResponse>> rpcRoleList = roleRemote.getListByNameRemote(request.getRoleName());
RpcResponse<List<MerchantRoleResponse>> rpcRoleList = roleRemote.getListByNameRemote(
request.getRoleName(), request.getMerchantId());
if(!rpcRoleList.isSuccess()){
throw new RpcServiceException(rpcRoleList.getException().getErrId(),rpcRoleList.getMessage());
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!