Commit 57b9e563 authored by tangf's avatar tangf

修改查询角色权限请求实体

parent dfda0053
...@@ -79,7 +79,10 @@ public class RoleServiceImpl implements RoleService { ...@@ -79,7 +79,10 @@ public class RoleServiceImpl implements RoleService {
RoleAuthorityVo roleAuthorityVo = new RoleAuthorityVo(); RoleAuthorityVo roleAuthorityVo = new RoleAuthorityVo();
roleAuthorityVo.setAuthorityId(authorityPid); roleAuthorityVo.setAuthorityId(authorityPid);
roleAuthorityVo.setRoleId(roleId); roleAuthorityVo.setRoleId(roleId);
RoleAuthorityVo roleAuthorityVo1 = roleAuthorityDaoImpl.load(roleAuthorityVo, RoleAuthorityVo.class); RoleAuthorityGetReqVo roleAuthorityGetReqVo = new RoleAuthorityGetReqVo();
roleAuthorityGetReqVo.setRole(roleId);
roleAuthorityGetReqVo.setAuthority(authorityPid);
RoleAuthorityVo roleAuthorityVo1 = roleAuthorityDaoImpl.load(roleAuthorityGetReqVo, RoleAuthorityVo.class);
if (null == roleAuthorityVo1) { if (null == roleAuthorityVo1) {
roleAuthorityVo.setId(StringHelper.getNewID()); roleAuthorityVo.setId(StringHelper.getNewID());
roleAuthorityDaoImpl.create(roleAuthorityVo); roleAuthorityDaoImpl.create(roleAuthorityVo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment