Commit f7fdc1ec by xushihong

角色列表 搜素拥有权限的序列号对齐

parent dedc0dcc
......@@ -46,9 +46,6 @@ public class SysRoleServiceImpl implements SysRoleService{
Integer count = sysRoleDao.selectSysRoleCountByCondition(SysRole);
Integer testDataSize = data.size();
System.out.println(testDataSize);
//过滤permissmionName查询
if(SysRole.getPermissionName() != null){
for(int i = 0; i < count; i ++){
......@@ -77,6 +74,12 @@ public class SysRoleServiceImpl implements SysRoleService{
BaseModel rolePage = new BaseModel();
if(SysRole.getPermissionName() != null){
for(int i = 0; i < data.size(); i ++){
data.get(i).setRn(i+1);
}
}
if(SysRole.getRolename() != null){
rolePage.setCount(data.size());
}else{
......
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