@Test public void checkGroupExistById() { GroupDO group = mockData1(); boolean exist = groupService.checkGroupExistById(group.getId()); assertTrue(exist); }
@Override public boolean checkGroupExistById(Long id) { return this.baseMapper.selectCountById(id) > 0; }
GroupServiceImpl extends ServiceImpl<GroupMapper, GroupDO> implements GroupService { @Override public boolean checkGroupExistById(Long id) { return this.baseMapper.selectCountById(id) > 0; } }
GroupServiceImpl extends ServiceImpl<GroupMapper, GroupDO> implements GroupService { @Override public boolean checkGroupExistById(Long id) { return this.baseMapper.selectCountById(id) > 0; }  }
GroupServiceImpl extends ServiceImpl<GroupMapper, GroupDO> implements GroupService { @Override public boolean checkGroupExistById(Long id) { return this.baseMapper.selectCountById(id) > 0; }  @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 boolean checkGroupExistById(Long id) { return this.baseMapper.selectCountById(id) > 0; }  @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);  }