Search in sources :

Example 6 with RoleVO

use of com.megagao.production.ssm.domain.vo.RoleVO in project production_ssm by megagao.

the class RoleServiceImpl method findByRoleNameAndId.

@Override
public List<RoleVO> findByRoleNameAndId(String rolename, String id) throws Exception {
    SysRoleExample example = new SysRoleExample();
    SysRoleExample.Criteria criteria = example.createCriteria();
    criteria.andRoleNameEqualTo(rolename);
    if (id != null) {
        criteria.andRoleIdNotEqualTo(id);
    }
    List<RoleVO> sysRoleList = sysRoleMapper.selectByExample(example);
    return sysRoleList;
}
Also used : RoleVO(com.megagao.production.ssm.domain.vo.RoleVO) SysRoleExample(com.megagao.production.ssm.domain.authority.SysRoleExample)

Aggregations

RoleVO (com.megagao.production.ssm.domain.vo.RoleVO)6 PageInfo (com.github.pagehelper.PageInfo)3 EUDataGridResult (com.megagao.production.ssm.domain.customize.EUDataGridResult)3 SysRoleExample (com.megagao.production.ssm.domain.authority.SysRoleExample)2 SysPermission (com.megagao.production.ssm.domain.authority.SysPermission)1 SysUser (com.megagao.production.ssm.domain.authority.SysUser)1 SysUserRole (com.megagao.production.ssm.domain.authority.SysUserRole)1 SysUserRoleExample (com.megagao.production.ssm.domain.authority.SysUserRoleExample)1 ActiveUser (com.megagao.production.ssm.domain.customize.ActiveUser)1 AuthenticationException (org.apache.shiro.authc.AuthenticationException)1 SimpleAuthenticationInfo (org.apache.shiro.authc.SimpleAuthenticationInfo)1