@Test public void getPermissionByGroupIds() { Long id = mockData(); List<PermissionDO> permissions = permissionService.getPermissionByGroupIds(Collections.singletonList(id)); assertTrue(permissions.size() > 0); boolean anyMatch = permissions.stream().anyMatch(permission -> permission.getName().equals("权限2")); assertTrue(anyMatch); }
@Override public List<PermissionDO> getPermissionByGroupIds(List<Long> groupIds) { return this.baseMapper.selectPermissionsByGroupIds(groupIds); }
PermissionServiceImpl extends ServiceImpl<PermissionMapper, PermissionDO> implements PermissionService { @Override public List<PermissionDO> getPermissionByGroupIds(List<Long> groupIds) { return this.baseMapper.selectPermissionsByGroupIds(groupIds); } }
PermissionServiceImpl extends ServiceImpl<PermissionMapper, PermissionDO> implements PermissionService { @Override public List<PermissionDO> getPermissionByGroupIds(List<Long> groupIds) { return this.baseMapper.selectPermissionsByGroupIds(groupIds); }  }
PermissionServiceImpl extends ServiceImpl<PermissionMapper, PermissionDO> implements PermissionService { @Override public List<PermissionDO> getPermissionByGroupIds(List<Long> groupIds) { return this.baseMapper.selectPermissionsByGroupIds(groupIds); }  @Override List<PermissionDO> getPermissionByGroupId(Long groupId); @Override List<PermissionDO> getPermissionByGroupIds(List<Long> groupIds); @Override Map<Long, List<PermissionDO>> getPermissionMapByGroupIds(List<Long> groupIds); @Override List<Map<String, List<Map<String, String>>>> structuringPermissions(List<PermissionDO> permissions); @Override Map<String, List<String>> structuringPermissionsSimply(List<PermissionDO> permissions); }
PermissionServiceImpl extends ServiceImpl<PermissionMapper, PermissionDO> implements PermissionService { @Override public List<PermissionDO> getPermissionByGroupIds(List<Long> groupIds) { return this.baseMapper.selectPermissionsByGroupIds(groupIds); }  @Override List<PermissionDO> getPermissionByGroupId(Long groupId); @Override List<PermissionDO> getPermissionByGroupIds(List<Long> groupIds); @Override Map<Long, List<PermissionDO>> getPermissionMapByGroupIds(List<Long> groupIds); @Override List<Map<String, List<Map<String, String>>>> structuringPermissions(List<PermissionDO> permissions); @Override Map<String, List<String>> structuringPermissionsSimply(List<PermissionDO> permissions);  }