package com.bcxin.backend.domain.baoans.repositories;

import com.bcxin.backend.domain.baoans.models.DocumentDTO;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;

import java.util.Collection;

public interface DocumentRepository extends Repository<DocumentDTO, String> {
    @Query("select d from DocumentDTO d where d.id in (?1)")
    Collection<DocumentDTO> getAll(Collection<String> ids);
}