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;
}
Aggregations