@Test public void findGroupsByPage() { Long id = mockData(); IPage<GroupDO> groups = groupService.getGroupPage(0, 10); assertTrue(groups.getTotal() > 0); assertTrue(groups.getRecords().size() > 0); assertTrue(groups.getCurrent() == 0); boolean anyMatch = groups.getRecords().stream().anyMatch(it -> it.getName().equals("测试分组12")); assertTrue(anyMatch); }
@Override public IPage<GroupDO> getGroupPage(long page, long count) { Page pager = new Page(page, count); return this.baseMapper.selectPage(pager, null); }
GroupServiceImpl extends ServiceImpl<GroupMapper, GroupDO> implements GroupService { @Override public IPage<GroupDO> getGroupPage(long page, long count) { Page pager = new Page(page, count); return this.baseMapper.selectPage(pager, null); } }
GroupServiceImpl extends ServiceImpl<GroupMapper, GroupDO> implements GroupService { @Override public IPage<GroupDO> getGroupPage(long page, long count) { Page pager = new Page(page, count); return this.baseMapper.selectPage(pager, null); }  }
GroupServiceImpl extends ServiceImpl<GroupMapper, GroupDO> implements GroupService { @Override public IPage<GroupDO> getGroupPage(long page, long count) { Page pager = new Page(page, count); return this.baseMapper.selectPage(pager, null); }  @Override List<GroupDO> getUserGroupsByUserId(Long userId); @Override List<Long> getUserGroupIdsByUserId(Long userId); @Override IPage<GroupDO> getGroupPage(long page, long count); @Override boolean checkGroupExistById(Long id); @Override GroupPermissionsBO getGroupAndPermissions(Long id); @Override boolean checkGroupExistByName(String name); @Override boolean checkIsRootByUserId(Long userId); @Override boolean deleteUserGroupRelations(Long userId, List<Long> deleteIds); @Override boolean addUserGroupRelations(Long userId, List<Long> addIds); }
GroupServiceImpl extends ServiceImpl<GroupMapper, GroupDO> implements GroupService { @Override public IPage<GroupDO> getGroupPage(long page, long count) { Page pager = new Page(page, count); return this.baseMapper.selectPage(pager, null); }  @Override List<GroupDO> getUserGroupsByUserId(Long userId); @Override List<Long> getUserGroupIdsByUserId(Long userId); @Override IPage<GroupDO> getGroupPage(long page, long count); @Override boolean checkGroupExistById(Long id); @Override GroupPermissionsBO getGroupAndPermissions(Long id); @Override boolean checkGroupExistByName(String name); @Override boolean checkIsRootByUserId(Long userId); @Override boolean deleteUserGroupRelations(Long userId, List<Long> deleteIds); @Override boolean addUserGroupRelations(Long userId, List<Long> addIds);  }