@Test public void getGroupPage() { GroupDO group1 = GroupDO.builder().name("测试分组12").info("just for test").build(); GroupDO group2 = GroupDO.builder().name("测试分组11").info("just for test").build(); groupMapper.insert(group1); groupMapper.insert(group2); IPage<GroupDO> iPage = adminService.getGroupPage(0L, 10L); assertTrue(iPage.getTotal() > 0); assertTrue(iPage.getCurrent() == 0); assertTrue(iPage.getSize() == 10); boolean anyMatch = iPage.getRecords().stream().anyMatch(it -> it.getName().equals("测试分组12")); assertTrue(anyMatch); }
@Override public IPage<GroupDO> getGroupPage(Long page, Long count) { IPage<GroupDO> iPage = groupService.getGroupPage(page, count); return iPage; }
AdminServiceImpl implements AdminService { @Override public IPage<GroupDO> getGroupPage(Long page, Long count) { IPage<GroupDO> iPage = groupService.getGroupPage(page, count); return iPage; } }
AdminServiceImpl implements AdminService { @Override public IPage<GroupDO> getGroupPage(Long page, Long count) { IPage<GroupDO> iPage = groupService.getGroupPage(page, count); return iPage; }  }
AdminServiceImpl implements AdminService { @Override public IPage<GroupDO> getGroupPage(Long page, Long count) { IPage<GroupDO> iPage = groupService.getGroupPage(page, count); return iPage; }  @Override IPage<UserDO> getUserPageByGroupId(Long groupId, Long count, Long page); @Override boolean changeUserPassword(Long id, ResetPasswordDTO dto); @Transactional @Override boolean deleteUser(Long id); @Override boolean updateUserInfo(Long id, UpdateUserInfoDTO validator); @Override IPage<GroupDO> getGroupPage(Long page, Long count); @Override GroupPermissionsBO getGroup(Long id); @Transactional @Override boolean createGroup(NewGroupDTO dto); @Override boolean updateGroup(Long id, UpdateGroupDTO dto); @Override boolean deleteGroup(Long id); @Override boolean dispatchPermission(DispatchPermissionDTO dto); @Override boolean dispatchPermissions(DispatchPermissionsDTO dto); @Override boolean removePermissions(RemovePermissionsDTO dto); @Override List<GroupDO> getAllGroups(); @Override List<PermissionDO> getAllPermissions(); @Override Map<String, List<PermissionDO>> getAllStructualPermissions(); }
AdminServiceImpl implements AdminService { @Override public IPage<GroupDO> getGroupPage(Long page, Long count) { IPage<GroupDO> iPage = groupService.getGroupPage(page, count); return iPage; }  @Override IPage<UserDO> getUserPageByGroupId(Long groupId, Long count, Long page); @Override boolean changeUserPassword(Long id, ResetPasswordDTO dto); @Transactional @Override boolean deleteUser(Long id); @Override boolean updateUserInfo(Long id, UpdateUserInfoDTO validator); @Override IPage<GroupDO> getGroupPage(Long page, Long count); @Override GroupPermissionsBO getGroup(Long id); @Transactional @Override boolean createGroup(NewGroupDTO dto); @Override boolean updateGroup(Long id, UpdateGroupDTO dto); @Override boolean deleteGroup(Long id); @Override boolean dispatchPermission(DispatchPermissionDTO dto); @Override boolean dispatchPermissions(DispatchPermissionsDTO dto); @Override boolean removePermissions(RemovePermissionsDTO dto); @Override List<GroupDO> getAllGroups(); @Override List<PermissionDO> getAllPermissions(); @Override Map<String, List<PermissionDO>> getAllStructualPermissions();  }