1.取消查询用户列表分页

purchase
x_z 3 years ago
parent c0c936569c
commit 14e7564779

@ -262,11 +262,7 @@ public class AuthAdminController {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
}
List<AuthAdmin> hospitalUserList = authAdminService.getHospitalUserList(pageRequest);
PageInfo<AuthAdmin> pageInfo = new PageInfo<>(hospitalUserList);
PageSimpleResponse<AuthAdmin> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setList(pageInfo.getList());
pageSimpleResponse.setTotal(pageInfo.getTotal());
return ResultVOUtils.success(pageSimpleResponse);
return ResultVOUtils.success(hospitalUserList);
}

@ -118,10 +118,6 @@ public class AuthAdminServiceImpl implements AuthAdminService {
@Override
public List<AuthAdmin> getHospitalUserList(ListPageRequest pageRequest) {
//查询未被禁用的医院用户
if (pageRequest.getPage() != null) {
int offset = (pageRequest.getPage() - 1) * pageRequest.getLimit();
PageHelper.offsetPage(offset, pageRequest.getLimit());
}
return authAdminDao.selectHospitalUser();
}

Loading…
Cancel
Save