Merge getByIdsAndFunId into getAll