修复业务线分页问题
This commit is contained in:
parent
d672dd8d61
commit
4913398650
|
|
@ -65,7 +65,7 @@ public class AuthRoleServiceImpl extends Service implements AuthRoleService {
|
|||
List<AuthRolePO> authRolePOS = getAuthRoleMapper().list(param);
|
||||
int total = authRolePOS.size();
|
||||
|
||||
List<AuthRoleDTO> collect = SalaryPageUtil.subList(param.getCurrent(), param.getPageSize(), authRolePOS)
|
||||
List<AuthRoleDTO> list = SalaryPageUtil.subList(param.getCurrent(), param.getPageSize(), authRolePOS)
|
||||
.stream().map(po -> {
|
||||
Long roleId = po.getId();
|
||||
AuthMemberQueryParam roleQueryParam = AuthMemberQueryParam.builder().roleId(roleId).build();
|
||||
|
|
@ -84,7 +84,8 @@ public class AuthRoleServiceImpl extends Service implements AuthRoleService {
|
|||
.resources(authResources.size())
|
||||
.build();
|
||||
}).collect(Collectors.toList());
|
||||
PageInfo<AuthRoleDTO> pageInfo = SalaryPageUtil.buildPage(param.getCurrent(), param.getPageSize(), collect, AuthRoleDTO.class);
|
||||
PageInfo<AuthRoleDTO> pageInfo = SalaryPageUtil.buildPage(param.getCurrent(), param.getPageSize(), AuthRoleDTO.class);
|
||||
pageInfo.setList(list);
|
||||
pageInfo.setTotal(total);
|
||||
return pageInfo;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue