Commit 1d5259eb by zhouhb

[+]角色修改

1 parent fad3015c
...@@ -3,10 +3,7 @@ package cn.com.glsx.merchants.controller; ...@@ -3,10 +3,7 @@ package cn.com.glsx.merchants.controller;
import cn.com.glsx.framework.core.exception.RpcServiceException; import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.framework.rop.response.RopResponse; import cn.com.glsx.framework.rop.response.RopResponse;
import cn.com.glsx.merchants.request.accounttype.AccountTypeSearchRequest; import cn.com.glsx.merchants.request.accounttype.AccountTypeSearchRequest;
import cn.com.glsx.merchants.request.role.RoleDeleteRequest; import cn.com.glsx.merchants.request.role.*;
import cn.com.glsx.merchants.request.role.RoleInsertRequest;
import cn.com.glsx.merchants.request.role.RoleListSearchRequest;
import cn.com.glsx.merchants.request.role.RoleUpdateRequest;
import cn.com.glsx.merchants.response.RoleResponse; import cn.com.glsx.merchants.response.RoleResponse;
import cn.com.glsx.merchants.service.MerchantRoleService; import cn.com.glsx.merchants.service.MerchantRoleService;
import cn.com.glsx.merchants.service.MerchantUserService; import cn.com.glsx.merchants.service.MerchantUserService;
...@@ -47,7 +44,7 @@ public class MerchantRoleController { ...@@ -47,7 +44,7 @@ public class MerchantRoleController {
*/ */
@ServiceMethod(method = "org.ore.api.role.list", needInSession = NeedInSessionType.NO) @ServiceMethod(method = "org.ore.api.role.list", needInSession = NeedInSessionType.NO)
@ApiOperation("角色管理获取列表接口") @ApiOperation("角色管理获取列表接口")
public RopResponse<List<RoleResponse>> getRoleList(RoleListSearchRequest request) { public RopResponse<List<RoleResponse>> getRoleList(RoleSearchRequest request) {
try { try {
return RopResponse.success(roleService.getRoleList(request)); return RopResponse.success(roleService.getRoleList(request));
} catch (RpcServiceException e) { } catch (RpcServiceException e) {
......
...@@ -144,10 +144,9 @@ public class MerchantRoleService { ...@@ -144,10 +144,9 @@ public class MerchantRoleService {
* @return * @return
*/ */
@SysLog(value = "查询角色列表数据", action = OperateType.QUERY, module = "角色管理") @SysLog(value = "查询角色列表数据", action = OperateType.QUERY, module = "角色管理")
public List<RoleResponse> getRoleList(RoleListSearchRequest request) { public List<RoleResponse> getRoleList(RoleSearchRequest request) {
MerchantRoleRequest typeRequest = new MerchantRoleRequest(); MerchantRoleRequest typeRequest = new MerchantRoleRequest();
typeRequest.setMerchantId(request.getMerchantId()); typeRequest.setMerchantId(request.getId());
typeRequest.setRoleName(request.getRoleName());
RpcResponse<List<MerchantRoleResponse>> response = RpcResponse<List<MerchantRoleResponse>> response =
roleRemote.getRoleListRemote(typeRequest); roleRemote.getRoleListRemote(typeRequest);
if(response.isSuccess()){ if(response.isSuccess()){
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!